Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 2020 18:36:15 +0000
From:      Rafal Lukawiecki <raf@rafal.net>
To:        freebsd-cloud@freebsd.org
Subject:   Re: 12.2 AMI Maker Issue
Message-ID:  <014150CF-F5C6-4AC6-B6EB-84592F483B41@rafal.net>
In-Reply-To: <AD2213EE-6BEE-4DE7-9BF7-6603C14ED268@rafal.net>
References:  <AD2213EE-6BEE-4DE7-9BF7-6603C14ED268@rafal.net>

index | next in thread | previous in thread | raw e-mail

> Colin,
> 
> I have given the new ARM 12.2 AMI maker a spin, and I can see an issue with insufficient storage space on /mnt to do even a basic pkg install run:
> 
> pkg: Not enough space in /mnt/var/cache/pkg, needed 313 MiB available 90 MiB
> 
> and:
> 
> root@freebsd:/home/ec2-user # df -h
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/md0        42M     36M    2.8M    93%    /
> devfs          1.0K    1.0K      0B   100%    /dev
> /dev/md1       9.7G    3.6G    5.3G    41%    /bits
> /dev/nvd0p3    3.8G    3.4G     90M    97%    /mnt
> devfs          1.0K    1.0K      0B   100%    /mnt/dev
> devfs          1.0K    1.0K      0B   100%    /mnt/dev
> devfs          1.0K    1.0K      0B   100%    /mnt/dev
> 
> It looks like /mnt is now on /dev/nvd0p3 and seems limited to just over 3G. I then created a new memory disk md2 and mounted it in place of cache/pkg just to get past this issue, but I soon run out of space again while doing pkg install into /mnt.
> 
> Is there a way to allocate a larger amount of space to /mnt so that I can install everything? Is it parametrisable, or do you need to do that when you are preparing the AMI maker?
> 
> Many thanks for your help,
> Rafal
> --
> Rafal Lukawiecki
> Data Scientist 
> Project Botticelli Ltd

For what it is worth, I just resized the nvd0p3 using:

gpart resize -i 3 -s 7G nvd0
growfs -y /dev/nvd0p3

…and that allowed me to proceed with pkg installs and freebsd-update. If this is not the way to do it, let me know. In the meantime, I will continue testing. Many thanks.

Rafal
--
Rafal Lukawiecki
Data Scientist 
Project Botticelli Ltd

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?014150CF-F5C6-4AC6-B6EB-84592F483B41>