linux-raid mailing list

FromSubjectsort iconDate
Piergiorgio Sartor
metadata 1.2
Hi all, quick question: what's the use case for metadata 1.2? I read that the 4K offset is intended to leave space for the MBR and bootloader, I assume. The subtext here seems to be a partionless configuration with RAID, but I'm not aware of any bootloader which can boot from RAID and fit into 4K. Clarifications? Thanks a lot in advance, bye, -- piergiorgio --
Mar 26, 12:43 pm 2010
John Robinson
An oddity: UNC error while re-adding/resyncing
I did `mdadm --add /dev/md1 /dev/sdd2` and got the following in my kernel log: Mar 25 23:56:21 beast kernel: md: bind<sdd2> Mar 25 23:56:21 beast kernel: RAID5 conf printout: Mar 25 23:56:21 beast kernel: --- rd:3 wd:2 fd:1 Mar 25 23:56:21 beast kernel: disk 0, o:1, dev:sda2 Mar 25 23:56:21 beast kernel: disk 1, o:1, dev:sdb2 Mar 25 23:56:21 beast kernel: disk 2, o:1, dev:sdd2 Mar 25 23:56:21 beast kernel: md: syncing RAID array md1 Mar 25 23:56:21 beast kernel: md: minimum _guaranteed_ ...
Mar 25, 5:43 pm 2010
Michael Evans
Re: An oddity: UNC error while re-adding/resyncing
On Thu, Mar 25, 2010 at 5:43 PM, John Robinson Niel, I'm not sure if this is good advice or not, since the data is the same it may be cached. However I propose: 1) resync the device (validate the reads are good) -- scratch that it's raid 5 and doesn't know to assign lesser trust to slower drives. 1) Unmount the filesystem in question (use a recover cd or usb drive whatever) 2) Determine your DATA stripe size, In this case it appears to be (128K per drive? for 256K per stripe?) or 128K ...
Mar 25, 8:50 pm 2010
Matt Garman
Re: Use of WD20EARS with MDADM
In my case, I want to emphasize the following: my WD Green drives are strictly a data store. The system runs from a compact flash card. Though I disabled them anyway, many daemons, such as syslog, sshd, cron, fetchmail, etc, should only affect the *system* drive. However, daemons like nfs and smbd can obviously affect the data store. Even so, I wouldn't expect them to cause a disk access unless a request is made. The point is, in my opinion, a non-system partition should be that much ...
Mar 26, 3:50 pm 2010
Peter Kieser
Re: Use of WD20EARS with MDADM
It's a proprietary DOS application written by WDC that changes the settings on the hard drives firmware. The changes are permanent. You can boot off a USB key or floppy with DOS on it to run the application. -Peter --
Mar 26, 2:01 pm 2010
Peter Kieser
Re: Use of WD20EARS with MDADM
Hello, The 4096-byte sector drives work fine with mdadm. The main problem you are going to run into with the WDC Green drives is their 8 second "idle" setting. After 8 seconds, by default, the drive parks its heads. This can lead to an amazingly high Load Cycle Count (LLC) after just a month of operation due to the fact that most disk access happens around that time causing the drive to park and unpark in repeated cycles. To fix this, find a utility called wdidle3 (I have it, if you are ...
Mar 26, 1:27 pm 2010
Mark Knecht
Re: Use of WD20EARS with MDADM
OK, so possibly FreeDOS will work? Thanks, Mark --
Mar 26, 2:06 pm 2010
Asdo
Re: Use of WD20EARS with MDADM
The feature will be added in version 5.40. Or get if from SVN --
Mar 26, 3:45 am 2010
Richard Scobie
Re: Use of WD20EARS with MDADM
No, its item 193 Load_Cycle_Count (LCC) and it's at 27557. Regards, Richard --
Mar 26, 2:19 pm 2010
Peter Kieser
Re: Use of WD20EARS with MDADM
I originally noticed the problem after having the drives for 4 weeks. They LCC was at around 27,000 on each drive until I changed the timeout on the drives to 300 seconds. -Peter --
Mar 26, 3:47 pm 2010
David Rees
Re: Use of WD20EARS with MDADM
Why leave the thing on 24 hours a day if it's only used 1-2 of them? Save wear on your drive and the rest of the machine, save your dad a few bucks on his electricity bill and shut the thing down when it's not used. Then use WoL to wake it up if you need to admin it, or heck, just use the BIOS/ACPI wakeup feature and put the thing to sleep at night and wake up automatically in the morning - at least then you'll cut it's run-time in half. -Dave --
Mar 26, 4:01 pm 2010
Matt Garman
Re: Use of WD20EARS with MDADM
For what it's worth... that head parking feature actually saves a measurable amount of power. On my system, with four drives, there is about a 10 watt (AC) difference between all four heads parked and all four heads non-parked. This finding is consistent with the This will prevent the rapidly increasing Load Cycle Count SMART counter. However, in my opinion, it also removes a useful power-saving feature of these drives. In other words, my system is mostly idle; I want the heads to be ...
Mar 26, 2:45 pm 2010
Mark Knecht
Re: Use of WD20EARS with MDADM
On Fri, Mar 26, 2010 at 1:27 PM, Peter Kieser <peter@kieser.ca> wrote: This seems to be a windows program? I don't see a Linux version in Gentoo portage. I could run Windows once to set it if the settings are then maintained, or do you have a Linux solution? - Mark --
Mar 26, 1:59 pm 2010
Peter Kieser
Re: Use of WD20EARS with MDADM
I must also note, that I was seeing the drives stop and start even when there *was* activity on the disks. -Peter --
Mar 26, 3:51 pm 2010
Mark Knecht
Re: Use of WD20EARS with MDADM
Here's some data from a WD10EARS. How do I read the LCC_COUNT? SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0 3 Spin_Up_Time 0x0027 129 128 021 Pre-fail Always - 6525 4 Start_Stop_Count 0x0032 100 100 000 ...
Mar 26, 2:16 pm 2010
Mark Knecht
Re: Use of WD20EARS with MDADM
Thanks. I don't know if that's high or low. To me it's just a number. Following along from Matt Garman's reply I went back and looked at when I built this machine for my dad. (How many here have 85 year old fathers who have run Linux for 7 years instead of windows? Give him a cheer!) ;-) I agree with Matt about trying to save power. This machine is 40 days old today, at least counting since he first booted it at home. It's been up and running since then. 40 Days is 3,456,000 ...
Mar 26, 3:38 pm 2010
John Robinson
Re: 4 partition raid 5 with 2 disks active and 2 spare, ...
On 26/03/2010 16:28, Anshuman Aggarwal wrote: [...] You said sda was broken, so forget that. Goodness knows how sdd5 managed to end up being a spare. I think you want `mdadm --assemble /dev/md_d127 --force /dev/sd[bcd]5`. I don't think you can start it read-only but with a member missing you're not going to get a resync going so this is unlikely to cause data loss. Still, don't do this if you don't believe it's the correct answer, and certainly don't blame me if it wastes your data. Good ...
Mar 26, 12:29 pm 2010
Michael Evans
Re: 4 partition raid 5 with 2 disks active and 2 spare, ...
On Thu, Mar 25, 2010 at 7:09 AM, Anshuman Aggarwal Please, read the wikipedia page first, http://en.wikipedia.org/wiki/RAID and then this http://wiki.tldp.org/LVM-on-RAID (some links need updating, but it's still up to date for concepts) With that background nearly out of the way, please stop, and read them both again. Yes, seriously. In order to prevent data loss you'll need to have a good understanding of what RAID does, so that you can watch out for ways it can fail. The ...
Mar 25, 8:38 pm 2010
Michael Evans
Re: 4 partition raid 5 with 2 disks active and 2 spare, ...
On Fri, Mar 26, 2010 at 9:28 AM, Anshuman Aggarwal Obviously you do not understand the problem then, since if you did not previously, and you say you learned nothing new. Also, you added additional arguments to the commands I provided when that was neither required nor desired. However enough data was returned to see one thing: ALL of the events counters show the same number. That is extremely odd, usually in this situation at least one device will have a lower number. If possible ...
Mar 26, 12:04 pm 2010
Anshuman Aggarwal
Re: 4 partition raid 5 with 2 disks active and 2 spare, ...
Thanks again. I have visited those pages (twice no less) and nothing seems to be new from the concepts (both raid and lvm) since I last studied them. My problem is that I'm not familiar enough with the recovery tools and the common practical pitfalls to do this comfortably without the hand holding of this mailing list :) Here is the requested output: Note: Since I have 3-4 other arrays running (root device etc.) which don't have anything to do with this one and are all working fine...I am just ...
Mar 26, 9:28 am 2010
linbloke
Re: Auto Rebuild on hot-plug
Hi Neil, I look forward to being able to update my mdadm.conf with the paths to devices that are important to my RAID so that if a fault were to develop on an array, then I'd be really happy to fail and remove the faulty device, insert a blank device of sufficient size into the defined path and have the RAID auto restore. If the disk is not blank or too small, provide a useful error message (insert disk of larger capacity, delete partitions, zero superblocks) and exit. I think you do an ...
Mar 25, 11:41 pm 2010
Majed B.
Re: Auto Rebuild on hot-plug
Why not treat this similar to how hardware RAID manages disks & spares? Disk has no metadata -> new -> use as spare. Disk has metadata -> array exists -> add to array. Disk has metadata -> array doesn't exist (disk came from another system) -> sit idle & wait for an admin to do the work. As to identify disks and know which disks were removed and put back to an array, there's the metadata & there's the disk's serial number which can obtained using hdparm. I also think that all disks now include ...
Mar 26, 12:52 am 2010
John Robinson
Re: Another take on replacing failed raid drives
I do that too, but my reason is that the arrays are different types. For example, first partitions make RAID-1 for /boot, second partitions RAID-1 or RAID-10 swap, third partitions RAID-5 or RAID-6 filesystem (or several over LVM). Cheers, John. --
Mar 26, 11:59 am 2010
John Hendrikx
Re: Another take on replacing failed raid drives
I do that too (multiple arrays using partitions). My reason for that is to make future upgrades less painful as it is possible to just copy and drop one array at a time. --
Mar 26, 8:06 am 2010
previous daytodaynext day
March 25, 2010March 26, 2010March 27, 2010