NBSD provides a safe way to detach the kernel data structures of a disk,
'scsictl detach [target] [lun]'
From scsictl(8) man page:
"Commands pertaining to scsi busses:
reset
scan target lun
detach target lun
Use `any' or `all' to wildcard target or lun"
We seem to be missing this feature. "Stop" is just going to cause the
disk to spin down. So what is the equiviliant recommended procedure on
FreeBSD?
Current thinking:
- Umount the FS;
- Remove it from any geom(4) devices
- Physically pull the drive
- Rescan the bus w/ camcontrol and let it discover that the disk is no
longer there
- Insert the new drive
- Rescan the bus and let it discover the new drive
Presumably instead of rescanning the whole bus, you could scan a specific
bus[:target:lun].
Thoughts?
~BAS
l8*
-lava (Brian A. Seklecki - Pittsburgh, PA, USA)
http://www.spiritual-machines.org/
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"