Operating System - HP-UX
1834926 Members
2560 Online
110071 Solutions
New Discussion

cannot seem to remove some device files using rmsf

 
SOLVED
Go to solution
Marc Ahrendt
Super Advisor

cannot seem to remove some device files using rmsf

i reduced the number of LUNs on an existing array from 4 to 3. as cleanup i just want to remove the 4 device files no longer needed for the 4th LUN

below is the output when trying to remove the block device files (system has 2 host bus adapters going to the array)

igniter:[/dev/dsk]# ll *3
brw-r----- 1 bin sys 28 0x006300 Jul 13 02:32 c0t6d3
brw-r----- 1 bin sys 28 0x016300 Aug 23 10:05 c1t6d3
igniter:[/dev/dsk]# rmsf -a *3
rmsf: c0t6d3: No such file or directory
rmsf: c1t6d3: No such file or directory
igniter:[/dev/dsk]# ll *3
brw-r----- 1 bin sys 28 0x006300 Jul 13 02:32 c0t6d3
brw-r----- 1 bin sys 28 0x016300 Aug 23 10:05 c1t6d3
hola
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor

Re: cannot seem to remove some device files using rmsf

I would run this command before removing the LUNs on the array.

Try with rmsf -H option specifying the full path.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
linuxfan
Honored Contributor
Solution

Re: cannot seem to remove some device files using rmsf

Hi Marc,

If you are certain that the LUN is no longer being used then you could do

rmsf /dev/*dsk/c0t6d3
rmsf /dev/*dsk/c1t6d3

rmsf doesn't like it if you don't specify the full path.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Marc Ahrendt
Super Advisor

Re: cannot seem to remove some device files using rmsf

sridhar
thx, but i forgot to mention that using -H gave the same disappointing results.
why do rmsf before removing the LUN on the array?

ramesh
thx, using the full path worked!
fyi, i did not need to use the full device file path with rmsf when removing device files for tape drives ...but seem to have to here!?!

what is the big deal about rmsf anyway? why can't i just use rm?

hola
Deshpande Prashant
Honored Contributor

Re: cannot seem to remove some device files using rmsf

Hi Marc
For the cleanup on removed luns my approach is
lssf /dev/dsk/* |grep "???"
rm (or rmsf -av)

Also remove them from /dev/rdsk

Thanks.
Prashant
Take it as it comes.