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

Advertisements

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

3 Responses to “ubuntu livecd mount LVM2 fs”

RSS Feed for John's Blog Comments RSS Feed

[…] The only way to repair this is to run administrative commands.  A Catch-22.  Through the directions found on John’s Blog, we were able to get things going again within the period.  Teaching […]

Super, saved my day! Thanks!

Excellent guide. It works perfectly.


Where's The Comment Form?

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

%d bloggers like this: