Search the Community
Showing results for tags 'lvdisplay'.
-
Uneori aveti nevoie sa faceti mount la volume facute cu LVM si nu puteti utiliza clasicul mount direct pe device. (sdXX) Cam asa arata partiitia lvm vazuta la fdisk: root@debian:~# fdisk -l /dev/sda Disk /dev/sda: 240.1 GB, 240057409536 bytes 255 heads, 63 sectors/track, 29185 cylinders, total 468862128 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0001f2d1 Device Boot Start End Blocks Id System /dev/sda1 * 2048 514047 256000 83 Linux /dev/sda2 514048 468860927 234173440 8e [B]Linux LVM[/B] root@debian:~# Contrar asteptarilor, se face extrem de simplu utilizand utilitarul lvdisplay pentru a afisa volumele: root@debian:~# lvdisplay --- Logical volume --- LV Path /dev/vg/root LV Name root VG Name vg LV UUID QzUpJS-161D-2cwR-n0fs-jPRw-wkaS-cZ6SrR LV Write Access read/write LV Creation host, time devel02.vm, 2014-11-25 14:40:45 +0000 LV Status available # open 0 LV Size 214.62 GiB Current LE 6868 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:0 --- Logical volume --- LV Path /dev/vg/tmp LV Name tmp VG Name vg LV UUID 7QpmhZ-8Fi1-ajzg-8803-2Bl1-qdee-KgyszE LV Write Access read/write LV Creation host, time devel02.vm, 2014-11-25 14:41:06 +0000 LV Status available # open 0 LV Size 1.00 GiB Current LE 32 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:1 --- Logical volume --- LV Path /dev/vg/swap LV Name swap VG Name vg LV UUID IXmZCW-rC3A-v8da-aLnQ-4jqA-amhq-TqRfhQ LV Write Access read/write LV Creation host, time devel02.vm, 2014-11-25 14:41:06 +0000 LV Status available # open 0 LV Size 7.69 GiB Current LE 246 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:2 Volumul care ne intereseaza este 'root' (lv name). Acum putem face mount folosind LV Path de la root + un director temporar root@debian:~# mkdir x root@debian:~# mount /dev/vg/root x/ Mai multe despre LVM puteti citi aici: Logical Volume Manager (Linux) - Wikipedia, the free encyclopedia