Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LVM Will not start at boot time - SCSI disks not initialized
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
trouser_pilot
n00b
n00b


Joined: 07 Sep 2002
Posts: 52
Location: Calgary, AB

PostPosted: Fri Jan 30, 2004 5:34 pm    Post subject: LVM Will not start at boot time - SCSI disks not initialized Reply with quote

I have this really strange problem where LVM does not start properly after a reboot. Here's what I have to do to be able to mount my volume:

1 - run vgcan
does not display any existing logical volume (hmmm, odd)

2 - Make sure my disks and are partitioned ok using fdisk /dev/sda
shows disk is partitioned with type lvm

3 - run vgscan again
shows I have an old volume called "multimedia"

4 - mount /multimedia
It works


Has anyone seen anything like this before? I have recompiled the kernel with SCSI support and the driver build in as well as LVM built in. It almost looks like the fdisk "wakes up" the drives. Any thoughts anyone?
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Fri Jan 30, 2004 6:59 pm    Post subject: Reply with quote

quite odd. You could try to use EVMS tools (emerge evms, but you have to compile a new kernel with some options, see EVMS site for them) to access your LVM in compatibility mode.

I have done it and it works very well. And EVMS has some nice GUI tools to manage the LVs.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Celegans
n00b
n00b


Joined: 10 Oct 2003
Posts: 24

PostPosted: Fri Jan 30, 2004 9:09 pm    Post subject: Reply with quote

I encountered something like the problem you described. I found that it was necessary, when doing the pvcreate step, to point pvcreate at /dev/scsi/scsi0/bus0/disk0/lun0/part0/fragment0/item0/unit0/piece0/subsection0/track0/sector0/whatever0, rather than /dev/sda1 to get it to work correctly.

Hope that helps.
_________________
When the only tool you have is a hammer, all your problems start to look like nails...
Back to top
View user's profile Send private message
trouser_pilot
n00b
n00b


Joined: 07 Sep 2002
Posts: 52
Location: Calgary, AB

PostPosted: Fri Jan 30, 2004 11:59 pm    Post subject: Reply with quote

Thanks for the responses.

When creating the vg, I used webmin simply because I could point and click. Webmin displayed the disks with their full path (/dev/scsi/host0/bus0/target4/lun0/part1 and so on). I have 8 disks in this vg giving me a total of about 200G (all SCSI, some 18's and some 36's). Anyhow, I've been ripping my CD collection and with about 100Gig on there, I don't think I'll be re-creating the vg. I'll try EVMS and if that doesn't work, I'll simply put together some script that will do an fdisk of one SCSI disk then vgscan.
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