Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong deletition of hwid with dsfmgr

Ivan Senekovic_1
Occasional Advisor

Wrong deletition of hwid with dsfmgr

I have to delete several tape devices on system. Unfortunatly , when I do dsfmgr -R hwid xx I misstyped number and delete kernel record for disk dskxx.
Now system is up and running, with no problem , I still have hwid of that disk. I can see it in hwmgr -show scsi and this hwid points to correct /dev/disk/dskxx
I try to recreate new inodes with dsfmgr -n /dev/disk/dskxx*.
When I now do dsfmgr -s it returns error on dev nodes.
And on /dev/disk/ I dont have my dskxx
Question is: Can I recreate device nodes for my disk with dsfmgr -k (small k) or do it with mknod ?
Question 2: If I recreate device nodes with above commands, will that affect running system which has mounted lost dskxx and running with AdvFs ?
I can not shutdown system, but I know that in reboot phase it will probably recreate new dskxx and I must then do moving. How to do that in live, and with no need to reboot.

Thanks for ideas or help.

Ivo
4 REPLIES
Victor Semaska_3
Esteemed Contributor

Re: Wrong deletition of hwid with dsfmgr

Ivan,

From the 'hwmgr -show scsi' output in the 'FIRST VALID PATH' column are there 3 no.s in the format '[#/#/#] or is it blank? If it's blank then the entry for the device exists but isn't valid.

The commands I always used are these:

# hwmgr -scan scsi
# hwmgr -view dev

You have to do the 1st command a couple of times.

The device will probably come back with a different name so you'd have to use the '# dsfmgr -e' command to rename it.

Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
Ivan Senekovic_1
Occasional Advisor

Re: Wrong deletition of hwid with dsfmgr

Vic thanks
Output on hwmgr -show scsi is next

152: 40 sap-r3q disk none 2 4 dsk22 [6/4/4]

So i assume that hardware is ok.
I just miss dsk22 in /dev/disk/

Also return of dsfmgr -v return in nodes section

ERROR: status record not found for HWID 152: b dsk22a

and so on for all 8 partitions.

dsfmgr -F -v suggest that I must use dsfmgr -K (big K), but in that time I dont want new tape devices that I was delete before to be added automaticaly.

regards

Ivo
Ivan Senekovic_1
Occasional Advisor

Re: Wrong deletition of hwid with dsfmgr

After all I used dsfmgr -K and it helps.
Now I have dsk22 on /dev/disk, and all is OK.

Thanks again for help

Ivo
Ivan Senekovic_1
Occasional Advisor

Re: Wrong deletition of hwid with dsfmgr

Thanks again

Ivo