LinHES Forums http://forums.linhes.org/ |
|
Need advice about LVM setup - RESOLVED http://forums.linhes.org/viewtopic.php?f=17&t=10077 |
Page 1 of 1 |
Author: | Dr. Hood [ Wed May 17, 2006 5:11 am ] |
Post subject: | Need advice about LVM setup - RESOLVED |
Hi All, I have run into a bit of trouble in setting up LVM and hoping that there is an easy solution. BACKGROUND I had a fully working KnoppMyth box with a single 60 Gig (master) hard disk and I wanted to setup LVM with a second (slave) 300 gig hard disk. My attempt to manually setup LVM didn't go as planned (see thread Need Serious Help with Lilo - RESOLVED I completed the steps posted at LvmHowTo through Step 11. Quote: 11. Reboot After rebooting your box should now be using the second drive as the /myth mount. THE PROBLEM After rebooting the system, my troubles began (see thread cited above) and my solution was to reinstall the KnoppMyth. This solution got KnoppMyth working again. Now it is time to set up LVM with the second 300 Gig disk. When I went throught the manual LVM procedure again, I discovered that the 300 Gig disk already has LVM setup on it with a volume group. I am unable to complete step Step 5 of the KnoppMyth Wiki LVMHowto Quote: 5. Create the ext3 filesystem for the logical volume (/dev/vg/myth) you created. I used the recommendation from the manual install section of the Knoppmyth installation instructions page.
mke2fs -j -O sparse_super -m0 -i8000000 -L myth /dev/vg/myth A message is returned saying that /dev/vg/myth cannot be found. After searching the Internet, I haven't figured out how to remove LVM from 300 gig disk to start over. POSSIBLE SOLUTIONS? I am searching for possible solutions. (1) Undo the LVM that is on 300 gig disk? Unfortunately, I don't know how to do this and will need help. (2) Use the automated lvm setup script. Unsure if this will work because: (a) haven't successfully used this script before and (b) /dev/hda3 is not formatted as lvm (does it need to be?). (3) Is there another solution I have not thought of? Any help or suggestion will be greatly appreciated. Dr. Hood |
Author: | thornsoft [ Wed May 17, 2006 6:07 am ] |
Post subject: | |
This site (LVM How-To) has lots of LVM tips. http://www.tldp.org/HOWTO/html_single/LVM-HOWTO/#activatevgs |
Author: | Dr. Hood [ Wed May 17, 2006 10:09 pm ] |
Post subject: | |
Thank you so much. That link did the trick. I was able to undue the LVM on the 300 gig disk by executing the following commands.... 1. Deactivate the volume group Quote: vgchange -a n vg 2. Remove the logical volume Quote: lvremove vg 3. Remove the volume group Quote: vgremove vg 4. Delete the partition Quote: fdisk /dev/hdb
Command (m): d Command (m): w Thanks again!! Dr. Hood |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |