7/14/2023 0 Comments Volume manager in debianUseful to move those segments (using pvmove): $ lvs /dev/vg_ssd/lv_videos -o seg_pe_ranges Same with more details: $ lvs -segments /dev/vg_ssd/lv_videos -o +lv_size,devices List the physical segments used by a logical volume : $ lvs -segments /dev/vg_ssd/lv_videos Detailed view: use the lvdisplay and pvdisplay commands with option -m.Lists : use the lvs and pvs commands with option -segments.To get LVM's internal view and details, use LVM commands: Obviously, when you run a command for a given objet, only that object's parents and children are show (which may be incomplete, if LV is spanning on multiple PV for example)įor a quick overview, I recommend lsblk (which is a standard tool, not LVM specific).Use lvs manpage about -all to view internal details (of mirrored volumes), if wanted.LVM is a flexible abstraction layer between physical disk up to the filesystem (disk ⇒ partition ⇒ LVM's physical volume ⇒ LVM's volume group ⇒ LVM logical volume ⇒ filesystem).ĭue to some LVM features (aggregation, mirror, stripes, snapshot.), the physical layout can become complex. PV UUID TCJnZM-0ss9-o5gY-lgD3-7Kq6-18IH-sN04ToĪs you can see, You get a nice overview of where the extents for each of the 6 logical volumes are. PV UUID rByjXK-NA6D-ifnY-lKdF-eFWg-Ndou-psGJUq PV UUID eR2ko2-aKRf-uCfq-O2L0-z6em-ZYT5-23YhKb Running pvdisplay -m on this machine results in the following output: ~]# pvdisplay -m 6 logical volumes made with various sizes (ranging from 300M to 1.1G) so that they are spread over the physical volumes.3 disks of 1GB each added to the system and used as physical volumes for vg_test.I have set up the following situation on a test machine: The pvdisplay command has a -m option to show the mapping of physical extents to logical volumes and logical extents.
0 Comments
Leave a Reply. |