Acceder à une parition LVM : Différence entre versions
De Docaposte Cyberdéfense
(Page créée avec « $ sudo apt-get install afflib-tools $ sudo mkdir /media/tmp $ sudo mkdir Media/vmks $ sudo affuse athenes1-prod-forensic-flat.vmdk /media/tmp/ $ fdisk -l athenes1-pr... ») |
(Aucune différence)
|
Version du 8 juin 2018 à 11:31
$ sudo apt-get install afflib-tools $ sudo mkdir /media/tmp $ sudo mkdir Media/vmks $ sudo affuse athenes1-prod-forensic-flat.vmdk /media/tmp/
$ fdisk -l athenes1-prod-forensic-flat.vmdk.raw Disk athenes1-prod-forensic-flat.vmdk.raw: 12 GiB, 12884901888 bytes, 25165824 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 Disklabel type: dos Disk identifier: 0x000c92bd Device Boot Start End Sectors Size Id Type athenes1-prod-forensic-flat.vmdk.raw1 * 2048 1050623 1048576 512M 83 Linux athenes1-prod-forensic-flat.vmdk.raw2 1050624 25165823 24115200 11,5G 8e Linux L
$ echo 1050624*512 | bc 537919488
$ pvs
PV VG Fmt Attr PSize PFree /dev/loop0 vg00 lvm2 a-- 11,50g 0 /dev/sda3 ubuntu-vg lvm2 a-- 465,28g 0
$ lvdisplay /dev/vg00
--- Logical volume --- LV Path /dev/vg00/lvswap LV Name lvswap VG Name vg00 LV UUID WFNAcU-nAZZ-q38x-sOdo-vav6-1gWs-9xkHDX LV Write Access read/write LV Creation host, time localhost, 2015-03-26 18:26:48 +0100 LV Status available # open 0 LV Size 1,95 GiB Current LE 500 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 --- Logical volume --- LV Path /dev/vg00/lvtmp LV Name lvtmp VG Name vg00 LV UUID xUuXvp-f8lx-n01N-bwxo-g49u-2C6D-ELHqqH LV Write Access read/write LV Creation host, time localhost, 2015-03-26 18:26:49 +0100 LV Status available # open 0 LV Size 1,95 GiB Current LE 500 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:3 --- Logical volume --- LV Path /dev/vg00/lvroot LV Name lvroot VG Name vg00 LV UUID LghcQ6-KmpZ-Y1zg-Qwlx-7bJ5-t7hk-pbTOne LV Write Access read/write LV Creation host, time localhost, 2015-03-26 18:26:50 +0100 LV Status available # open 0 LV Size 3,91 GiB Current LE 1000 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:4 --- Logical volume --- LV Path /dev/vg00/lvvar LV Name lvvar VG Name vg00 LV UUID MF5oG9-alEg-xVaC-Lu2T-xUMf-ueOu-5bhEWr LV Write Access read/write LV Creation host, time localhost, 2015-03-26 18:26:52 +0100 LV Status available # open 0 LV Size 3,68 GiB Current LE 943 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:5
$ ls -lah /dev/vg00/ total 0 drwxr-xr-x 2 root root 120 juin 8 10:59 . drwxr-xr-x 24 root root 5,0K juin 8 10:59 .. lrwxrwxrwx 1 root root 7 juin 8 10:59 lvroot -> ../dm-4 lrwxrwxrwx 1 root root 7 juin 8 10:59 lvswap -> ../dm-2 lrwxrwxrwx 1 root root 7 juin 8 10:59 lvtmp -> ../dm-3 lrwxrwxrwx 1 root root 7 juin 8 10:59 lvvar -> ../dm-5 ###$ mount /dev/vg00/lvvar /media/vmdk/
