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

Device File name appears as (null) to HWMGR

R Swenson
Frequent Advisor

Device File name appears as (null) to HWMGR

# /sbin/disklabel -rw dsk5
disklabel: dsk5: No such file or directory

This is the response I get when trying to use disklabel in /devices/disk. I get the same results in /devices/ndisk. Both directories contain the files dsk0a-h through dsk4a-h.

Additional information: When I use HWMGR, the disk shows up, but the DEVICE FILE name is this: (null) My other disks show up as dsk0 - dsk4.

Thanks in advance.
14 REPLIES
Michael Schulte zur Sur
Honored Contributor

Re: Device File name appears as (null) to HWMGR

Hi,

when you delete the device with hwmgr and do a scan, does that change anything?
A NULL means that there is no device behind that file anymore.

greetings,

Michael
R Swenson
Frequent Advisor

Re: Device File name appears as (null) to HWMGR

What device specification do I use to delete? The HWID? "(null)"?
Ivan Ferreira
Honored Contributor

Re: Device File name appears as (null) to HWMGR

when you run hwmgr v d you get the HWID, using that information run:

hwmgr delete -id

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
R Swenson
Frequent Advisor

Re: Device File name appears as (null) to HWMGR

# /sbin/hwmgr delete -id 59
hwmgr: Error unable to find subsystem name in command line.

No luck.
Mulgund
Frequent Advisor

Re: Device File name appears as (null) to HWMGR

#/sbin/hwmgr -delete scsi -id

Else try,
#/sbin/hwmgr -show scsi
Chk. the did (2nd column) corresponding to dsk5

then,
#/sbin/hwmgr -delete scsi -did

Hope this helps,
-Srinivas
Kapil Jha
Honored Contributor

Re: Device File name appears as (null) to HWMGR

Hi
I had same problem tried everything but of no use then I removed the disk from array put put it again and problem solved.
Hope this wul solve ur problem
Thanks
I am in this small bowl, I wane see the real world......
Hein van den Heuvel
Honored Contributor

Re: Device File name appears as (null) to HWMGR


I happened to have dealt with a much similar sounding problem yesterday.
It was a little more complicated, as it was a cluster and the disk _seemed_ to work as an other cluster member was performing a distributed raw device service for it.

We had a 'null' and yet there were 2 path indicated and a BLT entries visible.
'hwmgr -show comp inconsisten' did also highlight that device ID.

We cleaned up using:
hwmgr -delete -d xxx
hwmgr -scan scsi

The device now re-appeared, with a fresh ID and a fresh dskXX name.
You can rename that with cfsmgr, but why bother for a new device, and for us we only flipped the softlink in /etc/fdmns/yyy_domain to point to the new disk file.

note 1...
We further cleaned up with: hwmgr -refresh component.

Note 2...
Consider hwmgr -scan component

Hth,
Hein.

Pieter 't Hart
Honored Contributor

Re: Device File name appears as (null) to HWMGR

apearently dsk5 was once present in the system but isn't at this time.
Remember Tru64 now disks have "unique" id's
they are not mapped to a SCSI-slot anymore.
once unix has detected the disks you can move them around in the slots and theyremain operational (as long as you reboot the system first or send rescan de scsibus).

at boottime the system runs "dsfmgr -K" to create the special-files in /dev/disks.
so when at boottime the disk5 is not present there will not be any dsk5a-h special file.

so after "hwmgr -scan scsi" and "hwmgr -show scsi" the file name still is NULL then the disk is not in the system or the disk is
not functioning.
and dsfmgr -K or dsfmgr -F will not create any special files in /dev/disk.


Pieter
R Swenson
Frequent Advisor

Re: Device File name appears as (null) to HWMGR

I solved my own problem, but thanks for the feedback.

My console log had this message on it: "hwc_user_cmd:framework error 60" "hwc_run_dsfmgr_cmd: cmd failure (frame=60), (subsys=0)"

As recommended by the system itself, I entered the following command: "/sbin/dn_setup -boot" to synchronize dsfmgr with kernel

Resulting messages were: "dsfmgr: NOTE: updating kernel basenames and old devnames for system at /" "dsfmgr:NOTE: creating device special files for system at /" "+dsk5a +dsk5a +dsk5b +dsk5b ... +dsk5h +dsk5h"

After this I did an hwmgr -scan scsi and an hwmgr -show scsi The device that had showed up as "(null)" previously now shows up as dsk5. On to the next staep, thanks to everyone for their suggestions.
Michael Schulte zur Sur
Honored Contributor

Re: Device File name appears as (null) to HWMGR

Hi,

it is nice to assign points but rather an insult to assign 0 points for an honest try to help. Unless a post is off topic, you are saying "Spare your efforts next time".

greetings,

Michael
R Swenson
Frequent Advisor

Re: Device File name appears as (null) to HWMGR

So noted. The points I assigned fairly reflect the assistance given to solving the problem posted, not to the general assistance given. I have assigned points in the past for helpful advice with no complaints.

As stated numerous times throughout my previous posts, "thanks for any assistance". But I don't award points for advice that doesnt' solve a problem. To do so would merely cheapen the awards system, IMHO.
Michael Schulte zur Sur
Honored Contributor

Re: Device File name appears as (null) to HWMGR

Hi,

for answers that show a willingness to help but do not give a solution to the answer 1-3 points are suggested. Again, 0 points suggests "Why did you even try?". Ok, points are not everything but a good incentive.

;-)

Michael
Hein van den Heuvel
Honored Contributor

Re: Device File name appears as (null) to HWMGR

fwiw,

I agree with Michael's sentiment.

All the reply presented would have helped you solve the problem. I found it very bizarre to see the 0 point assigned.

And no, I don't need more points.
I do not an indication that the effort is appreciated.

Cheers,
Hein
[0 points for this please :-]
Pieter 't Hart
Honored Contributor

Re: Device File name appears as (null) to HWMGR

I interpret Hein's en Michael's post as "better leave the unassigned" then assign zero points for answers that didn't contribute to the solution.

Pieter