Home
Classic
Harley
Yamaha
Suzuki
Ducati
Triumph
Honda
Kawasaki
Aprilia
Moto Guzzi
BMW
Buell
Morini
Royal Enfield
Racing
Tarmac
Track
Motocross
Trials
Mechanics
Chain
Oil
Battery
Tank
Carb
Horn
Lights
Brakes
Clutch
Cylinder
Gears
Wheels
Tyres
Chassis
Exhaust
Suspension
Misc

[OT] One for the RAID1 and Linux bods (long)



I went out this weekend and bought two new 320Gb SATA drives to replace
the 20 80Gb drives in my Linux box (Redhat)

I've removed one part of the mirror and stuck in a 320Gb drive and used
the mdadm command to recreate the mirror. The command worked on all my
volumes apart from one:



[root@suzuki /]# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb1[1] sda1[0]
305088 blocks [2/2] [UU]

md5 : active raid1 sdb2[1] sda2[0]
25599488 blocks [2/2] [UU]

md4 : active raid1 sdb3[1] sda3[0]
10241344 blocks [2/2] [UU]

md3 : active raid1 sdb5[1] sda5[0]
5116544 blocks [2/2] [UU]

md2 : active raid1 sdb6[1] sda6[0]
1052160 blocks [2/2] [UU]

md6 : active raid1 sdb8[2] sda8[0]
37005632 blocks [2/1] [U_]
[==>..................] recovery = 12.4% (4607104/37005632)
finish=12.5min speed=43054K/sec

md0 : active raid1 sdb7[1] sda7[0]
714752 blocks [2/2] [UU]

Now on /dev/md6 (which maps to /home) this constantly fails at around
86% and restarts the RAID creation. I've changed the disks, the cables
to no avail. I've also throttled back the RAID creation speed in :

./sys/dev/raid/speed_limit_max
./sys/dev/raid/speed_limit_min

in case the new drive was too fast to support the mirroring from the
old drive.

I've also seen that there was an atapi_enabled issue in some kernels,
so I upgraded the kernel to 2.6.17-1.2142_FC4

mdadm was also a low version no, so I've upgraded that too to the
latest version v2.5.6.

Has anyone got any clues as to what may be happening? Can anyone give
me any pointers as to what I can do to fix this? Am I missing anything.
If not, I'll try to go down the route that I posted in the other Linux
post "One for the *nix bods"
Are you trying to mirror the 80 to the 320 drive?
No, I'm trying to mirror the partitions on the 80Gb drive to the 320Gb.

They've all been okay apart from one partition.


Are the first x partitions the same size on the 320 as the 80?
Yes.


I don't think it'll work. Software RAID1 really needs same size partitions.
I know.


Stop md and tar the files across from the 80 to the 320, remove the 80 and
bung the other 320 in then rebuild is the only way I can see to build a
RAID1.

You could drop md6 then just move the files, swap to both 320GB and build
Hmm, I know, but I'd like to figure out why the RAID construction is
failing.

md6 from there.