LUn' unmapped from storage still showing on Solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris LUn' unmapped from storage still showing on Solaris 10
# 1  
Old 06-14-2015
LUn' unmapped from storage still showing on Solaris 10

How can i remove LUN's from solaris 10 those are unmapped from SAN?

from storage side i got confirmation that they removed lun. but in my solaris box still it's visible.

i tried below.

Code:
root@globalares2.example.com #luxadm -e offline /dev/rdsk/c2t600D02310007D16C42FF09E24B5B8255d0s2
Error: can't acquire "/devices/scsi_vhci/ssd@g600d02310007d16c42ff09e24b5b8255:c,raw": Device busy

# 2  
Old 06-14-2015
Hi bentech4u,
Try running 'lsof | grep /dev/rdsk/c2t600D023' and see if it shows any processes still using the device. Cycling the process will probably free it up.

Thanks,
Tony
# 3  
Old 06-15-2015
HI

thanks for your reply.

Code:
root@globalares2.example.com #lsof | grep /dev/rdsk/c2t600D023
bash: lsof: command not found

i am using solaris 10 SPARC. is there any patch need to install ?



Quote:
Originally Posted by TioTony
Hi bentech4u,
Try running 'lsof | grep /dev/rdsk/c2t600D023' and see if it shows any processes still using the device. Cycling the process will probably free it up.

Thanks,
Tony
---------- Post updated at 10:19 PM ---------- Previous update was at 10:08 PM ----------

hi sorry. i have installed lsof package and i got below wile trying the command you suggested

Code:
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002
lsof: no pwd entry for UID 1002

# 4  
Old 06-15-2015
The lsof output just means it found something (a process, file, etc) in use by a user with the UID of 1002 but that user is not listed in the /etc/passwd file. I've seen this happen two different ways, there may be more. 1) The user started some processes and was removed from the system, but the processes continue to run. 2) The user is an NIS user and something has gone horribly wrong with NIS (but I think I have maybe only seen this once).

Let's back up a bit. Can you provide more info about the circumstances leading up to the LUN being removed? For example, are you scraping an Oracle instance that was running on the system and removed the LUNs and User ID? What SAN are you using?

If there is some event matching this type of scenario then I would be confident UID 1002 still has some processes running that are using that LUN.

In that case you can run 'ps -u 1002' or 'ps -U 1002' and see if you can identify the process or processes. You can then try to stop them gracefully, kill -HUP them, or kill -9 them.

If you have some other scenario where UID 1002 may not have anything to do with the issue, please give some details and we can try to tackle it a different way.
# 5  
Old 06-15-2015
Thanks

Seems like your 1st suggestion is more matching bcoz i am not using NIS

The filesystem is unmounted completely from the system. My storage is EMC

Regarding process id, i will check and update you
# 6  
Old 06-15-2015
I'm signing off for the night but some other commands that may help you work through this are:

To clean up the device list:
Code:
devfsadm -C

To remove hardware:
Code:
cfgadm -c unconfigure

To check currently available disks:
Code:
probe-scsi

And you already are aware of luxadm. Please read the man pages before running any of the above to make sure they will help you and not hurt you.

---------- Post updated at 09:42 PM ---------- Previous update was at 09:38 PM ----------

And one other thing: if you are using powerpath, Veritas, or some other multipathing software you may need to update them before you can fully remove the device.

Last edited by rbatte1; 06-15-2015 at 09:48 AM.. Reason: Added CODE tags
# 7  
Old 06-15-2015
this is related to process search

Code:
root@globalares2.example.com #ps -u 1002
ps: unknown user 1002
root@globalares2.example.com #ps -U 1002
ps: unknown user 1002
root@globalares2.example.com #more /etc/passwd | grep -i 1002

---------- Post updated 06-15-15 at 12:06 AM ---------- Previous update was 06-14-15 at 11:45 PM ----------

HI, i found the same server has 2 zones and 2 LUN from same storage is assigned to these 2 zones, and the userid 1002 is with one of the zone

Code:
root@test.example.com #zoneadm list | awk 'NR>1' | while read n ; do echo $n ;zlogin $n more /etc/passwd | grep -i 1002;done
uatfindbr
applfin:x:1002:111::/export/home/applfin:/bin/ksh
applshut:x:1002:111:backup-operation:/export/home/applshut:/bin/sh
applstart:x:1002:111:backup-operation:/export/home/applstart:/bin/sh

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

AIX server do not detect LUN from HP storage

ssssssssssss (0 Replies)
Discussion started by: sampathenjoy
0 Replies

2. Solaris

Luxadm display not showing a LUN as expected

Hi all, I have the following LUN which is showing OK with its two paths: DEVICE PROPERTIES for disk: /dev/rdsk/c23t500507630A3BC579d123s2 Vendor: IBM Product ID: 2107900 Revision: 3010 Serial Num: 75WB0114900 Unformatted capacity:... (13 Replies)
Discussion started by: ludiegu
13 Replies

3. Solaris

Mpathadm showing no paths to 1 lun, others luns are fine

Hi, I've noticed that mpathadm states that one of our luns has no active paths: /dev/rdsk/c6t60000970000298700009533031324333d0s2 Total Path Count: 4 Operational Path Count: 4 /dev/rdsk/c6t60000970000298700009533031333037d0s2 ... (3 Replies)
Discussion started by: badoshi
3 Replies

4. Solaris

Solaris 10, adding new LUN from SAN storage

Hello to all, Actually, currently on my Solaris box, I've a LUN (5TB space) from a EMC storage which is working fine, and a partition with ZFS filesystem is created for that LUN. as further you'll see in the logs, the "c4t6006016053802E00E6A9196B6506E211d0s2" is the current configured LUN in the... (4 Replies)
Discussion started by: Anti_Evil
4 Replies

5. Solaris

How to get LUN WWN in Solaris?

How to get LUN WWN (i.e LUN mapped from a storage box say Symmetrix or clariion) in Solaris. fcinfo command does give the Target port wwn but what i'm looking for is the LUN WWN. Any help is appreciated. (2 Replies)
Discussion started by: Manish00712
2 Replies

6. Solaris

new attached lun in solaris 10

hi, what are the steps to detect and configure a new attached lun in Solaris 10. Is there any difference between cfgadm and luxadm command ? rgds, snjksh (5 Replies)
Discussion started by: snjksh
5 Replies

7. Solaris

Solaris 9 or 10 LUN Limitations

Is there a limit to the number of LUNS that can be concatenated using Solaris Volume manager with Soft partitions? I have worked with some AIX admins in the past and there was such a limitation therefore limiting the size the filesystem could grow to. Is there such a limitation in Solaris 9... (6 Replies)
Discussion started by: BG_JrAdmin
6 Replies

8. Solaris

command to scan Enterprise storage Lun disk in Solaris

I just installed IBMsdd on Solaris diver along with the patches recommended. I also installed 2 - 2Gigs qlogic fiber cards & the corresponding pkges for the cards. What command can I use to scan this LUN disks from my Soalris servers. Solaris doen't seem to be seeing this disks presented on it.... (2 Replies)
Discussion started by: Remi
2 Replies
Login or Register to Ask a Question