Bellow the simply way to remove iscsi connection.
Check availability disks :
bash-3.2# echo | format
Searching for disks...
AVAILABLE DISK SELECTIONS:
0. c0d0 <▒x▒▒▒▒▒▒▒▒▒@▒▒▒ cyl 6524 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c3t6589CFC0000005D031823E839C658847d0
/scsi_vhci/disk@g6589cfc0000005d031823e839c658847
Specify disk (enter its number): Specify disk (enter its number):
Disk number 1 is from ISCSI device, this will be remove by removing the ISCSI connection as bellow :
Disable the target discovery :
bash-3.2# iscsiadm modify discovery -s disable
bash-3.2# iscsiadm modify discovery -t disable
Check static configuration,
bash-3.2# iscsiadm list static-config
Static Configuration Target: iqn.2016-05.org.freenas.ctl,192.168.100.131:3260
Remove configuration for ISCSI target iqn.2016-05.org.freenas.ctl,192.168.100.131:3260 :
bash-3.2# iscsiadm remove static-config iqn.2016-05.org.freenas.ctl,192.168.100.131:3260
bash-3.2# devfsadm -i iscsi -v
Check available disks after disconnection :
bash-3.2# echo | format
Searching for disks...
AVAILABLE DISK SELECTIONS:
0. c0d0 <▒x▒▒▒▒▒▒▒▒▒@▒▒▒ cyl 6524 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
Specify disk (enter its number): Specify disk (enter its number):
#EOF
Removing ISCSI Connection
May 24, 2016 11:17 AM
Filed Under: cmdline, confbuild, oracle |0 comments
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment