Operating System - HP-UX
1837365 Members
3414 Online
110116 Solutions
New Discussion

Cloning the particular VG on HP-UX without using ignite-ux

 
AwadheshPandey
Honored Contributor

Cloning the particular VG on HP-UX without using ignite-ux

Hello Admins,

I am planning to clone a particular VG from one system to another system online.(downtime very less) without using Ignite-UX.

Hoe can I do that?

Thanks for help.

Regards,

Awadhesh
It's kind of fun to do the impossible
13 REPLIES 13
AwadheshPandey
Honored Contributor

Re: Cloning the particular VG on HP-UX without using ignite-ux

LVM mirroring is a option I guess, but I dont know how to use?
It's kind of fun to do the impossible
Luk Vandenbussche
Honored Contributor

Re: Cloning the particular VG on HP-UX without using ignite-ux

AwadheshPandey
Honored Contributor

Re: Cloning the particular VG on HP-UX without using ignite-ux

Thanks Luk. But I want steps involved in that...
It's kind of fun to do the impossible
whiteknight
Honored Contributor

Re: Cloning the particular VG on HP-UX without using ignite-ux

hi Awadesh,


How to create an Split-Volume Backup?

The lvsplit command allows a mirrored logical volume to be split from the primary logical volume.

Upon splitting the logical volume, a new device file is created which allows the mirrored logical volume to be accessed separately from the primary. The name of the new device file is the primary device filename with the character "b" appended at the end.

For example: the name of the split off mirror for /dev/vg00/lvol4 is /dev/vg00/lvol4b.

The following procedure outlines the steps to create a split-volume backup:
1. Split the mirror
# lvsplit /dev/vg00/lvol4

2. Ensure the integrity of the mirror filesystem with fsck
# fsck /dev/vg00/lvol4b

Note: Failure to run fsck, will result in an error. The lvsplit command left the mount flag ON. The fsck command will detect the filesystem flag, and modify it to OFF.

3. Make a mount point for the mirror, if one does not already exist
# mkdir /backup

4. Mount the split filesystem
# mount /dev/vg00/lvol4b /backup

5. Perform the backup using any backup tool. The following example uses tar.
# cd /backup
# tar cvf /dev/rmt/0m .

Note: Backups should always use relative paths so that full pathnames are not stored. In the event of recovery, the use of absolute pathnames will cause the files to be restored to /backup instead of the correct mount point.

6. When the backup completes, remerge the mirror with the primary copy
# cd /
# umount /backup
# lvmerge /dev/vg00/lvol4b /dev/vg00/lvol4

WK
Please assign points
Problem never ends, you must know how to fix it
AwadheshPandey
Honored Contributor

Re: Cloning the particular VG on HP-UX without using ignite-ux

Thanks WK,

Tar backup will take time!! Is there any other way to do it. means If I can export the splited LV to another server.

Regards,

Awadhesh

It's kind of fun to do the impossible
whiteknight
Honored Contributor

Re: Cloning the particular VG on HP-UX without using ignite-ux

Awadhesh,

if your storage is EVA or XP, i believe they have this business copy features which can meet your requirement.


WK
Problem never ends, you must know how to fix it
AwadheshPandey
Honored Contributor

Re: Cloning the particular VG on HP-UX without using ignite-ux

one storage is DMX and another one is XP.
It's kind of fun to do the impossible
Pedro Cirne
Esteemed Contributor

Re: Cloning the particular VG on HP-UX without using ignite-ux

Hi,

Do you want to move the VG from one storage to the other or do you want to move the VG from one server to the other? Or both :-)?

Pedro
AwadheshPandey
Honored Contributor

Re: Cloning the particular VG on HP-UX without using ignite-ux

PC!

I never want to move storage or VG, I want only to copy VG Data/Info from one server to another server.

Regards,
It's kind of fun to do the impossible
AwadheshPandey
Honored Contributor

Re: Cloning the particular VG on HP-UX without using ignite-ux

Is there any way to go ahead or not?
It's kind of fun to do the impossible
Srinivas Thokala_1
Frequent Advisor

Re: Cloning the particular VG on HP-UX without using ignite-ux

One way is:
create similar VG and LVs on the second system where you want to clone.
then use nfs mounts to copy the data locally on the second system.

NFS mounts :
On first server, from where nfs f/s need to be exported
See rpc.server is running
#ps â aef|grep â i rpc, if not running then
Vi /etc/rc.config.d/nfsconf change nfs.server=1
/sbin/init.d/nfs.server start
See that the â rpc.mountdâ is also running on the first server.

Vi /etc/exports
/pvcs/work â ro,anon=65534
Or
/pvcs/work â ro,anon=65534,access=pdah0913,root=pdah0913
and run
#exportfs â a
to findout the exported f/s
run #exportfs
to disable the exported f/s
run #exportfs â u /pvcs/work
Note: while doing the above see the nfs services are not running on the secong host (target).
On the second server (client), to where the nfs mount is required
Mkdir /pvcs/work_n
See rpcclient is running
#ps â aef|grep â i rpc, if not running then
Vi /etc/rc.config.d/nfsconf change nfs.client=1
/sbin/init.d/nfs.client start
#ps â aef|grep â i rpc for verification.
Rpc.mountd daemon may not show on the target server.
Vi /etc/fstab
IP_of_host:/pvcs/work /pvcs/work_n nfs ro,suid,defaults 0 2
then run mount â a and use bdf to verify the new nfs mount point.

NOTE: /pvcs/work is a FS and is an example here.
You can include all other FS existing on that VG in this process and copy the data.

-Srinivas


Srinivas Thokala
AwadheshPandey
Honored Contributor

Re: Cloning the particular VG on HP-UX without using ignite-ux

Thanks Sri, But this is not a way I am looking for, I can do the same thing on same system and export the VG, but data size is too much, so it will be a time consuming process.
It's kind of fun to do the impossible
AwadheshPandey
Honored Contributor

Re: Cloning the particular VG on HP-UX without using ignite-ux

We did the activity by traditional way using vgexport and vgimport.

Thanks to all of you for valuable suggetions.

Regards,

Awadhesh
It's kind of fun to do the impossible