On Mon, Jan 11, 2010 at 03:34:35PM -0500, Lee, Gary D. wrote: > I need to remove a problem device so I can try and re-add it and get the > system back up at 100%. > > I am trying to remove a fzp attached ts1120 tape drive by hand without yast. > Yast doesn't work well with screen reading software for the blind. > I tried the following with no luck > > Echo 0x0000000000000000 > > /sys/bus/ccw/drivers/0.0.0401/0x500507630f5bbf0a/unit_remove > > Verified the wwpn and lun number. > > What have I missed?
There are two parts in the Linux kernel: The "zfcp unit" that you have configured and the SCSI device e.g. /dev/sda that is created by the Linux SCSI code. To remove both entries, you have to first remove the SCSI device and then the zfcp unit. The book "Device Drivers, Features, and Commands" has a section about the steps required: http://www.ibm.com/developerworks/linux/linux390/development_documentation.html http://public.dhe.ibm.com/software/dw/linux390/docu/lk32dd04.pdf page 71 Removing SCSI devices ... # echo 1 > /sys/bus/scsi/devices/<device>/delete ... # echo <fcp_lun> > # /sys/bus/ccw/drivers/zfcp/<device_bus_id>/<wwpn>/unit_remove -- Christof Schmitt ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
