Operating System - HP-UX
1834284 Members
1979 Online
110066 Solutions
New Discussion

Re: Changing and creating device files for an autochanger

 
Leilani Fernandez
Occasional Contributor

Changing and creating device files for an autochanger

I have 2 systems the need to have the autochanger /dev/rac/ files the same. How do I change the files and then create the files so the systems match.
Here's how I have to work with:
Server 1:
/dev/rac/c8t14d1 and /dev/rac/c14t0d1
Server 2:
dev/rac/c10t14d1 and /dev/rac/c15t0d1
I need to have both servers to be like Server 1
1 REPLY 1
Bill Hassell
Honored Contributor

Re: Changing and creating device files for an autochanger

The device file names contain an instance number (c8, c10, c14, c15) and will always be different unless the two servers were created the same way (including adding devices in exactly the same order).

Most of the time, the need to have the same tape device file name on several servers is the lack of a configurable device file name for some backup program or script. To avoid future misunderstandings by other sysadmins, I would not rename these files. The best fix is to make changes to the programs/scripts. The next best is to use a symlink, something like this:

server-1
ln /dev/rac/c8t14d1 /dev/rac/autochg-1
ln /dev/rac/c14t0d1 /dev/rac/autochg-2

server-2
ln /dev/rac/c10t14d1 /dev/rac/autochg-1
ln /dev/rac/c15t0d1 /dev/rac/autochg-2

You can make up whatever names you like. By using a symlink, the ll command will document exactly what the links are.


Bill Hassell, sysadmin