Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Remove no longer neede device files

SOLVED
Go to solution
John Dvorchak
Honored Contributor

Remove no longer neede device files

I have a couple of N class servers, HPUX 11.11 and am no longer using some fiber attached tape drives. I want to remove them from the system files first, disconnect the fiber and then at a later date remove the cards. I have run rmsf -H and the hardware path for all drives and ioscan -funC tape no longer shows them. Of course when I run ioscan they all show back up, so I have learned not to do that. My question is there anything else that I need to do to keep from generating any EMS, etc errrors.
If it has wheels or a skirt, you can't afford it.
3 REPLIES
S.K. Chan
Honored Contributor
Solution

Re: Remove no longer neede device files

What I would do is turn it of in EMS. I've had a tough time trying to figure out how to actually get EMS to stop bothering me on devices that are gone from the system. This is how I did it (you have to have the latest diagnostics patches for this to work)..
# /etc/opt/resmon/lbin/moncheck
==> View names of instances you want to disable. Take note of the path.
# /etc/opt/resmon/lbin/monconfig
==> choose (K)ill monitoring option
# cd /var/stm/data/tools/monitor
# vi disable_instances
==> Add "/storage/events/disks/default/0_4_0_1.1.0" for say if you want to stop path 0/4/0/1.1.0 from being monitored.
==> Run "monconfig" and (E)nable monitoring option and select (C)heck monitors to check if it has been turned off.
That should take care of it.
Michael Steele_2
Honored Contributor

Re: Remove no longer neede device files

Had the same issue sending back an end of lease disk array and wrote a script to dd every /dev/dsk device file. Checked the status and listed them. Works.


ls -d /dev/dsk/* > file

cat file | while read a
do

dd if=/dev/dsk/c.... of=/dev/null count=10

if [ $? != 0 ]
then
echo $a
# rm $a
fi

done

Just uncomment out the "..#rm $a ..." and they will all go away.

(* Just be careful what you're blowing away. *)
Support Fatherhood - Stop Family Law
John Dvorchak
Honored Contributor

Re: Remove no longer neede device files

S. K. Thank you that is what I was looking for.

M. Frederick, I already removed the files and the system entries with rmsf -H x/x/x/x/ which I believe is the prefered way to remove system/special files. If you man rmsf you'll see that using the -H switch will remove the files and the system entries.

I am not going to be able to work on this until next week so don't think that I am forgetting to assign points, I want to verify the proceedure.
If it has wheels or a skirt, you can't afford it.