IDNetters Forums

Technical News & Discussion => Unix/Linux News & Discussion => Topic started by: psp83 on Dec 28, 2010, 12:21:52

Title: RAID 1 scan
Post by: psp83 on Dec 28, 2010, 12:21:52
Does anyone know how long a RAID1 scan should take? the box has 2 1TB hard drives.

The box keeps shutting down and fails to start backup (until I manually power down and up again) so I'm guessing there's an error in the RAID as its set to shut down if an error is found.
Title: Re: RAID 1 scan
Post by: Steve on Dec 28, 2010, 12:31:47
I found this http://www.gagme.com/greg/linux/raid-lvm.php
Title: Re: RAID 1 scan
Post by: psp83 on Dec 28, 2010, 18:34:36
Cheers Steve.

I've been running the RAID scan since 12:30 and the estimated time to finish is 1772.5 minutes from now  :o

That's one hell of a scan!
Title: Re: RAID 1 scan
Post by: Rik on Dec 28, 2010, 18:39:22
They're being thorough. ;)
Title: Re: RAID 1 scan
Post by: Steve on Dec 28, 2010, 19:45:56
Not really clued up on Linux RAID although I'm led to believe software RAID is better than the hardware version. Since it's RAID 1 can  you not just 'pull' the affected drive and then rebuild?
Title: Re: RAID 1 scan
Post by: esh on Dec 29, 2010, 00:47:57
A 'scan' will take as long as the file system scan takes, if that's what you mean. A modern file system check of the structure and metadata should not take too long. A surface scan of 2TB will take a very long time however. Probably an overnight job. If you mean rebuild though, my software RAID-5 with dmraid on a 2.6.32 kernel takes approximately 6 hours to rebuild 1TB. A RAID-1 rebuild is trivial however as it is just a mirror, and so will go at the read/write speed of the disks. If you take a conservative 30MB/s this comes out at nearly 19 hours.