1846709 Members
3660 Online
110256 Solutions
New Discussion

mirror problem

 
Cathy Arora
Frequent Advisor

mirror problem

I was trying to mirror disk and tried to create physical colume and I got an error
any help will be appreciated.
also I would like to know how to work with vgexport?

# pvcreate -B /dev/rdsk/c0t5d0
Couldn't stat physical volume "/dev/rdsk/c0t5d0":
Physical volume can be created only on whole disk.

Thanks,
raj
14 REPLIES 14
Jeff Schussele
Honored Contributor

Re: mirror problem

Hi Cathy,

Do an
ioscan -fnC disk
and verify that c0t5d0 is indeed the disk device you're trying to use for the mirror.
It must say CLAIMED if it's an available, working disk.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Cathy Arora
Frequent Advisor

Re: mirror problem

Thanks but it claiamed and avaialble.
raj
Paula J Frazer-Campbell
Honored Contributor

Re: mirror problem

Hi

This may help:-

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=240333

If you search the forum you will find many ways to use vgexport.

Paula
If you can spell SysAdmin then you is one - anon
Uday_S_Ankolekar
Honored Contributor

Re: mirror problem

Is c2t5d0 is disk shows up ioscan -fnc disk ?

Try using pvcreate -fB option

And here is the process to create mirrored boot disk.
pvcreate -fB /dev/rdsk/c0t5d0;
vgextend /dev/vg00 /dev/dsk/c0t5d0,
mkboot -l /dev/rdsk/c0t5d0, mkboot -a "hpux" /dev/rdsk/c0t5d0,
mkboot -a "hpux -lq" /dev/rdsk/c0t5d0,
lifcp /dev/rdsk/c0t5d0:AUTO -;
setboot -a (From IOSCAN for that disk),
Mirroring can be done by this
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t5d0
and rest of the lvols in vg00 ,
lvlnboot -b /dev/vg00/lvol1 /dev/vg00, lvlnboot -s /dev/vg00/lvol2 /dev/vg00, lvlnboot -d /dev/vg00/lvol2 /dev/vg00, lvlnboot -r /dev/vg00/lvol3 /dev/vg00

Goodluck,
-USA..
Good Luck..
Karthik S S
Honored Contributor

Re: mirror problem

Is it a internal harddisk or external box?? One of the earlier posting states that the low level LVM configuration on older model of diskarrays needs to performed through SAM.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=240333

vgexport is used for removing the VG configuration from the system. It is different from vgremove. vgremove as the name suggests removes the data but vgexport only removes the entries for the particular VG that you are exporting from the following locations,

/etc/lvmtab (removes the entry for vgxx)
/dev/vgxx (removes the whole directory)

You can also export the configuration to a MAP file so that you can either import the disk back in the same system or on a different system.

vgexport -v -m /tmp/vgxx.map vgxx

to import
1. mkdir /dev/vgxx; cd /dev/vgxx
2. mknod group c 64 0x0n0000 ( the value of "n" should not conflict with other VGs in the system)
vgimport -v -m /tmp/vgxx.map vgxx /dev/dsk/cxtxdx

This is especially useful in Serviceguard cluster configuration.

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Karthik S S
Honored Contributor

Re: mirror problem

Hi Paula,

Mirror is in sync between our search engines again ;-)

-Karthik S S
No points for this please.
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Paula J Frazer-Campbell
Honored Contributor

Re: mirror problem

Karthik

I was first this time ;^)



Paula
If you can spell SysAdmin then you is one - anon
Cathy Arora
Frequent Advisor

Re: mirror problem

Hi Karthis;
everythig was going fine unitl this point please explain which option to choose and why
mkboot -a or lq or -l. Thanks
I have only two disks

raj
Cathy Arora
Frequent Advisor

Re: mirror problem

My apology for misspelling your name karthik.
raj
Uday_S_Ankolekar
Honored Contributor

Re: mirror problem

You will have to run mkboot -a and mkboot -l both commands where mkboot -a is twice.

mkboot -l /dev/rdsk/c0t5d0,
mkboot -a "hpux" /dev/rdsk/c0t5d0
mkboot -a "hpux -lq" /dev/rdsk/c0t5d0,
Good Luck..
Karthik S S
Honored Contributor

Re: mirror problem

Refer this notes,

http://www.wagoneers.com/UNIX/HP-UX/older-HP-info/MirrorRootDisks.html

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Cathy Arora
Frequent Advisor

Re: mirror problem

why twice?
raj
Uday_S_Ankolekar
Honored Contributor

Re: mirror problem

If you are refering to my reply then the answer for "why twice" is

mkboot -l will place boot utilities in boot area for that disk
mkboot -a "hpux" will put an AUTO file in boot LIF area

mkboot a "hpux -lq" When root colume group contains two disks allwing the system to boot in the event that one disk is unavailable , resulting loss of quorum.

-USA..

Good Luck..
Cathy Arora
Frequent Advisor

Re: mirror problem

Thanks Uday, yes I was reffering to your reply but addressing to wrong name as well.
raj