need help for removing SAN LUNS on solaris 9


 
Thread Tools Search this Thread
Operating Systems Solaris need help for removing SAN LUNS on solaris 9
# 1  
Old 03-23-2009
need help for removing SAN LUNS on solaris 9

Hi

I would like to remove SAN luns from system and do not want them even after system reboot,

format
Searching for disks...done

Quote:
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
1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w2100000087140f53,0
2. c5t6006016037A11600A0D624F5AB95DB11d0 <DGC-RAID5-0219 cyl 61438 alt 2 hd 256 sec 20>
/scsi_vhci/ssd@g6006016037a11600a0d624f5ab95db11
3. c5t6006016037A11600D453FF1DA0F2DA11d0 <DGC-RAID5-0219 cyl 51198 alt 2 hd 256 sec 16>
/scsi_vhci/ssd@g6006016037a11600d453ff1da0f2da11
4. c5t6006016037A11600FA274402AC95DB11d0 <DGC-RAID5-0219 cyl 40958 alt 2 hd 256 sec 10>
/scsi_vhci/ssd@g6006016037a11600fa274402ac95db11
5. c5t6006016037A11600FB274402AC95DB11d0 <DGC-RAID5-0219 cyl 40958 alt 2 hd 256 sec 10>
/scsi_vhci/ssd@g6006016037a11600fb274402ac95db11
6. c5t6006016037A11600FC274402AC95DB11d0 <DGC-RAID5-0219 cyl 40958 alt 2 hd 256 sec 10>
/scsi_vhci/ssd@g6006016037a11600fc274402ac95db1
df -kh
Quote:
Filesystem size used avail capacity Mounted on
/dev/vx/dsk/rootvol 19G 11G 8.1G 58% /
/dev/vx/dsk/usr 9.8G 2.5G 7.2G 26% /usr
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
/dev/vx/dsk/var 9.8G 2.3G 7.4G 24% /var
swap 14G 176K 14G 1% /var/run
swap 14G 184K 14G 1% /tmp
/dev/vx/dsk/opt 20G 11G 8.1G 59% /opt
/dev/vx/dsk/bboradg/VOL-OR
45G 2.2G 40G 6% /usr/local/oracle
/dev/vx/dsk/bboradg/VOL-U02
45G 23G 21G 52% /u02
/dev/vx/dsk/bboradg/VOL-U01
45G 11G 32G 25% /u01
/dev/vx/dsk/bboradg/VOLBB
245G 229G 15G 94% /usr/local/application
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
Quote:
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 sliced rootdisk rootdg online
c1t1d0s2 sliced rootmirror rootdg online
fabric_0 sliced sanoradg05 bboradg online
fabric_1 sliced sanoradg01 bboradg online
fabric_2 sliced sanoradg02 bboradg online
fabric_3 sliced sanoradg03 bboradg online
fabric_4 sliced sanoradg04 bboradg online
cfgadm -al
Quote:
Ap_Id Type Receptacle Occupant Condition
c0 scsi-bus connected configured unknown
c0::dsk/c0t0d0 CD-ROM connected configured unknown
c1 fc-private connected configured unknown
c1::2100000087140f53 disk connected configured unknown
c1::2100000087151713 disk connected configured unknown
c2 scsi-bus connected unconfigured unknown
c3 scsi-bus connected unconfigured unknown
c4 fc-fabric connected configured unknown
c4::5006016130206b9d disk connected configured unknown
c4::5006016830206b9d disk connected configured unknown
usb0/1 unknown empty unconfigured ok
usb0/2 unknown empty unconfigured ok
usb0/3 unknown empty unconfigured ok
usb0/4 unknown empty unconfigured ok
cfgadm -al -o show_FCP_dev
Quote:
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
Quote:
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
Quote:
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
# 2  
Old 03-24-2009
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
# 3  
Old 03-24-2009
Quote:
Originally Posted by 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
- pressy
Thanks a lot! Pressy, I will let you know how it goes.Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Are these SAN LUNs really not mounted?

Hello everyone. I've been asked to check if something is wrong with the storage setup on these two SunOS 5.10 machines, which are being used as database servers with Oracle RAC configuration. Seems to be that the DB guy is complaining, telling that they are nearly out of space, which sounds... (4 Replies)
Discussion started by: kacareu
4 Replies

2. Solaris

SAN-based LUNs

running Solaris10 with Qlogic FC adapters connected to a multi-host FC array..using VXFS/VXVM.. Is there in Solaris10 or using some Qlogic drivers to filter out only the LUNs this host can see ?? Normally this is done by LUN masking in the FC switch or the FC array itself..however, neither... (2 Replies)
Discussion started by: ppchu99
2 Replies

3. Solaris

SAN boot solaris 10

I have a solaris 10 box which does not have internal disks it has just a single dual port HBA card. Storage team has assigned 2 LUNs to the system and i can see it from the probe-scsi-all /pci@3,700000/SUNW,emlxs@0,1 Device PortID 10100 WWPN 5006016941e0a08d LUN 0 Disk DGC ... (0 Replies)
Discussion started by: fugitive
0 Replies

4. Filesystems, Disks and Memory

mount luns solaris

Hi I´m new to san and lun´s I see the disks, but are not able to mount them bash-3.00# mountall checking ufs filesystems /dev/rdsk/c3t5006016930601F86d0s6: I/O error Can't open /dev/rdsk/c3t5006016930601F86d0s6: I/O error /dev/rdsk/c3t5006016930601F86d0s6: CAN'T CHECK FILE SYSTEM.... (1 Reply)
Discussion started by: ludvig
1 Replies

5. HP-UX

Target LUNs plus que deux sur un SAN de 2 fabrics

salut admin, Normalement mon serveur doit voir un de mes LDEV à partir de deux chemins sur le SAN et ainsi lui attribuer seulement deux Target LUNs. Or il lui en a attribué 8!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Très bizzare! Auriez vous une idée. Merci pour votre aide appréciée (2 Replies)
Discussion started by: hmaiida
2 Replies

6. AIX

san luns controller problem

Hi, I'd like to share this... I see all the luns on my aix when I do lspv, 10 of them, configured by the san contractor. I defined the first sanvg no problem, the second one no problem, but the third got problem and so on. It's random after the second, I think. The error is 0516-024 mkvg:... (5 Replies)
Discussion started by: itik
5 Replies

7. UNIX for Advanced & Expert Users

SAN Configuration in Solaris

Hi, I have 4 servers that I connected SUN HBAs on. (SAN is IBM - ESS 800 with Brocade switch) I installed the SAN foundation kit, IBMsdd drivers, Solaris Patch 108974-50 & SANsurfer CLI. (I'm running Solaris 8 - HBA is SG-XPC11FC-QL2 On 1 of the 4 servers show the HBAs as CONNECTED, but... (3 Replies)
Discussion started by: Remi
3 Replies

8. Solaris

Solaris and SAN

Hi, How can we differentiate a SAN disk with a Solaris local disk? Please respond. Thanks (4 Replies)
Discussion started by: balu_solaris
4 Replies

9. Solaris

SAN Configuration in Solaris

I Have IBM ESS 800, trying to configure SAN storage using Fiber card. I installed the SDD driver & can see the disks however, when I did # datapath query device I have the disks shown in slices # ./datapath query device Total Devices : 8 Dev#: 0 Device Name: vpath1a Type:... (0 Replies)
Discussion started by: Remi
0 Replies
Login or Register to Ask a Question