Operating System - HP-UX
1836547 Members
2495 Online
110102 Solutions
New Discussion

Re: Completely removing disks from a system

 
Cara Tock
Regular Advisor

Completely removing disks from a system

I have a VA7100 and I deleted all but a couple of luns. When I did this I was still left with all of the device files in /dev/dsk (c4t0d0, d4t0d1, ...). How can I safely remove these? It still looks like I have all of these physical disks which I have removed.
Thanks
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: Completely removing disks from a system

Hi Damon:

You can use 'rm' or 'rmsf' to remove the device files no longer needed.

Regards!

...JRF...
PIYUSH D. PATEL
Honored Contributor

Re: Completely removing disks from a system

Hi,

You can always remove these files thro the rm and rmsf commands. But if the disks are connected in the VA7100 physically then HP UX will recreate the device files when it boots up next time or by running insf -e command.

Piyush
Uday_S_Ankolekar
Honored Contributor

Re: Completely removing disks from a system

Well,

Check with ioscan to confirm these disk are not showing up in the output

You can use ioscan -fnC disk
to see the list.
Use rmsf to remove it from /dev/dsk

Good luck,

-USA..
Good Luck..
Shahul
Esteemed Contributor

Re: Completely removing disks from a system

Hi

If U don't need then why to worry about it's existence or non existence. Still U are worried about it's existence delete by rm command...Now happy....

Best of luck
Shahul
MANOJ SRIVASTAVA
Honored Contributor

Re: Completely removing disks from a system

If you are sure of the device files than you can just do a rm to remove them and then do a ioscan and insf to see whther the files get gerated again or not , if so then these luns have really not got deleted.


Manoj Srivastava
Cara Tock
Regular Advisor

Re: Completely removing disks from a system

My problem is that when I use rmsf to get rid of the device files they still show up when I do ioscan -fnC disk. I want to completely remove them so they do not show up in an ioscan.
Thanks
Mike Hassell
Respected Contributor

Re: Completely removing disks from a system

Damon,

Have you rebooted since you removed the device files with 'rmsf'? I think when HP-UX reboots it will rebuild the device structure and should make those devices disappear in you 'ioscan' outupt.

Hope that helps.

-Mike

P.S. - Be sure to assign points to your responses.
The network is the computer, yeah I stole it from Sun, so what?
Frank Slootweg
Honored Contributor

Re: Completely removing disks from a system

> My problem is that when I use rmsf to get
> rid of the device files they still show up
> when I do ioscan -fnC disk. I want to
> completely remove them so they do not show
> up in an ioscan.

I think this is not correct. If you do a rmsf, *without* the "-a" option, then the device *files* should be removed and should no longer be visible (with lssf, ll, "ioscan -n...", etc.). However the devices themselves, i.e. Class, I, H/W Path, Driver, S/W State, H/W Type and Description, are still visible, if the hardware devices (LUNs) still exist.