Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extending Logical Volume Crashes Server

Status
Not open for further replies.

zeland

IS-IT--Management
Aug 19, 2002
569
MY
I've got a server that was just recently put under my care. This server has 3 SCSI drives running FC2. The drives are partitioned as so:

sda:
sda1 - /boot
sda2 - Physical Volume
sda3 - swap

sdb:
sdb1 - Physical Volume

sdc:
sdc1 - Physical Volume

vg00:
sda2 & sdb1

lv00:
sda2 & sdb1 as /

I did a vgextend to include sdc1 then lvextend -l +[number_of_extents] /dev/vg00/lv00 /dev/sdc1. The process crashes just as I hit the enter key. I'm foreced to do a hard reset. I thought that the PV might be corrupted and created it again but lvextend crashed again. Bad drive? Did a badblocks test (destructive/3 pass) over the weekend and formated it as ext3 to test. Drive is clean. Any ideas?


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
It's LVM 2.00.15


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 

Best bet it to upgrade the software. LVM2 is *very* buggy so don't get your hopes up.

Cheers
 
Looks like you create two physical volumes and then try
to merge them in the logical layer which is a dubious
and invalid approach. I'm surprised that this error
isn't caught beforehand...

I'd do something like this:
pvcreate /dev/sdb1 /dev/sdc1 pvolpath
vgcreate foo pvolpath
and on to logical volumes..

Good Luck.



 
marsd:

Thought that was the standard way of doing it:

1. fdisk drives as PVs
2. pvcreate the partitions
3. create VG from PVs
4. create LV under VG

To clarify my first post, my LV is actuall using all the PEs from both sda2 & sdb1 just incase you thought otherwise. I'm not too sure how the previous admin got this configuration up and why sdc1 was not merged in.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top