Skip to contentSkip to conversation

Aftermath of a dead hard disk

linux-lvm Will May 2 participants 2 messages Mar 15, 2007

lore
Share & tools
lore

Will May

author
#0 lore raw

I recently had a hard disk die on me that was in my LVM group and so had to replace it with a new one. When I added the new hard disk into the group, I didn't format it first and so LVM still thinks the new hard disk (250GB) is the size of the old one (60GB). I'd like to convince LVM of the new size. Anyone know how?

I've tried just formatting the hard disk, but that just causes LVM to cry that it can't find the pv on the disk.

#1 lore raw

Will May a �crit :

Quoted 3 lines

I recently had a hard disk die on me that was in my LVM group and so had to replace it with a new one. When I added the new hard disk into the group, I didn't format it first and so LVM still thinks the new hard disk (250GB) is the size of the old one (60GB). I'd like to convince LVM of the new size. Anyone know how?

I've tried just formatting the hard disk, but that just causes LVM to cry that it can't find the pv on the disk.

Hi !
Just in case, did you pvremove the failed disk ? If not, unplug the new one, pvremove -f the old one re-plug the new one,
pvcreate the new one
vgextend the vg.
and enjoy.
read the manpages carefully in order to avoid mistakes. Hope this helps.

Signature · 3 lines
Ce message est constitu� d'au moins 50 % d'�lectrons recycl�s.
S'il vous pla�t, aidez nous � conserver nos ressources,
recyclez vos �lectrons !