View previous topic :: View next topic |
Author |
Message |
cybrjackle Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Gambit.gif)
Joined: 09 Jan 2003 Posts: 248 Location: USA
|
Posted: Thu Apr 29, 2004 5:16 pm Post subject: mounting lvm2 volumes from livecd? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ectospasm l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/178538108643c6afee61ed2.gif)
Joined: 19 Feb 2003 Posts: 711 Location: Mobile, AL, USA
|
Posted: Thu Apr 29, 2004 5:26 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
cybrjackle Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Gambit.gif)
Joined: 09 Jan 2003 Posts: 248 Location: USA
|
Posted: Thu Apr 29, 2004 6:20 pm Post subject: |
|
|
thx,
lvcreate did work and i had notes from the sizes i had originally created so it didn't destroy anything. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|