ae44 Remove iscsi device - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old May 25th, 2009, 10:13
eztiger eztiger is offline
Junior Member
 
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Default Remove iscsi device

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!
Reply With Quote
  #2  
Old May 26th, 2009, 16:14
vivek's Avatar
vivek vivek is offline
Member
 
Join Date: Nov 2008
Location: Hyper Space
Posts: 809
Thanks: 3
Thanked 184 Times in 102 Posts
Default

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/
Reply With Quote
  #3  
Old May 26th, 2009, 16:20
eztiger eztiger is offline
Junior Member
 
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
  #4  
Old May 27th, 2009, 14:36
eztiger eztiger is offline
Junior Member
 
Join Date: May 2009
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT +1. The time now is 08:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0