Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete old disks with rmsf but they still show 1

Status
Not open for further replies.

MoreFeo

Technical User
Nov 29, 2002
547
ES
Hi,

I'm not very used to HP-UX, so I don't know if I've done a mistake or not.
And sorry for my poor english.

We've got a BL860c i2, with HP-UX 11.31.
There are several luns (HP EVA) assigned and used, but there was also a temporary lun that is no longer in use.
They asked me to deassign and delete this lun, so this is what I did.

Check each lun/disk:
Code:
# ioscan -m dsf
Persistent DSF           Legacy DSF(s)
========================================
/dev/rdisk/disk1         /dev/rdsk/c0t0d0
/dev/rdisk/disk1_p1      /dev/rdsk/c0t0d0s1
/dev/rdisk/disk1_p2      /dev/rdsk/c0t0d0s2
/dev/rdisk/disk1_p3      /dev/rdsk/c0t0d0s3
/dev/pt/pt9              /dev/rscsi/c10t0d0
                         /dev/rscsi/c12t0d0
                         /dev/rscsi/c16t0d0
                         /dev/rscsi/c14t0d0
                         /dev/rscsi/c8t0d0
                         /dev/rscsi/c4t0d0
                         /dev/rscsi/c6t0d0
                         /dev/rscsi/c2t0d0
[b]/dev/rdisk/disk53        /dev/rdsk/c17t6d2[/b]
                         /dev/rdsk/c11t6d2
                         /dev/rdsk/c15t6d2
                         /dev/rdsk/c13t6d2
                         /dev/rdsk/c7t6d2
                         /dev/rdsk/c3t6d2
                         /dev/rdsk/c9t6d2
                         /dev/rdsk/c5t6d2
/dev/rdisk/disk65        /dev/rdsk/c17t0d1
                         /dev/rdsk/c11t0d1
...
/dev/rdisk/disk66        /dev/rdsk/c17t0d2
...

The lun I wanted to delete has lun id 50 (decimal) so It should be /dev/rdisk/disk53 (62 octal).
I deleted all the special files with rmsf (/dev/disk/disk53, /dev/rdisk/disk53, /dev/rdsk/c*t6d2 and /dev/dsk/c*t6d2).
Code:
# rmsf /dev/rdisk/disk53
# rmsf /dev/disk/disk53
# rmsf /dev/rdsk/c17t6d2
# rmsf /dev/rdsk/c11t6d2
...

After that in the EVA I unpresented the lun and deleted it. Now there is no lun with id 50 assigned to this HP-UX.

I issued ioscan and insf -e again, and now it still shows disk53 and all the /dev/rdsk/c*t6d2.

Is there something I've done wrong? Why is this device still showing?

Thanks.
 
The /dev entries will probably keep reappearing until you remove the hardware path; try locating the disk in ioscan -m lun output and then do something like an rmsf -vH 64000/0xfa00/0xe (using the hardware path for that disk of course).

Annihilannic
[small]tgmlify - code syntax highlighting for your tek-tips posts[/small]
 
Thanks, I will try this afternoon.
 
With ioscan -m lun this is what it shows:
Code:
# ioscan -m lun
...
disk     53  [b]64000/0xfa00/0xd[/b]    esdisk  NO_HW       DEVICE       offline  HP      HSV450
             0/0/0/5/0/0/0.0x50001fe15022a2a8.0x4032000000000000
             0/0/0/5/0/0/0.0x50001fe15022a2ac.0x4032000000000000
             0/0/0/5/0/0/0.0x50001fe15022a2aa.0x4032000000000000
             0/0/0/5/0/0/0.0x50001fe15022a2ae.0x4032000000000000
             0/0/0/5/0/0/1.0x50001fe15022a2ab.0x4032000000000000
             0/0/0/5/0/0/1.0x50001fe15022a2a9.0x4032000000000000
             0/0/0/5/0/0/1.0x50001fe15022a2ad.0x4032000000000000
             0/0/0/5/0/0/1.0x50001fe15022a2af.0x4032000000000000
                      /dev/disk/disk53   /dev/rdisk/disk53
...

So now I should do ?
Code:
# rmsf -vH [b]64000/0xfa00/0xd[/b]

And then?
Code:
# rmsf /dev/rdisk/disk53
# rmsf /dev/disk/disk53
# rmsf /dev/rdsk/c*t6d2
# rmsf /dev/dsk/c*t6d2

Is this OK?
 
Yes, that first command is right.

I haven't done one very recently so I can't remember whether it removes the /dev entries for you as well... but it will be easy enough to check. If you just do an rmsf -va /dev/rdisk/disk53 it should remove that device and all associated ones, so one command should be enough in theory.

Annihilannic
[small]tgmlify - code syntax highlighting for your tek-tips posts[/small]
 
Thanks a lot, I've done rmsf -vH 64000/0xfa00/0xd and it deleted /dev/disk and /dev/rdisk special files, and after I deleted /dev/dsk and /dev/rdsk special files manually.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top