One mistake could destroy all data on the hard-drive. No data should be lost by following this guide, but it does muck around with some very low-level and powerful commands. Use gnome-disks to verify free space A word of warning Running from a live image allows all the volumes on the hard-disk to remain unmounted, even important directories like / and /home. Any file system that needs to shrink must be unmounted. Without space to reclaim from another volume, this guide isn’t useful. What’s neededĬonfirm the system uses LVM with the gnome-disks application, and make sure there is free space available in some other volume. LVM logical volumes can even span multiple devices! Just like hard-drive partitions, logical volumes have a defined size and can contain any filesystem which can then be mounted to specific directories. These volumes are similar to hard-drive partitions, but without the limitation of contiguous space on the disk. Out of this pool of available space, the volume group allocates one or more logical volumes. A typical Fedora install has one formatted boot partition, and the rest of the drive is a partition configured as an LVM physical volume. Physical volumes add available free space to the volume group. Actual hard-drive and hard-drive partitions are added to the volume group as physical volumes. By default Fedora only defines a single volume group, but there can be as many as needed. The volume group serves as the main container in the LVM system. All of these advanced options can get a bit overwhelming, but resizing a volume is straight-forward. LVM enables not only flexible volume size management, but also advanced capabilities such as read-write snapshots, striping or mirroring data across multiple drives, using a high-speed drive as a cache for a slower drive, and much more. This technology is similar to standard hard-drive partitions, but LVM is a lot more flexible. Fedora 32 and before use LVM to divide disk space by default. The key to easily re-alocate space between volumes is the Logical Volume Manager (LVM). Here’s how to reclaim hard-drive space with LVM. But have you ever started up your system to find out that Gnome just said the home volume is almost out of space! Luckily, there is likely some space sitting around in another volume, unused and ready to re-alocate. It is commonly used on Fedora installations (prior to BTRFS as default it was LVM+Ext4). LVM is a tool for logical volume management which includes allocating disks, striping, mirroring and resizing logical volumes.
0 Comments
Leave a Reply. |