Hans Witvliet wrote:
On Fri, 2009-10-02 at 08:26 +0200, Per Jessen wrote:
Hans Witvliet wrote:
Googling i found out that it is supposed to be solved by using disk-labels instead of the disk-device-name. This might very well work when mounting disks individualy, but i failed to see how a softraid can be told to use labels.
You're talking about how to refer to the drives when you create the arrays with mdadm? Once they're created, the drive-letters assigned to the individual drives should not matter, AFAIK. Regardless, another way of referring to drive is with /dev/disk/by-path/
No, the drive-letters do matter, not the path (yet, perhaps)
Yes, they do matter, but only at time of creation - once the RAID array is running, I'm sure you you can e.g. reboot without getting the array screwed up due new assignment of drive-letters.
The only Q&D-way i could solve it last night, was by moving all the disks one position, so that the new disk became the last in position:
What exactly happened? You (hot-?) added a new drive, rescanned the scsi-bus (or rebooted) and then?
Original: [0:0:2:0] disk COMPAQ BD14688278 HPB2 /dev/sda [0:0:3:0] disk COMPAQ BD14688278 HPB2 /dev/sdb [0:0:4:0] disk COMPAQ BD14689BB9 HPB1 /dev/sdc [0:0:5:0] disk COMPAQ BD14687B52 HPB8 /dev/sdd [0:0:8:0] disk COMPAQ BD14687B52 HPB8 /dev/sde [0:0:9:0] disk COMPAQ BD14689BB9 HPB1 /dev/sdf [0:0:11:0] disk COMPAQ BF3008B26C HPB9 /dev/sdg [0:0:12:0] disk COMPAQ BF3008B26C HPB9 /dev/sdh [0:0:13:0] disk COMPAQ BD30089BBA HPB1 /dev/sdi [0:0:14:0] disk COMPAQ BF3008B26C HPB9 /dev/sdj [0:0:15:0] disk COMPAQ BF3008B26C HPB9 /dev/sdk
new: [0:0:2:0] disk COMPAQ BD14688278 HPB2 /dev/sda [0:0:3:0] disk COMPAQ BD14688278 HPB2 /dev/sdb [0:0:4:0] disk COMPAQ BD14689BB9 HPB1 /dev/sdc [0:0:5:0] disk COMPAQ BD14689BB9 HPB1 /dev/sdd [0:0:8:0] disk COMPAQ BD14687B52 HPB8 /dev/sde [0:0:9:0] disk COMPAQ BD14689BB9 HPB1 /dev/sdf [0:0:10:0] disk COMPAQ BF3008B26C HPB9 /dev/sdg [0:0:11:0] disk COMPAQ BF3008B26C HPB9 /dev/sdh [0:0:12:0] disk COMPAQ BD30089BBA HPB1 /dev/sdi [0:0:13:0] disk COMPAQ BF3008B26C HPB9 /dev/sdj [0:0:14:0] disk COMPAQ BF3008B26C HPB9 /dev/sdk [0:0:15:0] disk COMPAQ BF3008AFEC HPB1 /dev/sdl sdg..sdk all moved-down one scsi-id
Uh, it looks like you added a drive as LU10 ? If you change the LUs around, all bets are off.
It would be nice though if soft-raids made my yast, would be using the disk-name (BD14688278 or so) instead of the drive-letter (sda)
Well, your "disk-name" isn't exactly unique, but /dev/disk/by-path or /dev/disk/by-uuid both are. /Per -- Per Jessen, Zürich (14.1°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org