Script in boot sequence

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Script in boot sequence
# 1  
Old 01-25-2006
Script in boot sequence

Hi ,
I have some problems with my library when the sytem boot :

When HPUX is booting, HPUX and STAPE claim the drive initially. HPUX assigns an instance

number. The instance number is tied to the hardware path. Near the end of the boot, the ATDD driver claims the drive from

STAPE based upon the Inquiry ID (either ULTRIUM-TDx or ULT3580.TDx, where x=1, 2 or 3 depending on the drive

generation.) When ATDD claims the drive, it generates the special file based on the instance number. This is the standard

way devices are handled with HPUX. If a drive is moved, host is rebooted or for other undefined reasons HPUX will assign

a different instance number, which will generate a new special file when ATDD claims the drive.

For some reason that is not understood, HPUX will sometimes claim a drive, or number of drives, with a different instance

number, even if the hardware path does not change. When this happens the new instance numbers do not match up with

the existing special files, and the customer has a problem. Although, it is not understood why this happens, but this is not

an uncommon problem for a HPUX customer to have.

Answer from IBM :
The following commands can be run manually or scripted to run during bootup
So as an example, if they want to assign the instance number for the following two drives.

tape 90 1/0/0/ atdd CLAIMED DEVICE IBM 03590E11

tape 35 1/0/0/ atdd CLAIMED DEVICE IBM 03592J1A

You do this for each drive: STEP 1

rmsf -H 1/0/0/

rmsf -H 1/0/0/

ioscan -M atdd -H 1/0/0/ -I 1 <=this change it to instance number 1

ioscan -M atdd -H 1/0/0/ -I 2 <=this change it to instance number 2

Then you do this: STEP 2


These steps could be automated by creating a script and putting the new script in the boot up sequence."

Question :
====> Can you confirm me that i have to create my script with the differents drives .I have to create a sh file with the rmsf commands of my differents hardware path and ioscan with the new instance number.
It's only that?


# 2  
Old 01-25-2006
I have never heard of the atdd driver before your post. Some googling revealed a lot of people having problems with this driver and HP-UX. I don't have your IBM tape drive nor your driver, but I think I understand the problem. The problem is that the stape driver is not compatible with the IBM tape drive. stape is willing to claim the drive but then cannot use it. Does atdd sit on top of stape? Or do you also have other tape drives that use stape? I would simply remove stape from the kernel.
kmsystem -S /path/to/system-file -c N stape
followed by rebuilding the kernel should do that with HP-UX 11.0 or 11i. This seems very easy but I can't find any instance of anyone else suggesting it, so there may well be a problem with it.

If stape and atdd must co-exist in the same kernel, I would give up on autoconfig fot atdd tape drives. This post suggests:
From IBM's Ultrium Device Drivers Installation and User's Guide:

1. Modify the /stand/system file, adding a line if the form of:
driver 56/48.3.0 atdd
with the adapter/drive path for your device

2. Modify /etc/rc.config.d/atdd.cfg, adding the hardware path and instance:
where # denotes the next instance and the adapter/drive path for you device.

3. Build the kernel as root:
# mk_kernel -o /stand/vmunix -s /stand/system

4. Reboot the system:
# shutdown -r now

5. After the system is up, run /opt/OMNImag/bin/atdd_cfg to create the new special files for the device.
# atdd_mksf -ti <instance>
where instance is the number from the ioscan output for the newly installed device. This command echoes to console but does not create special files. To create special files pipe the command to 'sh'.
# atdd_mksf -ti <instance> | sh
I would back the kernel files before recompiling.
I can't test that. But that would be my second choice for something to try.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

find common entries and match the number with long sequence and cut that sequence in output

Hi all, I have a file like this ID 3BP5L_HUMAN Reviewed; 393 AA. AC Q7L8J4; Q96FI5; Q9BQH8; Q9C0E3; DT 05-FEB-2008, integrated into UniProtKB/Swiss-Prot. DT 05-JUL-2004, sequence version 1. DT 05-SEP-2012, entry version 71. FT COILED 59 140 ... (1 Reply)
Discussion started by: manigrover
1 Replies

2. UNIX for Advanced & Expert Users

script with a sequence of nohups

Hi, I have written this script below to run a mathematica notebook, and then I want to launch another one when the first one finishes doing what it must. The notebook includes a command which will exit the program math. If I do it like below the two math processes begin at the same time, and... (3 Replies)
Discussion started by: amen_corner
3 Replies

3. Filesystems, Disks and Memory

Boot Sequence changed After Image Restore

Hello All, I backed up my RHEL 4 as an image. Then I restored the image on my machine. Everything went fine but I dont get the normal boot sequence as it used to come when I freshly installed RHEL4. The messages that are shown when the system boots are something like- " ..... EXT3-fs:... (2 Replies)
Discussion started by: shamik
2 Replies

4. Shell Programming and Scripting

script to touch a sequence of files

Hi, My requirement is i need to touch a sequence of files like touch a touch b touch c now i need the script in a way that checks if all files are touched or not. if any file say b is not touched then i should get this notification. Please suggest as i am new to unix (2 Replies)
Discussion started by: sussane
2 Replies

5. Shell Programming and Scripting

Unix script for Checking sequence

Hello, I need Unix script for Checking sequence and get output in a file for missing sequences information. We are moving archive log to a server for DR .if any files miss from sequence DR will fails. so we need script to monitor sequence of files which are FTP from the Production servers .... (2 Replies)
Discussion started by: Rata_raj
2 Replies

6. Solaris

how to change the boot sequence?

Hi all, I have solaris and xp installed... Usually solaris occupies the first boot slot. So i wanted to know if it is possible to change the boot sequence to xp first and then solaris? (5 Replies)
Discussion started by: wrapster
5 Replies

7. Linux

linux 2.4 boot up sequence

I am running linux red hat and I need to know the command to view the boot up process.... (that is the driver initialization, drive mount, etc).... Does anyone know this command? (7 Replies)
Discussion started by: Franco
7 Replies

8. UNIX for Dummies Questions & Answers

Wierd boot-up sequence

Hi, I have two machines, one is a E3500 and the other one is a V490; I face a strange issue with both of them. The boot up sequence gives the output of the devalias command. Has anybody faced this?? Please do let me know what needs to be done o resolve this. Regards, NP (1 Reply)
Discussion started by: nitinp82
1 Replies

9. UNIX for Dummies Questions & Answers

Boot Sequence

Hi everybody, I have to create a script and put it in the boot up sequence . Can you give me the path where i can put it? Sorry it's my first script. DElphine (3 Replies)
Discussion started by: delphine
3 Replies

10. UNIX for Advanced & Expert Users

Unix Boot Sequence

Hello all Unix fans. What files are involved in the Unix boot sequence, i guess there is alot of them but some must be the main files? For example the service SENDMAIL starts on our Unix machine where should i edit so that it will not start at BOOT. initd.conf? rc2.d? I hope you... (6 Replies)
Discussion started by: sajjan2
6 Replies
Login or Register to Ask a Question

Featured Tech Videos