System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to redirect scsi hard disk in true 64

shehan jamel
Occasional Advisor

how to redirect scsi hard disk in true 64

hi
im having a problem that i want to redirect a scsi disk that a replaced.this is the current configuration after replaced the disk.
/dev/disk> hwmgr -v d
HWID: Device Name Mfg Model Location
------------------------------------------------------------------------------
6: /dev/dmapi/dmapi
7: /dev/scp_scsi
8: /dev/kevm
33: /dev/disk/floppy0c 3.5in floppy fdi0-unit-0
67: /dev/disk/dsk0c COMPAQ BF03689BC3 bus-0-targ-0-lun-0
68: /dev/disk/dsk1c COMPAQ BF03689BC3 bus-0-targ-1-lun-0
69: /dev/disk/cdrom0c HL-DT-ST RW/DVD GCC-H20N bus-2-targ-0-lun-0
70: /dev/disk/dsk4c COMPAQ BF03689BC3 bus-4-targ-0-lun-0
71: /dev/disk/dsk3c COMPAQ BF03689BC3 bus-4-targ-1-lun-0
72: /dev/random
73: /dev/urandom
74: /dev/ntape/tape0 HP C7438A bus-1-targ-0-lun-0
106: dsk2 COMPAQ BF03687B54 bus-4-targ-0-lun

how can i redirect to /dev/disk/dsk2c.
its currently /dev/disk/dsk4.
please i need a quick responce
thanks
4 REPLIES
Steven Schweda
Honored Contributor

Re: how to redirect scsi hard disk in true 64

Pieter 't Hart
Honored Contributor

Re: how to redirect scsi hard disk in true 64

the quoted thread mentions "dsfmgr -m"
I frequently used "dsfmgr -e"

you must rename the whole disk dsk2 not just the partition dsk2c.

resulting in => dsfmgr -e dsk4 dsk2

see man dsfmgr
-e Exchanges the device special files for the named nodes. Use this option to reassign device special files between nodes by exchanging or "swapping" them. The base_name is the device name and instance, such as dsk0. Devices must be of the same type and the first named device must be an active (known) device.

DCBrown(2)
Occasional Visitor

Re: how to redirect scsi hard disk in true 64

You can use the -m (move) option only if you first delete the old device name you are trying to move the replacement to. Use hwmgr to delete the old/gone/dead /dev/dsk2 first and then you can use the -m move option.

You can use the -e (exchange) option but will still end up with a dead device in your configuration. In this case you'll still probably want to delete the old/gone/dead device which after the exchange will reside at /dev/dsk4.
Rob Leadbeater
Honored Contributor

Re: how to redirect scsi hard disk in true 64

Hi,

Also bear in mind that there are a couple of errors in the Examples section of the man page for dsfmgr, relating to deleting old devices...

http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN8/0140____.HTM (scroll down towards the bottom).

The man page states to do use hwmgr to delete the old component first, then dsfmgr to remove the device files. In my experience you need to do this the other way round. Also the man page says to use a delete option to dsfmgr which isn't necessary. So (using the same example hardware ID from the man page):

1. # dsfmgr -R hwid 25
2. # hwmgr delete component -id 25
3. # dsfmgr -m dsk4 dsk2

You will have to substitute 25 for the old HWID, which you should be able to determine from the output of # hwmgr show scsi -full
Look for a disk on the same bus target lun, that has a stale path.

Cheers,

Rob