Hi
I would like to remove SAN luns from system and do not want them even after system reboot,
format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w2100000087151713,0
c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w2100000087140f53,0
c5t6006016037A11600A0D624F5AB95DB11d0 <DGC-RAID5-0219 cyl 61438 alt 2 hd 256 sec 20>
/scsi_vhci/ssd@g6006016037a11600a0d624f5ab95db11
c5t6006016037A11600D453FF1DA0F2DA11d0 <DGC-RAID5-0219 cyl 51198 alt 2 hd 256 sec 16>
/scsi_vhci/ssd@g6006016037a11600d453ff1da0f2da11
c5t6006016037A11600FA274402AC95DB11d0 <DGC-RAID5-0219 cyl 40958 alt 2 hd 256 sec 10>
/scsi_vhci/ssd@g6006016037a11600fa274402ac95db11
c5t6006016037A11600FB274402AC95DB11d0 <DGC-RAID5-0219 cyl 40958 alt 2 hd 256 sec 10>
/scsi_vhci/ssd@g6006016037a11600fb274402ac95db11
c5t6006016037A11600FC274402AC95DB11d0 <DGC-RAID5-0219 cyl 40958 alt 2 hd 256 sec 10>
/scsi_vhci/ssd@g6006016037a11600fc274402ac95db1
df -kh
I know last 4 partitions are from SAN but there could be more.
Can someone please help me correct steps to remove SAN Luns.
vxdisk list
cfgadm -al
cfgadm -al -o show_FCP_dev
Ap_Id Type Receptacle Occupant Condition
c1 fc-private connected configured unknown
c1::2100000087140f53,0 disk connected configured unknown
c1::2100000087151713,0 disk connected configured unknown
c4 fc-fabric connected configured unknown
c4::5006016130206b9d,0 disk connected configured unknown
c4::5006016130206b9d,1 disk connected configured unknown
c4::5006016130206b9d,2 disk connected configured unknown
c4::5006016130206b9d,3 disk connected configured unknown
c4::5006016130206b9d,4 disk connected configured unknown
c4::5006016830206b9d,0 disk connected configured unknown
c4::5006016830206b9d,1 disk connected configured unknown
c4::5006016830206b9d,2 disk connected configured unknown
c4::5006016830206b9d,3 disk connected configured unknown
c4::5006016830206b9d,4 disk connected configured unknown
luxadm -e port
Found path to 2 HBA ports
/devices/pci@8,700000/SUNW,qlc@3/fp@0,0:devctl CONNECTED
/devices/pci@9,600000/SUNW,qlc@2/fp@0,0:devctl CONNECTED
ls -la /dev/cfg
total 28
drwxr-xr-x 3 root root 512 Dec 18 2006 .
drwxr-xr-x 17 root sys 6656 Feb 13 23:05 ..
lrwxrwxrwx 1 root root 37 Nov 18 2003 c0 -> ../../devices/pci@8,700000/ide@6:scsi
lrwxrwxrwx 1 root other 47 Nov 19 2003 c1 -> ../../devices/pci@9,600000/SUNW,qlc@2/fp@0,0:fc
lrwxrwxrwx 1 root root 44 Nov 20 2003 c2 -> ../../devices/pci@8,600000/pci@1/scsi@4:scsi
lrwxrwxrwx 1 root root 44 Nov 20 2003 c3 -> ../../devices/pci@8,600000/pci@1/scsi@5:scsi
lrwxrwxrwx 1 root root 47 Dec 18 2006 c4 -> ../../devices/pci@8,700000/SUNW,qlc@3/fp@0,0:fc
drwxr-xr-x 2 root root 512 Dec 21 2005 usb0
I have already stopped Application and oracle running on this system.
now I want to unmount partitions (only from SAN) and remove any configuration for SAN so that reboot will not show the disks or try to mount.
Please help!
Thanks
pressy
March 24, 2009, 4:34am
2
hi,
that should work:
umount them and then issue this command:
# cfgadm -o force_update -c unconfigure c4::5006016130206b9d
# cfgadm -o force_update -c unconfigure c4
and the same for every controller. it that doesn't work, just disconnect the cables, then you will see:
c4::5006016130206b9d,0 disk connected configured unusable
when it is marked as "unusable" you can use that:
# cfgadm -o unusable_FCP_dev -c unconfigure c4::5006016130206b9d
to remove the "dev" entries, you should also use:
# devfsadm -Cv
kind regards
pressy:
hi,
that should work:
umount them and then issue this command:
# cfgadm -o force_update -c unconfigure c4::5006016130206b9d
# cfgadm -o force_update -c unconfigure c4
and the same for every controller. it that doesn't work, just disconnect the cables, then you will see:
c4::5006016130206b9d,0 disk connected configured unusable
when it is marked as "unusable" you can use that:
# cfgadm -o unusable_FCP_dev -c unconfigure c4::5006016130206b9d
to remove the "dev" entries, you should also use:
# devfsadm -Cv
kind regards
Thanks a lot! Pressy, I will let you know how it goes.