Operating System - HP-UX
1834437 Members
2847 Online
110067 Solutions
New Discussion

Re: fbackup and install to new vg group

 
twtandigi.com.my
Frequent Advisor

fbackup and install to new vg group

hi,

I have this scenario, there is a program sitting in vg01 which has 32G. I am trying to extend the size of vg01 but failed as the it only recognizes 32G and i have bought a 73 G.
So to enable me to gain the whole capacity of the 73G, i have created a new vg group (vg02) and i have mounted it.
now the problem is to backup the whole program running on vg01 and place it on vg02.
Unmount the old mount point on vg01 and run everything on vg02.
I have already specified the new fstab and all but i am not certain which is the right procedure and the steps i would need to take in this situation.
is there any step by step guide to changing the mount point.
3 REPLIES 3
Bharat Katkar
Honored Contributor

Re: fbackup and install to new vg group

Hi,
See i assume you have one filesystem in vg01 which is lvol1 and that is mounted on /dir1 and similarly you have one on vg02 mounted on /dir2.
So /dev/vg01/lvol1 is mounted on /dir1
and /dev/vg02/lvol1 is mounted on /dir2

So said your fstab is also updated, then i think this should work for you.

# cd /dir2
# cp -R /dir1/* .

Hope this is what u r looking for.
Regards,
You need to know a lot to actually know how little you know
Sunil Sharma_1
Honored Contributor

Re: fbackup and install to new vg group

Hi,

1. Create new VG and volumes
2. mount new volumes to temprory mount points
3. transfer data ( I an using find and cpio to do this). go to source directoty and run following comamnd
#find ./ -print -depth|cpio -pdlumv /(new mount point). if you use cp don't forget to use -p switch to preserve timestamp and ownership of files.

3. umount old and new volumes na dmount new voulmes on old mount point

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
bhavin asokan
Honored Contributor

Re: fbackup and install to new vg group

hi,

assuming you have one filesystem in vg01 which is lvol1 and that is mounted on /dir1 and similarly you have one on vg02 mounted on /dir2.

/dev/vg01/lvol1 is mounted on /dir1
and /dev/vg02/lvol1 is mounted on /dir2


you want to copy whatever the contents of /dir1 to /dir2

go to /dir1 and apply the following command.
#cd /dir1
#find . -depth |cpio -pdlmuva /dir2

this will copy the total directory structure from /dir1 to /dir2.

regds,