Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mounting lvm2 volumes from livecd?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cybrjackle
Apprentice
Apprentice


Joined: 09 Jan 2003
Posts: 248
Location: USA

PostPosted: Thu Apr 29, 2004 5:16 pm    Post subject: mounting lvm2 volumes from livecd? Reply with quote

:oops:

I forgot to add my scsi controller to my kernel when i was building a new system so it doesn't boot ;)

I have to go back in and add the controller, but other than /boot & / the rest is on lvm2 and i don't seem to be able to mount them, which makes getting to /usr/src a little hard!


# mount /dev/vg/usr /mnt/gentoo/usr
mount: special device /dev/vg/usr does not exist


Any thoughts?

I have loaded the dm-mod and ran vgscan, is there something i'm missing?
i didn't run pvcreate of lvcreate because there already there and i'm not sure if that would wipe my system clean.

vgdisplay

Code:
# vgdisplay
  /dev/cdrom: open failed: Read-only file system
  --- Volume group ---
  VG Name               vg
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  8
  VG Access             read/write
  VG Status             resizable
  MAX LV                255
  Cur LV                5
  Open LV               0
  Max PV                255
  Cur PV                2
  Act PV                2
  VG Size               63.77 GB
  PE Size               4.00 MB
  Total PE              16325
  Alloc PE / Size       9472 / 37.00 GB
  Free  PE / Size       6853 / 26.77 GB
  VG UUID               3xGYcL-I1rP-BD5V-jyu1-BOld-Ay45-Zcbv2t


Code:
livecd root # vgs
  /dev/cdrom: open failed: Read-only file system
VG   #PV #LV #SN Attr VSize  VFree
vg     2   5   0 wz-- 63.77G 26.77G
livecd root # pvs
  /dev/cdrom: open failed: Read-only file system
PV         VG   Fmt  Attr PSize  PFree
/dev/sda5  vg   lvm2 a-   29.86G     0
/dev/sdb1  vg   lvm2 a-   33.91G 26.77G
livecd root # pvdisplay
  /dev/cdrom: open failed: Read-only file system
  --- Physical volume ---
  PV Name               /dev/sda5
  VG Name               vg
  PV Size               29.86 GB / not usable 0
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              7644
  Free PE               0
  Allocated PE          7644
  PV UUID               lDdPzM-Z0W7-woBS-oFN1-CZ48-zK54-P1qRPk
   
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               vg
  PV Size               33.91 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              8681
  Free PE               6853
  Allocated PE          1828
  PV UUID               Et96Tt-XEYm-OYG4-QQHO-XLY0-bH2J-bxD2J7
Back to top
View user's profile Send private message
ectospasm
l33t
l33t


Joined: 19 Feb 2003
Posts: 711
Location: Mobile, AL, USA

PostPosted: Thu Apr 29, 2004 5:26 pm    Post subject: Reply with quote

Does your LiveCD support LVM2? From the LVM2 doc it says to explicitly get one with LVM2 support.

And, what is in /dev/vg? Anything? You might need to run lvcreate again. IIRC that won't destroy data if they're already there because I seem to remember having a similar problem when I was setting up my LVM2 system. But don't take my word for that, since it's been a couple of months.
_________________
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Back to top
View user's profile Send private message
cybrjackle
Apprentice
Apprentice


Joined: 09 Jan 2003
Posts: 248
Location: USA

PostPosted: Thu Apr 29, 2004 6:20 pm    Post subject: Reply with quote

thx,

lvcreate did work and i had notes from the sizes i had originally created so it didn't destroy anything.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum