On 02/09/13 03:09, Andy Bradford wrote:
Thus said Joel Sing on Sat, 09 Feb 2013 16:44:11 +1100:

umount via DUID  does not work currently - this  will be fixed shortly
after the next release freeze has ended.
Will that  also include shutdown  of softraid  via DUID? e.g.,

bioctl -d DUID

Or is this not even possible?

Thanks,

Andy

Oddly enough, no. The reason I find it odd is that in my script to ask for my password in rc.securelevel, the bioctl command uses DUIDs. My rc.shutdown:

<snip>
umount -f /st7
umount -f /home

bioctl -d sd10
#bioctl -d 485a9f963f9cf9ea
#bioctl -d 485a9f963f9cf9ea.a

bioctl -d sd11
#bioctl -d 36d18f2cde909b01
#bioctl -d 36d18f2cde909b01.a
</snip>

The commented lines are what I tried and found not to work. Which kinda blows because if I change anything in the BIOS, the drives get renumbered so I pretty much *have* to use DUIDs. (I have other OpenBSD installations and other OSes on other drives.)

This can get quite messy and I end up with "roaming" drive warnings:

# dmesg |grep sd[0-9]
sd0 at scsibus0 targ 0 lun 0: <ATA, ST3000DM001-9YN1, CC4B> SCSI3 0/direct fixed naa.5000c500525bf426
sd0: 2861588MB, 512 bytes/sector, 5860533168 sectors
sd1 at scsibus0 targ 1 lun 0: <ATA, ST3000DM001-9YN1, CC4B> SCSI3 0/direct fixed naa.5000c5005265ff15
sd1: 2861588MB, 512 bytes/sector, 5860533168 sectors
sd2 at scsibus0 targ 2 lun 0: <ATA, ST3000DM001-9YN1, CC4B> SCSI3 0/direct fixed naa.5000c5004a5baa2e
sd2: 2861588MB, 512 bytes/sector, 5860533168 sectors
sd3 at scsibus0 targ 3 lun 0: <ATA, ST3000DM001-9YN1, CC4B> SCSI3 0/direct fixed naa.5000c5004a6e56f1
sd3: 2861588MB, 512 bytes/sector, 5860533168 sectors
sd4 at scsibus2 targ 0 lun 0: <ATA, OCZ-VERTEX4, 1.4> SCSI3 0/direct fixed naa.5e83a97ba7b2fd30
sd4: 122104MB, 512 bytes/sector, 250069680 sectors, thin
sd5 at scsibus2 targ 1 lun 0: <ATA, M4-CT064M4SSD1, 0309> SCSI3 0/direct fixed naa.500a0751032e95ec
sd5: 61057MB, 512 bytes/sector, 125045424 sectors, thin
sd6 at scsibus2 targ 2 lun 0: <ATA, ST31500341AS, CC1H> SCSI3 0/direct fixed naa.5000c50019d9277e
sd6: 1430799MB, 512 bytes/sector, 2930277168 sectors
sd7 at scsibus2 targ 5 lun 0: <ATA, LITEONIT LMT-32L, LWS2> SCSI3 0/direct fixed naa.5000000000000000
sd7: 30533MB, 512 bytes/sector, 62533296 sectors, thin
sd8 at scsibus4 targ 1 lun 0: <OPENBSD, SR RAID 1, 005> SCSI2 0/direct fixed
sd8: 2861588MB, 512 bytes/sector, 5860532576 sectors
sd9 at scsibus4 targ 2 lun 0: <OPENBSD, SR RAID 1, 005> SCSI2 0/direct fixed
sd9: 2861588MB, 512 bytes/sector, 5860532576 sectors
root on sd5a (6be798121798a5a7.a) swap on sd5b dump on sd5b
sd10 at scsibus4 targ 3 lun 0: <OPENBSD, SR CRYPTO, 005> SCSI2 0/direct fixed
sd10: 666MB, 512 bytes/sector, 1365008 sectors
sd11 at scsibus4 targ 4 lun 0: <OPENBSD, SR CRYPTO, 005> SCSI2 0/direct fixed
sd11: 858476MB, 512 bytes/sector, 1758159312 sectors


--
Scott McEachern

https://www.blackstaff.ca

Reply via email to