Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with setting up LVM atop software RAID 1
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
Cluster
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2002
Posts: 146
Location: Cedar Rapids, Iowa

PostPosted: Sun Jul 18, 2004 2:05 am    Post subject: Problems with setting up LVM atop software RAID 1 Reply with quote

== Background ==
I bought two fresh new 160 GB hard drives. Having placed them into my computer, I booted it with Gentoo LiveCD (minimal install) version 2004.0.

I formatted both of them to have one 50-MB partition for boot, and the rest (159950 MB) for my LVM partition. I then set up RAID by creating /etc/raidtab, running mkraid, etc. The end result:

Code:
root@livecd / # cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md2 : active raid1 ide/host0/bus1/target0/lun0/part2[1] ide/host0/bus0/target0/lun0/part2[0]
      156240064 blocks [2/2] [UU]

md1 : active raid1 ide/host0/bus1/target0/lun0/part1[1] ide/host0/bus0/target0/lun0/part1[0]
      45248 blocks [2/2] [UU]

unused devices: <none>


As we can see, RAID 1 functions correctly. /dev/md1 is my mirrored non-LVM boot partition, and /dev/md2 is my mirrored main LVM partition. My goal is now to set up LVM atop the 159-GB partition.

== Problem ==
I use this documentation. That link takes you exactly to the right section. When I try to follow the first step, here's what I get:

Code:
root@livecd / # vgscan
  Reading all physical volumes.  This may take a while...
  Found duplicate PV UVjajKazvvJopp489rc9yik8dONPMubA: using /dev/hdc2 not /dev/hda2
  /dev/cdrom: open failed: Read-only file system


When I try to create an LVM physical volume, here's the result:

Code:
root@livecd / # pvcreate /dev/md2
  /dev/cdrom: open failed: Read-only file system
  Physical volume "/dev/md2" successfully created


Success, right? Next up, creating an LVM volume group:

Code:
root@livecd / # vgcreate -A n storage /dev/md2
  Found duplicate PV mAOU6zaaLkiPMZ6bv0pVv3Gw55CNswXB: using /dev/hdc2 not /dev/hda2
  /dev/cdrom: open failed: Read-only file system
  Found duplicate PV mAOU6zaaLkiPMZ6bv0pVv3Gw55CNswXB: using /dev/hdc2 not /dev/hda2
  /dev/cdrom: open failed: Read-only file system
  Found duplicate PV mAOU6zaaLkiPMZ6bv0pVv3Gw55CNswXB: using /dev/hdc2 not /dev/hda2
  /dev/cdrom: open failed: Read-only file system
  Volume group "storage" successfully created


Again, appears to be successful if we disregard the strange warnings about duplicate PV. But, the kicker comes when I try to create a 10-gigabyte LVM logical volume:

Code:
root@livecd / # lvcreate -A n -L 10000 -n root storage
  Found duplicate PV UVjajKazvvJopp489rc9yik8dONPMubA: using /dev/hdc2 not /dev/hda2
  /dev/cdrom: open failed: Read-only file system
  Found duplicate PV UVjajKazvvJopp489rc9yik8dONPMubA: using /dev/hdc2 not /dev/hda2
  /dev/cdrom: open failed: Read-only file system
  Volume group "storage" doesn't exist


== Question ==
Does anyone know what I am doing wrong with LVM? Maybe the Gentoo LiveCD has known bad LVM support? Do I need to load some kernel module? Or maybe change some hardware configuration?
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