Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LVM problems with LiveCD [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
StickyVelvet
n00b
n00b


Joined: 21 Jan 2004
Posts: 28
Location: Canberra, Australia

PostPosted: Wed Jan 21, 2004 11:57 am    Post subject: LVM problems with LiveCD [solved] Reply with quote

I've just bought a new SATA hard drive (Samsung SP1614C), which I'm trying to dual boot Win2000 and Gentoo on. The Win2000 part is done and now I'm trying to install Gentoo on the 10GB I left free, preferably using LVM. I've got an ASUS A7N8X Deluxe motherboard which has the SiI3112 SATA controller. For some reason, I couldn't get the Gentoo 1.4 LiveCD (x86-basic-1.4-20030911.iso) to boot - it chucked a spazz around 'cloop' or something. Anyway, I then tried the experimental livecd-2.6_11-29-2003.iso. This boots no problem.

However, I run into troubles when I try to set up the LVM stuff as per the guide. I can create vgcreate, but it doesn't add my volume group to /dev. Similarly I can create my logical volumes, but when I try to activate them, it fails:
Code:

vgchange -ay vg1
  /dev/cdrom: open failed: Read-only file system
  Incorrect metadata area header checksum
  /dev/mapper/control: open failed: No such file or directory
  Is device-mapper driver missing from kernel?
  /dev/mapper/control: open failed: No such file or directory
  Is device-mapper driver missing from kernel?
  Incompatible libdevmapper 1.00.05-ioctl-cvs (2003-09-01)(compat) and kernel driver
  0 logical volume(s) in volume group "vg1" now active


What's going on? Is this a problem with the LiveCD's kernel? Is there some sort of work around for this? Can anyone recommend a LiveCD that I can use?

I'm going to try using Knoppix and see if that gets me any further. My other option is to try to install from my old hard drive, but the Gentoo on that has a 2.4 kernel and I doubt it'll be able to use the new drive (if there's an easy way to fix this, let me know!). I'll keep you posted.

Any help is much appreciated.


Last edited by StickyVelvet on Mon Jan 26, 2004 9:49 am; edited 1 time in total
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Jan 21, 2004 12:02 pm    Post subject: Reply with quote

Quote:
vgchange -ay vg1
/dev/cdrom: open failed: Read-only file system
Incorrect metadata area header checksum

Dude - you're trying to make your cdrom a part of a volume group.

I can only hint that this will probably not work...

Maybe read the LVM docs some more, adding your cdrom is probably not in the instructions.

Also note that getting LVM to work for the root partition is more work than just using LVM - you have to do some dark magic things.
Back to top
View user's profile Send private message
StickyVelvet
n00b
n00b


Joined: 21 Jan 2004
Posts: 28
Location: Canberra, Australia

PostPosted: Wed Jan 21, 2004 12:08 pm    Post subject: Reply with quote

adaptr wrote:
Dude - you're trying to make your cdrom a part of a volume group.


No kidding - at no stage did I add the cdrom to my volume group. Unless something funky is going on.

And I have separate /boot and / partitions from my LVM partition, so I ought not to need to do anything dark and magical, right?
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Jan 21, 2004 12:17 pm    Post subject: Reply with quote

Hmm. could you describe what you did do to make the vg ?
ISTR that the 2.6 (lvm2) stuff works differently form what I use (lvm1); it manages the /dev entries in a sort of devfs manner, or something (sorry - not clear).
Search the forums for "asus a7n8x", it's bound to turn up (it seems a popular board).
Back to top
View user's profile Send private message
StickyVelvet
n00b
n00b


Joined: 21 Jan 2004
Posts: 28
Location: Canberra, Australia

PostPosted: Wed Jan 21, 2004 1:26 pm    Post subject: Reply with quote

adaptr wrote:
Hmm. could you describe what you did do to make the vg ?

Exactly as in the guide.
Code:
vgscan     // whinged about /dev/cdrom
pvcreate /dev/hde7      // whinged about /dev/cdrom
vgcreate vg1 /dev/ide/host2/bus0/target0/lun0/part7    // not sure exactly what I used, but it was what /dev/hde7 pointed to.  Again, whinged about /dev/cdrom.
lvcreate -L10G -nusr vg1     // gave the error in first post


Everything seems to have been set up fine, except I can't activate the Logical Volumes. The output of pvdisplay and lvdisplay is:
Code:

  --- Physical volume ---
  PV Name               /dev/hde7
  VG Name               vg1
  PV Size               9.50 GB / not usable 0   
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              2431
  Free PE               767
  Allocated PE          1664
  PV UUID               vIWE6A-VClc-qT6K-pxpF-ipuf-AmZF-SwsgcL
   
  --- Logical volume ---
  LV Name                /dev/vg1/usr
  VG Name                vg1
  LV UUID                XB2ot9-ffKY-hcka-LUnj-dt5K-qlSD-u2LR8J
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                3.00 GB
  Current LE             768
  Segments               1
  Allocation             next free (default)
  Read ahead sectors     0


adaptr wrote:

ISTR that the 2.6 (lvm2) stuff works differently form what I use (lvm1); it manages the /dev entries in a sort of devfs manner, or something (sorry - not clear).

Hmmm, I know nothing about devfs. Any chance you can elaborate?

adaptr wrote:

Search the forums for "asus a7n8x", it's bound to turn up (it seems a popular board).


Yeah, did that before I posted. Nothing that I can find. Either not many people using LVM or they aren't having problems.


I figure the /dev/cdrom error is some artifact of running off the LiveCD. It doesn't seem to be the problem. It looks like a kernel issue. For some reason I don't have /dev/mapper and LVM doesn't like that at all. Anyone got a spare or know where I can find one? :?
Back to top
View user's profile Send private message
felixz
n00b
n00b


Joined: 30 Nov 2003
Posts: 24

PostPosted: Sun Jan 25, 2004 4:20 am    Post subject: Reply with quote

Dont forget
Code:
modprobe dm-mod

before you do any lvm stuff[/code][/quote]
Back to top
View user's profile Send private message
StickyVelvet
n00b
n00b


Joined: 21 Jan 2004
Posts: 28
Location: Canberra, Australia

PostPosted: Mon Jan 26, 2004 9:54 am    Post subject: All sorted Reply with quote

Right, I've sorted it all out and now have a working Gentoo system. First off, the reason the 1.4 LiveCD wasn't working was a dodgy download - I checked the MD5 hash and it didn't match! Anyhoo, I'd already downloaded Knoppix, so I gave that a go. I have to say - a much more pleasurable way to install! LVM worked from there, and it's all good now, except I think I need to update my partitions to LVM2, but I don't think that'll be a problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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