ae44
![]() |
|
|
|
|
|||||||
| Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Possibly a simple question -
I've succesfully configured the iscsi intiator and connected to an iscsi target using iscontrol. This has given me a da0 device which has been formatted and mounted etc etc Basically - I'm now done with it. I can obviously unmount it but the /dev/da0 device will be left hanging around. How can I 'shutdown' that iscsi device? iscontrol has no option - I'm assuming this is something camcontrol handles? A reboot would be the nasty way of doing this - but I'd obviosuly prefer not to! Any hints? Thanks! |
|
#2
|
||||
|
||||
|
Unload iscsi initiator driver from the kernel itself:
Code:
kldunload -v iscsi_initiator.ko
__________________
Neither in this world nor elsewhere is there any happiness in store for him who always doubts. If you enjoyed my answer please consider donating some money to FreeBSD foundation @ http://www.freebsdfoundation.org/ |
|
#3
|
|||
|
|||
|
Sadly I'm using a PAE kernel - so not loadable (or unloadable!) kernel modules. It's hard compiled in.
sysctl tells me : net.iscsi.0.pid: 67376 and 'lo : root 67376 0.0 0.0 3264 916 ?? Is Sat12AM 0:00.04 iscontrol -n target0 I had expected iscontrol to do it's business and terminate. I guess killing this off might have the desired effect - although I havn't tried it yet. Seems messy! kev |
|
#4
|
|||
|
|||
|
To update - yes killing off iscontrol works.
This is actually mentioned in the man page but I missed it. Sending it a SIGHUP causes it to cleanly remove the device : (da0:iscsi0:0:0:0): lost device (da0:iscsi0:0:0:0): removing device entry Not so elegant but it works :) Last edited by DutchDaemon; May 27th, 2009 at 14:44. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| iSCSI with NetApp target | furio | Peripheral Hardware | 0 | April 17th, 2009 18:20 |
| How to remove FireFox ??? | Juveinferno | Installing & Upgrading | 14 | December 25th, 2008 16:55 |
| ISCSI Mounting Help | Biker803 | System Hardware | 4 | December 4th, 2008 19:28 |
| ISCSI Mounting Help | Biker803 | General | 0 | December 3rd, 2008 20:04 |
| FreeBSD + ISCSi + Openfiler | LaR3 | Networking | 4 | November 19th, 2008 15:16 |