LVM and VxVM

Partition Mirroring in HP-UX 11 v2

 
SOLVED
Go to solution
darren_lee
Frequent Advisor

Partition Mirroring in HP-UX 11 v2

Hi

Is there any information available on partition mirroring in HP-UX 11 v2?

I am currently looking at this document.
http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,5343,00.html

However, i keep getting errors when performing this step at 5A.

# for i in lvol1 lvol ... lvol8
> do lvextend -m 1 /dev/vg00/$i /dev/dsk/c2t1d0s2
> done

How do i verify that this has been done properly and is there a way to check the mirroring process status and completion?

Thanks
14 REPLIES 14
Steven E. Protter
Exalted Contributor

Re: Partition Mirroring in HP-UX 11 v2

Shalom,

for i in lvol1 lvol ... lvol8
> do lvdisplay -v /dev/vg00/$i
> done

You may want to put a sleep statement or output to a file so you have time to read the output.

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
Zinky
Honored Contributor

Re: Partition Mirroring in HP-UX 11 v2

for lv in `vgdisplay -v vg00|grep -i "lv name"|awk '{print $3}'`;do
mirr=`lvdisplay $lv|grep -i "mirror copies"`
echo $lv $mirr
done

Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Pete Randall
Outstanding Contributor

Re: Partition Mirroring in HP-UX 11 v2

What errors are you getting? There could be several possible explanations and it's hard to pin down without a little more detail.


Pete

Pete
Zinky
Honored Contributor

Re: Partition Mirroring in HP-UX 11 v2

Or put in a file, make it executable as a script the following:

#!/bin/ksh
for lv in `vgdisplay -v vg00|grep -i "lv name"|awk '{print $3}'`;do
mirr=`lvdisplay $lv|grep -i "mirror copies"|awk '{print $NF}'`
if [ $mirr -ne 1 ];then
echo $lv is not mirrored
fi
done
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Fred Ruffet
Honored Contributor

Re: Partition Mirroring in HP-UX 11 v2

> However, i keep getting errors when performing this step at 5A.

What are those errors ?

Regards,
--

"Reality is just a point of view." (P. K. D.)
Torsten.
Acclaimed Contributor
Solution

Re: Partition Mirroring in HP-UX 11 v2

Hi,

the procedure you posted is for 11.22 - not 11.23.

The difference is you have to create 3 partitions.

see here (Appendix A):
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

Is it really an Integrity?
Did you vgextend the c2t1d0s2 device - check with vgdisplay -v!

If you accidently extend c2t1d0 (without s2) it won't work.

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!   
darren_lee
Frequent Advisor

Re: Partition Mirroring in HP-UX 11 v2

The error obtained is this:

# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t0d0s2
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
"m": Illegal option.

Jov
Honored Contributor

Re: Partition Mirroring in HP-UX 11 v2

Hi,

Do you have the MirrorDisk/UX software installed on this system?

From previous HP-UX systems the above is required for lvextend -m. The manpage states:

The -m option is only meaningful if the optional HP MirrorDisk/UX
software has been installed on the system.


Jov
darren_lee
Frequent Advisor

Re: Partition Mirroring in HP-UX 11 v2

Hi

Thanks. Thats what i have missing. I am currently trying to install it now. however, i am unable to do so.

This is what i received from swinstall

--------------
A Remote Procedure Call to a daemon has failed. Could not start a
management session for "footwork.boonsoftware.com:". Make sure the
host is accessible from the network, and that its daemon, swagentd,
is running.
--------------

sorry, i'm new at this.

cheers