ubuntu livecd mount LVM2 fs

Posted on January 28, 2010. Filed under: Linux | Tags: , , , , , |

1. Startup ubuntu livecd

2. sudo apt-get install lvm2

do NOT reboot!!

3.if you mount as following:

sudo mount -t auto /dev/sda2 /mnt

you will get error: mount: unknown filesystem type ‘LVM2_member’

4. check the phisical disk

[ubuntu] $sudo pvs

PV          VG         Fmt  Attr PSize   PFree 

  /dev/sda1  VolGroup00 lvm2 a-   100M 40.00M

/dev/sda2 VolGroup01 lvm2 a- 200G 40.00M
5. check the volume

[ubuntu]$sudo vgs

 VG         #PV #LV #SN Attr   VSize   VFree 
  VolGroup01   1   4   0 wz--n- 200G 40.00M

6. check the logical volume

[ubuntu]lvdisplay

  --- Logical volume ---
  LV Name                /dev/VolGroup01/LogVol03
  VG Name                VolGroup01
  LV UUID                YhG8Fu-Zrek-zx8D-AzxC-Dz34-d32F-dfal23I
  LV Write Access        read/write
  LV Status              unenable
  # open                 1
  LV Size                200GB
  Current LE             781
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2

7. active the logic vol

[ubuntu]vgchange -ay /dev/VolGroup01

8. Check the status again

[ubuntu]lvdisplay

  --- Logical volume ---
  LV Name                /dev/VolGroup01/LogVol03
  VG Name                VolGroup01
  LV UUID                YhG8Fu-Zrek-zx8D-AzxC-Dz34-d32F-dfal23I
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                200GB
  Current LE             781
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2

9. mount it

mount /dev/VolGroup01/LogVol03 /mnt


Reference:

http://fedoraforum.org/forum/archive/index.php/t-64964.html

http://forums.opensuse.org/install-boot-login/396994-mount-lvm2-partition.html

http://www.howtoforge.com/linux_lvm

Read Full Post | Make a Comment ( 3 so far )

Liked it here?
Why not try sites on the blogroll...