Removing EMC LUN from Solaris 10 host without a reboot

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Removing EMC LUN from Solaris 10 host without a reboot
# 1  
Old 08-31-2011
Removing EMC LUN from Solaris 10 host without a reboot

I have seen a few threads / posts on the forum's but nothing specific to what Iam after. So Iam hoping you can help.

Issue : Iam hoping to remove unused emc luns from my solaris servers , T2000 (5.10 Generic_142900-02). I have a list of the process I have followed for the removal of the luns. As it stands it looks like a reboot is required to remove the luns, but Iam hoping it just something I have missed. Please help if you can. I have tired the process below in different stages thinking that I have messed the sequence, but I was thinking that the removal should be as following??????

vxvm level,
dmp level
powerpath - Not applicable here
os - devfsadm level


VXVM Level,
1. Remove the disk from veritas control using 'vxdiskunsetup <device> and vxdisk rm <device>. At this stage I have also tried to clean up the devices from /dev/vx/dmp and /dev/vx/rdmp.

# vxdg -g testdg rmdisk emc0_ABC
# /etc/vx/bin/vxdiskunsetup emc0_ABC
# vxdisk rm emc0_ABC

2. Remove the disk from storage side.
Once the disk is removed from storage you will see the disk as <drive not available > in format. command inq does not see the disk either.

Then devfsadm -Cv - to scan for hardware changes

3) Check the dmp info, the devices should be disabled, which they are
# vxdmpadm listctlr all
# vxdmpadm getsubpaths ctlr=c2
# vxdmpadm getsubpaths ctlr=c3
c3t50060482D531F7C2d9s2 DISABLED - emc0_ABC EMC emc0 -

This is where we have issues,

4) cfgadm - At this point you should be able to remove the disk with " cfgadm" if the disk is in unusable state. If its in 'failing' state use 'luxadm' to offline the disk. You cannot unconfigure a disk unless it is in 'unusable' state and you have to unconfigure both the paths of your disk. But this is what Iam seeing,
c2::50060482d531f7ed,9 disk connected configured unusable
c3::50060482d531f7c2,9 disk connected configured unusable
# cfgadm -al -o show_SCSI_LUN |grep c3t50060482D531F7C2d9s2
# luxadm -e offline /dev/dsk/c3t50060482D531F7C2d9s2
# cfgadm -c unconfigure -o unusable_SCSI_LUN c2::50060482d531f7ed,9
# cfgadm -c unconfigure -o unusable_SCSI_LUN c2::50060482d531f7ed,9 cfgadm: Attachment point not found

Even a re-read of the sd.conf file doesn’t work
update_drv -vf sd

Even tried,
# cat /dev/null > /etc/vx/
# cat /dev/null > /etc/vx/

We have tried removing the disk info from

5) Remove the references to the
# cd /dev/vx/*dmp/
# ls -la
# rm emc0_ABC* (from both rdmp and dmp)


Last edited by pludi; 08-31-2011 at 10:13 AM..
# 2  
Old 08-31-2011
# cfgadm -c unconfigure -o unusable_SCSI_LUN c2::50060482d531f7ed,9

# cfgadm -c unconfigure -o unusable_SCSI_LUN c2::50060482d531f7ed,9 cfgadm: Attachment point not found
Try these instead one for c2 and then c3 :
# cfgadm -c unconfigure -o unusable_SCSI_LUN c2::50060482d531f7ed
# cfgadm -c unconfigure -o unusable_SCSI_LUN c3::50060482d531f7c2

# 3  
Old 09-01-2011
Thank you for the reply. I have a question?

How would the unconfigure affect that PATH as there are other disks using that path. I dont want to cause any impact to the other disks currently in use?
# 4  
Old 09-02-2011
Thats has worked!! But iam not sure how this affects the other Luns on the PATH. Doesnt look to have done anything to them. One of the reasons this didnt work before was that the disk were showing up as "failing" and not unusable.

# cfgadm -c unconfigure -o unusable_SCSI_LUN c2::50060482d531f7ed

# cfgadm -c unconfigure -o unusable_SCSI_LUN c3::50060482d531f7c2

BUT!!, there is always a but. I cannot remove the disk from vxdmpadm, its still showing up as disabled. Any help would be appreciated

c2t50060482D531F7EDd12s2 DISABLED - emc0_ABC EMC emc0 -
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

AIX help -reconnect EMC lun

we have an old AIX system with important data on an EMC LUN. the AIX server crashed and we had to rebuild it with the old AIX os 5.8. how do we reconnect the EMC LUN without losing the data? (15 Replies)
Discussion started by: jhudson12
15 Replies

2. Solaris

Solaris/vxvm/EMC Lun configuration

Hello all, i try to allocate the same LUN to two server (or more in the future) i use solaris 10, vxvm (vxfs) for data and solaris zones and EMC DMX-4, i try to migrate solaris zones between servers in case of problem. and this is what i want to do - affect LUN to srv00124 and srv10155 -... (5 Replies)
Discussion started by: mat_solaris
5 Replies

3. Solaris

Solaris 10 booting from EMC SAN DISK

Hi All, I have server : Sun-Fire-V490 configured with Solaris 10 zfs .. and I have configured three mirror the third one from EMC storage. root@server # zpool status -v pool: rpool state: ONLINE status: The pool is formatted using an older on-disk format. The pool can ... (8 Replies)
Discussion started by: top.level
8 Replies

4. Linux

EMC, PowerPath and issue on using LUN

Hello guys, I'm going crazy over here with a problem with a LUN created on a EMC CX3. I did sucessfully managed to create the LUN on the Storage (the LUN is named DBLNX25EC_TST), after doing the following process: echo "1" > /sys/class/fc_host/host<n>/issue_lip and echo "- - -" >... (10 Replies)
Discussion started by: Zarnick
10 Replies

5. Shell Programming and Scripting

Solaris Server dectects EMC dead path and send mail immediately

taus-itcapp1#powermt display dev=all Pseudo name=emcpower0a CLARiiON ID=APM00105201788 Logical device ID=60060160B2202B001094F0E0AF5CE011 state=alive; policy=CLAROpt; priority=0; queued-IOs=0; Owner: default=SP A, current=SP A Array failover mode: 1 ... (6 Replies)
Discussion started by: orafup
6 Replies

6. Solaris

Documentation on connecting EMC storage to Solaris servers

Hi Can anyone suggest me some documents for EMC clarion documents which I am going to use in the servers with solaris environments. (1 Reply)
Discussion started by: ningy
1 Replies

7. Red Hat

Grow LUN presented on Linux host

Hi, I have a SAN LUN of 550 GB created as an ext3 partition of the entire lun and need to make the lun and partition larger... 600 GB # fdisk -l /dev/sdj Disk /dev/sdj: 590.5 GB, 590558003200 bytes 255 heads, 63 sectors/track, 71797 cylinders Units = cylinders of 16065 * 512 = 8225280... (3 Replies)
Discussion started by: jamba1
3 Replies

8. Solaris

Can't see Netapp LUN on Solaris using LPFC after reboot.

Hi, I've just edited this post. I found the solution for this. Thanks. (0 Replies)
Discussion started by: gwhelan
0 Replies

9. Solaris

Problems fetching EMC disks to Solaris OS.

Hi, I have a nasty little problem with my disks on my system My system configuration is as follows Sunv890 with sunos 9 connected tot a IBM6800 SAN using a 2port 2 GB qla2342 adapter. We have bought a EMC SAN. The company who sold us the san, said that it would be no problem connecting the... (10 Replies)
Discussion started by: orac
10 Replies
Login or Register to Ask a Question

Featured Tech Videos