![]() ![]() OK to grow filesystem on /dev/ada1p1 from 2.0GB to 5. It's strongly recommended to make a backup before growing the file system. I followed the same procedure as above to expand partition 1 on ada1. ![]() If you are using UFS, use growfs instead of zpool. Zroot 12.9G 6.06G 6.88G - 42% 46% 1.00x ONLINE - and when I go to My Vm -> Settings -> Storage -> my.vdi I see the correct (increased storage). Now expand the ZFS pool with zpool: # zpool online -e zroot da0p3 Be careful if you do this, a mistake can lead to data loss. ![]() rootcloud home df -h /home/ Filesystem Size Used Avail Use Mounted on /dev/mapper/vgcloud-LogVol00 9.7G 9. If the partition you are trying to grow is in the middle of the disk, follow these instructions in the FreeBSD handbook. Step:1 Type ‘ df -h’ command to list the file system Run the df -h command followed by the file system to view total ,used and available disk space. Now resize the partition with gpart: # gpart recover da0 Notice how I now have 5GB of free space at the end of da0. If you are able to resize the disk while the machine is running, you need to instruct the kernel to check the device for changes and update its internal structures with the results. Also notice how partition 3 has my ZFS pool and is at the end of the disk. Notice how I have a single disk, da0, with 3 partitions. In the Attributes tab, use the slider or text box to specify the new size. Choose the disk you wish to resize from the list. NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT Open the VM VirtualBox Manager (the main window that opens when you launch the GUI) Click File Select Virtual Media Manager from the menu. ![]() On the example machine there is a single ZFS pool called zroot. If you are growing a ZFS pool that is using mirroring or RAIDZ, you must increase the size of all disks before ZFS will use the additional storage. If your machine is on a SAN or it is a virtual machine running on a hypervisor that supports online resizing, you don’t even need to reboot. Either way, you will follow the same process. I am assuming you just increased the size of a disk on a virtualization platform such as VMware or VirtualBox. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |