- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Converting existing LVM install to LVM on md devic...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2007 12:28 AM
тАО03-13-2007 12:28 AM
Converting existing LVM install to LVM on md devices
I've got a machine (which I've replicated onto a VM) which is installed as follows:
sda1 (/boot)
sda2 (PV)
VolGroup00
LogVol00(swap)
LogVol01(/)
LogVol02(var)
All working fine. I have another disk (sdb) that I want to partition the same, create md raid1 devices and put LVM on top of. I've so far been following the advice in this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1093327
All seems fine, create the md's, lvm stuff, copy the data BUT, when I come to boot it see's my new volume group (vgroot) but doesn't see any logical volumes and then panics!
As a test, I've made sure that I can do half the conversion and boot off the raid devices on the second disk (i.e / = /dev/md1, /boot = /dev/md0). Plus, I know LVM is loading @ boot as I'm currently booting off lv's from sda!! Any thoughts?
I've now tried another install on normal slices and attempted to convert the second disk and boot onto lvm and now it won't see any LVM info at boot!
Yours hopefully,
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2007 12:43 AM
тАО03-13-2007 12:43 AM
Re: Converting existing LVM install to LVM on md devices
Are you using the nice lvm2createinitrd script ? I remember I had to tell it about my RAID setup before it worked as planned.
This was the command that did it for me:
# lvm2createinitrd -c /etc/lvm/lvm.conf -r "md0 md1" -R /etc/mdadm/mdadm.conf 2.6.16.20
Just in case it might be helpful..
Cheers,
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2007 02:01 AM
тАО03-13-2007 02:01 AM
Re: Converting existing LVM install to LVM on md devices
I get the feeling the /boot/initrd-2.6.9-34.EL.img may have something to do with it in the current situation but with the original test, I'm *already* booting off an lvm lv so the initrd shouldn't be a problem?
Cheers,
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2007 02:08 AM
тАО03-13-2007 02:08 AM
Re: Converting existing LVM install to LVM on md devices
If you have the disk space.
pvcreate
vgcreate
lvcreate
Then use dd to copy the current data to the new logical volumes.
Test mount as well.
Then modify /etc/fstab
You have converted to LVM.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2007 03:18 AM
тАО03-13-2007 03:18 AM
Re: Converting existing LVM install to LVM on md devices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2007 04:11 AM
тАО03-13-2007 04:11 AM
Re: Converting existing LVM install to LVM on md devices
In a moment of inspiration I unpacked the initrd file and discovered that the init script had the following:
lvm vgchange -ay --ignorelockingfailure VolGroup00
I changed this to:
lvm vgchange -ay --ignorelockingfailure
And now all vg's are activated and she mounts like a beaut!
Cheers,
Tony