Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LVM and disk/device failure
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
zoyd_wheeler
n00b
n00b


Joined: 22 Mar 2003
Posts: 40

PostPosted: Tue Feb 21, 2006 9:19 am    Post subject: LVM and disk/device failure Reply with quote

Anyone has had any experience with losing a disk/device under LVM?
I have two PCI controller cards on my fileserver ( Promise ATA cards ).
On these I have built 2 raid-1 arrays using mdadm, both mirrored across the controllers ( one disk from card 1, one from card two ). I have 4 disks -> 2 arrays. On top of this, I run lvm, using one volume group for both arrays, and then on top of this the filsystems on logical volumes.
I should be able to lose a one of the cards without the arrays failing.
However, if one of the arrays needs to resync, the load on the PCI bus becomes so heavy ( since all data will need to be writte across the PCI-bus ) that unless in single-user mode, the machine will hang.
I therefore think of rearraging the arrays, so they are mirrored on each controller, instead of across, and therefore able to resync without loading the PCI bus.
However, in this case, losing a controller would mean losing the array, and therefore - one of the decives the LVM builds on.
Anyone knows if LVM can handle this type of failure withuout losing data? ( Ie automatically stopping / shutting down so that the card can be replaced, and LVM devices back up in a consistent state )
Back to top
View user's profile Send private message
ectospasm
l33t
l33t


Joined: 19 Feb 2003
Posts: 711
Location: Mobile, AL, USA

PostPosted: Tue Feb 21, 2006 12:55 pm    Post subject: Reply with quote

If it's really just the controller that's failing, powering down and swapping it with the same model controller should work without LVM even noticing the difference. Of course, if it's the disk/RAID that's failing, you'll need to migrate all of the data off those physical volumes, and then replace the drives. Here's the LVM HOWTO on that subject:

http://tldp.org/HOWTO/LVM-HOWTO/removeadisk.html

Good luck...
_________________
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
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