1832927 Members
2568 Online
110048 Solutions
New Discussion

Re: COPYING LIF FILES

 
Archie Ogden
Occasional Contributor

COPYING LIF FILES

I am replacing my root volume group - On this server i dont have an updatediaglif file to use to create the lif files so I am using lifcp. I have copied all lif's and when i issue
lifls -l they are all there, but when I issue lifls on its own it only displays ISL AUTO HPUX PAD LABEL. What is wrong if anything ?
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: COPYING LIF FILES

Here is a complete doc, annoated with whats important.

lifls -c /dev/rdsk/c1t0d0 # use real disk.

pvcreate -B /dev/rdsk/c1t0d0 #use real disk


# The next three commands are the ones you need to run.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk


regards,

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Todd McDaniel_1
Honored Contributor

Re: COPYING LIF FILES

When you say "replacing my root volume"... what do you mean?

1) replacing all disks?
2) renaming vg00?

Also, what OS version/model are you running?
Unix, the other white meat.
Archie Ogden
Occasional Contributor

Re: COPYING LIF FILES

Please read the problem properly !
I cannot use mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
as I do not have the file updatediaglif
Stefan Stechemesser
Honored Contributor

Re: COPYING LIF FILES

Hi,

I have an additional comment to Stevens nice cookbook.
The updatediaglif command is only needed to install the Offline Diagnostic Environment (ODE) in the LIF fs of the root disk(s). ODE is not nessecary to boot your system. From my point of view, the only advantage of ODE on a root disk is the "mapper2" tool that produces an ioscan-like output of the system.
This ODE tool and many more are also on the Support+ CD. The updatediaglif utility is part of the Online Diagnostic.

mkboot is the only supported tool to install a lif fs (do not use lifcp).

Best regards

Stefan
Archie Ogden
Occasional Contributor

Re: COPYING LIF FILES

Its a K360 running 10.20 - I have already done this on another server - I am using LVM and mirroring to replace the root volume.
On the other server I had the updatediaglif file to use with the mkboot -b command, but that file is not on this server, so I have had to copy the LIF files from the original to the new disk, which I have done, but when I issue lifls -l /dev/dsk/c4t5d0 all lif files are displayed. but when I issue
lifls /dev/dsk/c4t5d0 it only displays the five default lif files.
So are they all there or not ?
Steven E. Protter
Exalted Contributor

Re: COPYING LIF FILES

My cookbook, just the mkboot part will do the job.

It will leave you with a bootable disk, though you should test it prior to removing the other disk.

I did read your question carefully. You might want to end up your work with updatediaglif file, its quite useful.

Try the procedure without that command and see what happens. It won't hurt anything. It will problably solve your issue.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Archie Ogden
Occasional Contributor

Re: COPYING LIF FILES

I simply want to know if there is another way to put the LIF files on the new disk without using the
mkboot -b /usr/sbin/diag/lif/updatediaglif
command.
I know the system will boot up ok without all the LIFs but I want them anyway! - can I create a file using LIFCP that I can then use with the mkboot command ?