cancel
Showing results for 
Search instead for 
Did you mean: 

Add New Tape Drive

Hank Bein
Occasional Contributor

Add New Tape Drive

We need to replace an existing Hp Storageworks Ultrium 460 tape drive with another drive of the same type. When we swap the hardware will we need to reboot the server or make any configuration changes within the O/S?

Below is some info from the sever that uses that tape drive:

# /sbin/hwmgr -view devices
HWID: Device Name Mfg Model Location
------------------------------------------------------------------------------
5: /dev/scp_scsi
6: /dev/kevm
100: /dev/disk/dsk0c COMPAQ LOGICAL VOLUME bus-0-targ-0-lun-0
104: /dev/disk/cdrom0c TEAC CD-W216E bus-4-targ-0-lun-0
105: /dev/random
106: /dev/urandom
107: /dev/cport/scp0 Smart Array 5300 bus-0-targ-32-lun-0
162: /dev/disk/dsk1c COMPAQ LOGICAL VOLUME bus-0-targ-1-lun-0
195: /dev/ntape/tape0 HP Ultrium 2-SCSI bus-5-targ-3-lun-0

/sbin/hwmgr get attrib -id 195

# /sbin/hwmgr get attrib -id 195
195:
path_port_id_5 = 5
path_target_id_5 = 3
path_lun_id_5 = 0
path_dev_i/o_cnt_5 = 0
path_state_5 = 1
path_new_state_5 = 0
path_xfer_5 = 0
path_wds_5 = 0
path_avserv_5 = 0
path_pxfer_5 = 0
path_avwait_5 = 0
registration_time = Fri Nov 18 11:41:10 2005
user_name = (null) (settable)
location = (null) (settable)
software_module = (null)
state = available
state_previous = unknown
state_change_time = none
event_count = 6
last_event_time = Wed Oct 4 07:34:40 2006
access_state = online
access_state_change_time = none
capabilities = 0
indicted = 0
indicted_probability = (null)
indicted_urgency = (null)
disabled = 0
name = SCSI-WWID:02000008:5006-0b00-0028-998e
category = tape
architecture = SCSI
phys_location = bus-5-targ-3-lun-0
dev_base_name = tape0
model = Ultrium 2-SCSI
firmware_rev = F48D
read_ops = 10
write_ops = 28251403
read_bytes = 71680
write_bytes = 289294074880
current_density = 64
block_size = 0
records = 0
filemarks = 1
rewind_timo = 3600
space_timo = 3600
load_timo = 3600
space_eod_timo = 3600
resid = 0
sense_info = 0
sense_key = 11
soft_err = 0
hard_err = 30
active_paths = 1
standby_paths = 0
failed_paths = 0
donot_use_paths = 0
selected_bus = 5
selected_target = 3
selected_lun = 0
path_fail_limit = 1
subsys_dev_handle = 2
manufacturer = HP
consistent_name = 1
ccmn_specific_addr = 18446739676668664960
cluster_dev_directions = 0 (settable)
drvr_max_xfer = 16777215

4 REPLIES
Ivan Ferreira
Honored Contributor

Re: Add New Tape Drive

Normally, you don't need to reboot. You only have to run:

hwmgr scan scsi

It's very likely that now you will see tape0 and tape1. The tape0 device file should be removed and tape1 renamed to tape0.

hwmgr delete -id 195
dsfmgr -m tape1 tape0

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Hank Bein
Occasional Contributor

Re: Add New Tape Drive

We replaced the hardware but still have our original problem - we cannot tar to the device. What can we check at the OS level.

# uname -a
OSF1 ofatest1 V5.1 2650 alpha

The output from the process follows:

# /sbin/hwmgr scan scsi
hwmgr: Scan request successfully initiated
# /sbin/hwmgr -view devices
HWID: Device Name Mfg Model Location
------------------------------------------------------------------------------
5: /dev/scp_scsi
6: /dev/kevm
100: /dev/disk/dsk0c COMPAQ LOGICAL VOLUME bus-0-targ-0-lun-0
104: /dev/disk/cdrom0c TEAC CD-W216E bus-4-targ-0-lun-0
105: /dev/random
106: /dev/urandom
107: /dev/cport/scp0 Smart Array 5300 bus-0-targ-32-lun-0
162: /dev/disk/dsk1c COMPAQ LOGICAL VOLUME bus-0-targ-1-lun-0
195: /dev/ntape/tape0 HP Ultrium 2-SCSI bus-5-targ-3-lun-0
196: /dev/ntape/tape1 HP Ultrium 2-SCSI bus-5-targ-3-lun-0
# /sbin/hwmgr delete -id 195
hwmgr: Delete operation was successful
# /sbin/dsfmgr -m tape1 tape0
tape1=>tape0 tape1_d0=>tape0_d0 tape1_d1=>tape0_d1 tape1_d2=>tape0_d2 tape1_d3=>tape0_d3
tape1_d4=>tape0_d4 tape1_d5=>tape0_d5 tape1_d6=>tape0_d6 tape1_d7=>tape0_d7 tape1c=>tape0c
tape1=>tape0 tape1_d0=>tape0_d0 tape1_d1=>tape0_d1 tape1_d2=>tape0_d2 tape1_d3=>tape0_d3 ta
pe1_d4=>tape0_d4 tape1_d5=>tape0_d5 tape1_d6=>tape0_d6 tape1_d7=>tape0_d7 tape1c=>tape0c
# /sbin/hwmgr -view devices
HWID: Device Name Mfg Model Location
------------------------------------------------------------------------------
5: /dev/scp_scsi
6: /dev/kevm
100: /dev/disk/dsk0c COMPAQ LOGICAL VOLUME bus-0-targ-0-lun-0
104: /dev/disk/cdrom0c TEAC CD-W216E bus-4-targ-0-lun-0
105: /dev/random
106: /dev/urandom
107: /dev/cport/scp0 Smart Array 5300 bus-0-targ-32-lun-0
162: /dev/disk/dsk1c COMPAQ LOGICAL VOLUME bus-0-targ-1-lun-0
196: /dev/ntape/tape0 HP Ultrium 2-SCSI bus-5-targ-3-lun-0
# ls
.TTauthority .new...login 1.2 home shlib
.Xauthority .new...profile GENERIC krb5 subsys
.cdsa .osonly_tmp backup_db lib sys
.cshrc .profile bin mdec tape
.dt .proto...cshrc binary.errlog mnt tcb
.dtprofile .proto...login cdrom nohup.out testfile.txt
.local.. .proto...profile cluster nsr tmp
.login .sh_history cp opt u01
.lttreg .ssh2 dev osf_boot usr
.mrg...login .sysman devices proc var
.new...cshrc .sysman_ofatest1 etc sbin vmunix
# /usr/bin/tar cvf /dev/tape/tape0 testfile.txt
a testfile.txt 1 Blocks
tar: write : I/O error
tar: A write error has occurred.
Ivan Ferreira
Honored Contributor

Re: Add New Tape Drive

Please run:

# /usr/bin/tar cvf /dev/tape/tape0c testfile.txt

Using the trailing "c" at the end of the device name.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Hank Bein
Occasional Contributor

Re: Add New Tape Drive

Here's the result - same error.

# /usr/bin/tar cvf /dev/tape/tape0c testfile.txt
a testfile.txt 1 Blocks
tar: write : I/O error
tar: A write error has occurred.
#