Skip to contentSkip to conversation

MD and rotational attribute

DISCUSSION Karel Zak 3 participants 3 messages Feb 20, 2012 – Feb 27, 2012 1 message not in the archive MD RAID

lore
Share & tools
lore

Karel Zak

author
#0 lore raw

Hi Neil,

I guess that something is wrong with MD. If you create a RAID on ssd (or scsi_debug in my example) than MD device is reported as rotational. Simple example:

modprobe scsi_debug dev_size_mb=500
fdisk /dev/sdb
...
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb{1,2}

 # cat /sys/block/sdb/queue/rotational
 0
 # cat /sys/block/md0/queue/rotational
 1

It seems like a bug.

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
#2 lore raw
In reply to a message not in the archive
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Neil" == NeilBrown <[email protected]> writes:

Neil,

Neil> (I would say that the name 'rotational' is a bug - the issues here Neil> is really whether seek is fast or slow is it not??... but no Neil> matter).

Both the ATA and SCSI specs use the term 'rotational' which I guess is how we ended up with that name.

Neil> What do you think Martin? Should QUEUE_FLAG_NONROT move to Neil> queue_limits much like QUEUE_FLAG_CLUSTER did?

Absolutely. I posted some patches converting both the nonrot and discard/secure discard queue flags a while back but they didn't go in. I'll freshen up the kit and resend...

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering
#3 lore raw
Quoted 12 lines · On Sun, 26 Feb 2012 19:18:12 -0500 "Martin K. Petersen"…
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Neil" == NeilBrown <[email protected]> writes:

Neil,

Neil> (I would say that the name 'rotational' is a bug - the issues here Neil> is really whether seek is fast or slow is it not??... but no Neil> matter).

Both the ATA and SCSI specs use the term 'rotational' which I guess is how we ended up with that name.

Quoted 7 lines

Neil> What do you think Martin? Should QUEUE_FLAG_NONROT move to Neil> queue_limits much like QUEUE_FLAG_CLUSTER did?

Absolutely. I posted some patches converting both the nonrot and discard/secure discard queue flags a while back but they didn't go in. I'll freshen up the kit and resend...

Thanks!

NeilBrown