Operating System - HP-UX
1827260 Members
2796 Online
109716 Solutions
New Discussion

fbackup and tape library (chvol script)

 
Doug Brinkman - DRI CMA
Occasional Advisor

fbackup and tape library (chvol script)

Hi,
I'm trying to get the chvol script mentioned in Document ID DKKBRC00006969 to work so that I can use fbackup with a tape library (4846) I'm wondering how I should set the MC_DRIVE variable. I currently have it set to D1 but get "No such Device" when I run the script. any suggestions appreciated!
Thanks, Ed Johnson
3 REPLIES 3
Bill Hassell
Honored Contributor

Re: fbackup and tape library (chvol script)

The script is a frontend to the mc command, so before trying to use the script, make sure the mc command can talk to the drive. To do this, the autoloader's robotic arm must have a device file, in the script, it is called SPT. This device file must be created by hand and the details are very dependent on the version of HP-UX, the computer hardware and interfrace card for the tape.

D1 is the drive's name used in the mc command, so to manually test the mc command, start with:

mc -p /dev/rscsi/whatever -q

Until this works OK, the chgvol script won't work. Now depending on the instructions for creating the robotic arm (picker) device file, the name of the device file will be different.

You might want to get a copy of autosum and loadmedia, two scripts that can control a tape changer. Get the from:

ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/coolscripts/

Usage is documented in the scripts themselves.



Bill Hassell, sysadmin
Doug Brinkman - DRI CMA
Occasional Advisor

Re: fbackup and tape library (chvol script)

OS is HP-UX 10.20 The tape library has been in use for some time now, so I assumed the picker device was /dev/rac/c0t6d0. mc -p /dev/rac/c0t6d0 -q returns the following: ERROR no such device.

Doug Brinkman - DRI CMA
Occasional Advisor

Re: fbackup and tape library (chvol script)

FYI, I was using the wrong device. correct device for my system is /dev/sctl/rdrv2.
mc works fine now.

Thanks,
Ed