remove-single-device removes mounted HDDs (kernel 2.6)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[ Please CC any replies; I am not on this list]

I have two systems, each with at least two SCSI HDDs attached&mounted:
SLES 9 (2.6.5-7.151-smp)
Knoppix 3.9 (2.6.11.10)
If I execute echo "scsi remove-single-device h b t l" > /proc/scsi/scsi on
a mounted HDD target, the device will be _removed_. A subsequent echo "scsi
add-single-device h b t l" > /proc/scsi/scsi on the same target will cause
the device to be re-added, but it will appear at a different (next free)
device file (e.g. /dev/sda will become /dev/sdc when two HDDs are
attached).
This behavior does not appear when running kernel 2.4-based systems on the
same machines, the mounted HDDs will not be touched.

I assume this is a bug? How can I prevent that behavior? Can I easily query
if a device on "h b t l" is mounted to work-around?

Regards,
Harald Seipp,
IBM Systems and Technology Group

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux