Hi all, Last week i needed some temporary storage, so i dug up my old scsi-box, and made one soft-raid5 with six 150G disk and another soft-raid5 with 300GB disk. So far so good. Today i got hold of another 300GB disk, and wanted to put it in the last empty slot. Here my stroubles started, Some of the disked moved (with resspect with their name) up. I remembered that this problem not only exist with scsi, but more recently also with usb. 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. Pointers? Hans -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hans Witvliet wrote:
Hi all,
Last week i needed some temporary storage, so i dug up my old scsi-box, and made one soft-raid5 with six 150G disk and another soft-raid5 with 300GB disk. So far so good.
Today i got hold of another 300GB disk, and wanted to put it in the last empty slot. Here my stroubles started, Some of the disked moved (with resspect with their name) up.
I remembered that this problem not only exist with scsi, but more recently also with usb.
Yep, because USB disks are emulated as SCSI.
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/ /Per -- Per Jessen, Zürich (12.6°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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) cat /proc/mdstat Personalities : [linear] [raid6] [raid5] [raid4] md1 : active raid5 sdl1[6] sdg1[0] sdk1[5] sdj1[3] sdi1[2] sdh1[1] 1171844608 blocks super 1.0 level 5, 128k chunk, algorithm 0 [6/6] [UUUUUU] [====>................] reshape = 24.3% (71381248/292961152) finish=2408.4min speed=1530K/sec bitmap: 14/280 pages [56KB], 512KB chunk 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: 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 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) Hans -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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
participants (2)
-
Hans Witvliet
-
Per Jessen