1753522 Members
6905 Online
108795 Solutions
New Discussion юеВ

can't remove a DSF

 

can't remove a DSF

I can't remove the DSF because device is busy:

# rmsf -v -a /dev/disk/disk18
Device /dev/disk/disk18 is busy. Cannot remove.

HP-UX B.11.31

# model
ia64 hp server rx6600

# ioscan -kfnNH 64000/0xfa00/0x21
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 18 64000/0xfa00/0x21 esdisk NO_HW DEVICE HP OPEN-V*18
/dev/disk/disk18 /dev/rdisk/disk18

# ioscan -m dsf /dev/disk/disk18
Persistent DSF Legacy DSF(s)
========================================
/dev/disk/disk18 /dev/dsk/c19t0d1
/dev/dsk/c25t0d1

# strings /etc/lvmtab
/dev/vg00
/dev/disk/disk6_p2
/dev/vgu02
/dev/disk/disk16
/dev/vg09
/dev/disk/disk23

# pvdisplay -l /dev/disk/disk18
pvdisplay: Couldn't open physical volume "/dev/disk/disk18":

17 REPLIES 17
vjta
Regular Advisor

Re: can't remove a DSF

Hi Andrew,

try with
rmsf -H for disk18

regards
vjta
Vijeta Bhedi

Re: can't remove a DSF

Hello, vjta!

# rmsf -v -H 64000/0xfa00/0x21
Device at 64000/0xfa00/0x21 is busy. Cannot remove.
vjta
Regular Advisor

Re: can't remove a DSF

Hi,
pls post O/P of ioscan -m dsf

regards
vjta
Vijeta Bhedi
vjta
Regular Advisor

Re: can't remove a DSF

Hi,
>>>>>>disk 18 64000/0xfa00/0x21 esdisk NO_HW DEVICE HP OPEN-V*18
/dev/disk/disk18 /dev/rdisk/disk18


Pls see the O/p NO_HW

just give diskinfo also

regards
vjta
Vijeta Bhedi

Re: can't remove a DSF

# ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk6 /dev/rdsk/c0t0d0
/dev/rdisk/disk6_p1 /dev/rdsk/c0t0d0s1
/dev/rdisk/disk6_p2 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk6_p3 /dev/rdsk/c0t0d0s3
/dev/rdisk/disk10 /dev/rdsk/c27t0d1
/dev/rdsk/c29t0d1
/dev/rdsk/c31t0d1
/dev/rdsk/c33t0d1
/dev/pt/pt16 /dev/rscsi/c18t0d0
/dev/rscsi/c24t0d0
/dev/rdisk/disk16 /dev/rdsk/c27t0d2
/dev/rdsk/c29t0d2
/dev/rdsk/c31t0d2
/dev/rdsk/c33t0d2
/dev/rdisk/disk17 /dev/rdsk/c0t9d0
/dev/rdisk/disk18 /dev/rdsk/c19t0d1
/dev/rdsk/c25t0d1
/dev/pt/pt22 /dev/rscsi/c26t0d0
/dev/rscsi/c28t0d0
/dev/rscsi/c30t0d0
/dev/rscsi/c32t0d0
/dev/rdisk/disk23 /dev/rdsk/c27t0d3
/dev/rdsk/c29t0d3
/dev/rdsk/c31t0d3
/dev/rdsk/c33t0d3
/dev/rdisk/disk26 /dev/rdsk/c0t7d0
/dev/rdisk/disk28 /dev/rdsk/c0t8d0

# diskinfo /dev/rdisk/disk18
diskinfo: can't open /dev/rdisk/disk18: No such device or address

vjta
Regular Advisor

Re: can't remove a DSF

Hi,

try insf -e

& then check diskinfo
also
check diskinfo with legacy path c19t0d1

regards
vjta

Vijeta Bhedi
vjta
Regular Advisor

Re: can't remove a DSF

Hi,

pls check for the path also whether it is degraded or fialed.

pls post :
scsimgr -p lun_map -D /dev/rdisk/disk40

from this command find which paths are failed or degraded.
Disable them with
scsimgr disable
and then do

rmsf -v -H 64000/0xfa00/0x21(This address taken from your above output)

Pls check & revert

thanks & regards
vjta

Vijeta Bhedi
vjta
Regular Advisor

Re: can't remove a DSF

hi,
SORRY!
In cmd scsimgr read disk18(for ur case) instead of disk40.

regards
vjta
Vijeta Bhedi

Re: can't remove a DSF

The "insf -e" rescanned device and stoped on device escsi:

# insf -e
insf: Installing special files for asio0 instance 2 address 0/0/1/2
insf: Installing special files for sdisk instance 3 address 0/3/1/0.97.1.0.0.0.1
insf: Installing special files for sdisk instance 11 address 0/3/1/0.97.1.0.0.0.2
.....
....
insf: Installing special files for pseudo driver sy
insf: Installing special files for pseudo driver kepd
insf: Installing special files for pseudo driver diag2
insf: Installing special files for pseudo driver root
insf: Installing special files for pseudo driver escsi

# scsimgr -p lun_map -D /dev/rdisk/disk18
lunpath:4:0/3/1/0.0x50060e801419cf10.0x4001000000000000:fibre_channel:SUSPENDED:ACTIVE
lunpath:22:0/7/1/0.0x50060e801419cf00.0x4001000000000000:fibre_channel:SUSPENDED:ACTIVE


# scsimgr disable -D /dev/rdisk/disk18

CRA REPORT SUMMARY:
Critical Resources Analysis(CRA) reported SUCCESS.
No resources usages have been identified during the analysis.

Do you really want to disable (y/[n]) ? y
scsimgr: LUN /dev/rdisk/disk18 disabled successfully

# rmsf -v -a /dev/disk/disk18
Device /dev/disk/disk18 is busy. Cannot remove.