LVM and VxVM

Re: How to delete a device file created with mknod ?

 
SOLVED
Go to solution
Thierry Doppler
Frequent Advisor

How to delete a device file created with mknod ?

Hi,

For testing, I have mounted a VDisk on a HP-UX11.23 Server with mknod > vgcreate > newfs > mount ...

I want now to delete them.

I see it only if I start a ioscan -fnC disk :

disk 8 255/255/0/0.6 sdisk NO_HW DEVICE HSV100 HP
/dev/dsk/c11t0d6 /dev/rdsk/c11t0d6

Can I just delete the node-files with rm ?

Thanks you
Thierry
11 REPLIES 11
Jeff Schussele
Honored Contributor
Solution

Re: How to delete a device file created with mknod ?

Hi Thierry,

rmsf is the command to use.
Be sure to delete both the character (/dev/rdsk)& block devices (/dev/dsk)

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff_Traigle
Honored Contributor

Re: How to delete a device file created with mknod ?

And you'll probably need to use "rmsf -H" to remove the hardware path so it stops showing up in ioscan completely also.
--
Jeff Traigle
baiju_3
Esteemed Contributor

Re: How to delete a device file created with mknod ?

Hi ,

I think you have already exported the VG .
In that case do rm -fR /dev/VGName .


To remove device file use rmsf .


Thanks .
bl.
Good things Just Got better (Plz,not stolen from advertisement -:) )
Thierry Doppler
Frequent Advisor

Re: How to delete a device file created with mknod ?

Hi, Thanks you,

I removed the device files with rsmf, but the H/W Path appears always in the ioscan.

I tried without success
rmsf -H 255/255/0/0.6

Any idea?

Thierry
James R. Ferguson
Acclaimed Contributor

Re: How to delete a device file created with mknod ?

Hi Thierry:

If the hardware has truly been removed, then when you reboot it will vanish from 'ioscan'.

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: How to delete a device file created with mknod ?

Don't forget to remove the related VG information too!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Nguyen Anh Tien
Honored Contributor

Re: How to delete a device file created with mknod ?

You can remove it by
#rmsf -H 255/255/0/0.6
and
#ioscan -fnC disk
to check it
HP is simple
Thierry Doppler
Frequent Advisor

Re: How to delete a device file created with mknod ?

Hi M. Nguyen Anh Tien,

I do that exactly, but without success, my device appears always in the ioscan !?

Regards

Thierry
Thomas J. Harrold
Trusted Contributor

Re: How to delete a device file created with mknod ?

You need the "-k" option to rmsf in order to remove the device from the running kernel.

rmsf -k -H

-tjh
I learn something new everyday. (usually because I break something new everyday)