Date: Thu, 22 Feb 2007 11:02:04 -0500 (EST) From: "Brian A. Seklecki" <lavalamp@spiritual-machines.org> To: freebsd-questions@freebsd.org Subject: scsictl(8) 'detach' equiv in camcontrol(8) ? Message-ID: <20070222105433.B84901@arbitor.digitalfreaks.org>
next in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070222105433.B84901>