![]() ![]() ![]() (The -resizefs option of lvextend will actually just run the fsadm resize. Then you must use another command to tell the filesystem to take advantage of the extension: either fsadm resize /dev/mapper/ubuntu-vg-ubuntu-lv or a filesystem-specific command like resize2fs /dev/mapper/ubuntu-vg-ubuntu-lv or xfs_growfs /. If you don't use the -resizefs option, then the command will just extend the logical volume but not the filesystem inside it. Or if you want to use all the remaining unallocated capacity to extend the root filesystem: sudo lvextend -resizefs -l +100%FREE ubuntu-vg/ubuntu-lv You need a small filesystem with special mount options for a chroot jail? Just create a new LV for it using some of the unallocated space.įor example, to extend it by 5 GB: sudo lvextend -resizefs -L +5G ubuntu-vg/ubuntu-lv.(Extending a filesystem is usually much easier than shrinking one, so lowballing the expected requirements and then extending as needed can be a good strategy.) A filesystem needs more space than expected? No problem, you can extend it on-line.Having some unallocated space held in reserve can be a good thing, as it allows you to react to unexpected future requirements easily: That can actually be a good thing: the remainder can be used to create another logical volume if you find you need one for some reason, or you can use the free space to extend an existing logical volume, even while its filesystem is mounted and in use. When the logical volume was created, only 24.24 GB was allocated for it. Why it didn't use all the space for the root partition? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |