cancel
Showing results for 
Search instead for 
Did you mean: 

auto file

SOLVED
Go to solution
newunix
Frequent Advisor

auto file

what is the need for configuring autofile.

how to configure it.

ver v1

can i have docs for that .



11 REPLIES
Raj D.
Honored Contributor
Solution

Re: auto file

newunix,

You dont need to configure it manually, it is a part of the disk mirroring checklist:



- To set the boot string in the AUTO file , you can use :
# mkboot -a "hpux -lq" /dev/rdsk/c1t1d1


- To see the content of the AUTO file of the boot disk, you can use:
# lifcp /dev/rdsk/c1t1d1:AUTO -

The output would be similar to this:
hpux -lq


For more details, you can check mkboot -a option : ( -a auto_file_string )

http://docs.hp.com/en/B3921-90010/mkboot.1M.html



[ Where c1t1d1 is the Pri or Alt boot disk ]



Further: to find the boot disk:
# lblnboot -v vg00



Cheers,
Raj.



" If u think u can , If u think u cannot , - You are always Right . "
newunix
Frequent Advisor

Re: auto file

so how could i see in vpars and in v3

in v1 i use lifcp to see autofile

Raj D.
Honored Contributor

Re: auto file

newunix,
Same applicable for vpar and 11.31 .

- For vpar check the root disk using lvlnboot -v vg00 , and you can use lifls or lifcp command to see the content of lif area or content of AUTO file:


lifls -lC /dev/rdsk/c0t6d4
lifcp /dev/rdsk/c1t1d1:AUTO




- For 11iv3 : find disk vs dsk format of ctd, using # ioscan -m dsf



- If you have vxvm you can use :

# vxdisk path # to see the ctd.
# then run lifcp /dev/dsk/c1t1d1:AUTO -
To see the content of auto file.



Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: auto file

newunix, again ,..

- Example to see the AUTO file in vpar:
# lifcp /dev/rdsk/c1t1d1:AUTO -
hpux /stand/vpmon -a
#


on Itanium system you can use:
# efi_cp -d /dev/rdsk/c1t1d1s1 -u /EFI/HPUX/AUTO /tmp/auto.out; cat /tmp/auto.out


Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
newunix
Frequent Advisor

Re: auto file

so we have to use this for configuring low quorum.

so i have another doubt when to use configure this ,, after configuring vg00 and mirror disk or before that .

do we can use it os or only in pdc.

can u have any docs for this

Raj D.
Honored Contributor

Re: auto file

> so we have to use this for configuring low quorum.

Yes, low quorum is recomended ( however it is optional) if the disks are mirrored.

- In case of one disk failure the other disk (Alt disk) will automatically boot if setboot is correctly pointed to alternate disk. If (hp-ux -lq) is there in the boot string there will be no interuption while booting. If -lq is not there one has to choose manually the alternate disk to boot from . (from PDC or EFI) .


> so i have another doubt when to use configure this ,, after configuring vg00 and mirror disk or before that .

- mkboot need to be use during mirroring the first OS disk to the


> we can use it os or only in pdc.
- The commands to mirror the root disk needs to be execute in OS command prompt. (as root)





> have any docs for this:
- Here are few documents for LVM : root disk mirroring.


Mirroring in PA-RISC and in Integrity : (Page : 48 & 50 )
http://www.docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf


Root disk Mirroring: Itanium:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?&threadId=1292268



Good Luck,
Raj.



" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: auto file

newunix,
Also check the PDF doc, nicely explained the LVM root disk mirroring on PA-RISC system:

1. RootDiskMirror.pdf : Attached: 31KB.

A] LVM mirroring:
Basically you have to familiar and remember few basic command:

# pvcreate
# vgextend
# mkboot ..
# lvextend -m 1
... do lvextend for all lvol....
# lvlnboot ..




B] By the way If you are Using VXVM on hp-ux root disk mirroring is very simple:
You will surprise to see that there is just one command to mirror the root disk to the alternate disk:

# vxrootmir -b -v c1t1d1




- Finally I would suggest to understand LVM & to go through RootDiskMirror.pdf , and also go through the man pages with hands on. Once you have done few root disk mirroring it will easy to understand. And also keep hanging around ITRC , this is a great forum.


Enjoy Have fun!,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: auto file

Documents :
1. RootDiskMirror.pdf (attached):
2. When_Good_Disks_Go_Bad_WP.pdf (page 48 & 50)

There are plenty of customized and automated root disk mirror script also available (just need to pass the Alternate disk as input) . for 11i v1/2/3. But doing step by step using command prompt is great for beginners. Enjoy.

" If u think u can , If u think u cannot , - You are always Right . "
newunix
Frequent Advisor

Re: auto file


lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk3_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk3_p2
Root: lvol3 on: /dev/disk/disk3_p2
Swap: lvol2 on: /dev/disk/disk3_p2
Dump: lvol2 on: /dev/disk/disk3_p2, 0


$efi_cp -d /dev/rdisk/disk3_p2 -u /EFI/HPUX/AUTO /tmp/AUTOexe.ALT
Invalid EFI partition: /dev/rdisk/disk3_p2
efi_cp: invalid efi device

$efi_cp -d /dev/rdisk/disk3_p1 -u /EFI/HPUX/AUTO /tmp/AUTOexe.ALT


when seeing the contents of auto file i used the above cmd.

from the output of lvlnboot boot disk path is
/dev/disk/disk3_p2

but when i used the same in efi_cp cmd i can get answer only for /dev/disk/disk3_p1 and if i used /dev/disk/disk3_p2 it shows invalid efi partition

but my lvlnboot -v shows only the p2 partition
Torsten.
Acclaimed Contributor

Re: auto file

Caution!
You are using vPars.

The AUTOFILE located on the disk is not related to a vPars OS.

The settings are stored in vpdb; so you can set it with vparmodify only.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: auto file

With vPars the AUTOFILE on disk must always contain

/stand/vpmon -a

but not /stand/vmunix !



You can see the boot options for OS with "vparstatus".

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!