1752808 Members
6832 Online
108789 Solutions
New Discussion юеВ

Regarding pvcreate

 
SOLVED
Go to solution
jhingoor
Frequent Advisor

Regarding pvcreate

Hi guys,
One of our boot disk had gone bad for which an hp engineer came at our site...after replacing the hdd he entered ;

pvcreate /dev/rdsk/c0t6d0 without entering the -B option he created the physical volumes for our boot-disk....

What problems could we face in future becoz of this option.??? its a PRODUCTION server......THANKS IN advance........
13 REPLIES 13
RAC_1
Honored Contributor

Re: Regarding pvcreate

You will not be able to boot fro that disk. Depending upon which version of OS you are running, the boot disk procedure varies.
There is no substitute to HARDWORK
jhingoor
Frequent Advisor

Re: Regarding pvcreate

Hi RAC,

Don't tell me ..its an producn server.....
HP-UX B.11.11 rp8420 .......

we had used mkboot -l /dev/dsk/c0t6d0....
lifls /dev/dsk/c0t6d0 gives
AUTO PAD HPUX LABEL ISL
We havent booted from that disk yet...
RAC_1
Honored Contributor
Solution

Re: Regarding pvcreate

Is boot disk mirrored? The comlpete procedure for mirroring a boot disk is as follows.

1) Initialize the disk and make it bootable

pvcreate -B /dev/rdsk/c1t6d0

Note: the -B parameter tell pvcreate that this will be a

bootable disk.

2) Add the physical volume to the volume group

vgextend /dev/vg01 /dev/dsk/c1t6d0

3) Use mkboot to place the boot utilities in the boot area and add

the AUTO file.

mkboot /dev/dsk/c1t6d0

mkboot -a "hpux -lq" /dev/rdsk/c1t6d0

4) Use mkboot to update the AUTO file on the primary boot

disk.

mkboot -a "hpux -lq" /dev/rdsk/c0t6d0

5) Mirror the stand, root and swap logical volumes

lvextend -m 1 /dev/vg00/lvol1

lvextend -m 1 /dev/vg00/lvol2

lvextend -m 1 /dev/vg00/lvol3

Note: LVM will resynchronize the new mirror copies. This step will

takes several minutes

Repeat the lvextend for all other logical volumes on the boot

mirror.

6) Modify your alternate boot path to point to the mirror copy of the

boot disk.

setboot -a 8/8.6.0 # Use the Hardware path for your new

boot disk.
There is no substitute to HARDWORK
jhingoor
Frequent Advisor

Re: Regarding pvcreate

Hi RAC,

Actually the mirrored boot disk is c0t6do.
we got an alert from ems to change the boot disk.
We decided to change it.
The commands ran by hp engineer at our site as follows;
1] mv lvmtab lvmtab.bck

2]pvcreate /dev/rdsk/c0t6d0

3]mv lvmtab.bck lvmtab

4]pvchange -a n /dev/dsk/c0t6d0

5]vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t6d0

6]pvchange -a y /dev/dsk/c0t6d0

7]vgchange -a y vg00

8]mkboot -l /dev/dsk/c0t6d0

9]lvlnboot ├в R

10]├п lifls /dev/dsk/c0t6d0

ISL AUTO HPUX PAD LABEL





Help me out;;;;;;;;;;;;;;


RAC_1
Honored Contributor

Re: Regarding pvcreate

what does following say?
Is boot disk mirrored?

lifls -l (on both disks. It should match)
lifcp /dev/rdsk/cxtxdx:AUTO - (on both disks)

What HP engineer did is correct except that I would have also ran vgsync and would have checked it all mirror copies are ok and that there are no stale PEs.
There is no substitute to HARDWORK
jhingoor
Frequent Advisor

Re: Regarding pvcreate

Hi RAC,

lifls -l is same on both disks.

while lifcp gives;

hp-ux on one disk while
hpux -lq on the other disk.


RAC_1
Honored Contributor

Re: Regarding pvcreate

What about other questions? Is boot disk mirrored? Ar all mirrors OK and are there any stale PEs?

I would also do
mkboot "hpux -lq" /dev/rdsk/cxtxdx (on disk where quorum is not set)

And when you get time, do check if it boots from both disks or not.
There is no substitute to HARDWORK
jhingoor
Frequent Advisor

Re: Regarding pvcreate

Hi,
Both disks are mirrored....
And lvdisplay -v /dev/vg00/lvol* shows both disk status as current.......only....
jhingoor
Frequent Advisor

Re: Regarding pvcreate

Hi RAC,

But my first question remains unanswered.....

whether my system will boot or not???
if -B option is not used while creating physical volume....