1752806 Members
6024 Online
108789 Solutions
New Discussion юеВ

Re: Backing up the VG.

 
sacthivel.C
Frequent Advisor

Backing up the VG.

Dear all,
I have one d-class server with hp unix 10.20.
Recently it's performace goes down and the output of 100% in %wio.
We have 3 hdd of 4.5GB,9.1GB and 31 GB respectively.We have three VG's namely VG00,VG01 and VG02.
Every time when we restart the server all the log's get cleared automatically.And we are facing problem sometimes when we trying to access the lv's in VG02.
So we planned to change the HDD having VG02.

Would somebody tell me how to take backup of VG02 and restore it in the new Hdd?

Regards,
C.Sacthivel
6 REPLIES 6
Aneesh Mohan
Honored Contributor

Re: Backing up the VG.


You may please read the below doc to accomplish the requested task.

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

Regards,
Aneesh
Steven E. Protter
Exalted Contributor

Re: Backing up the VG.

Shalom,

Three links for you here:

http://docs.hp.com/en/7161/LVM_OLR_whitepaper.pdf

Man page for vgcfgrestore
http://docs.hp.com/en/B9106-90008/vgcfgrestore.1M.html

Man page for vgcfgbackup
http://docs.hp.com/en/B9106-90008/vgcfgbackup.1M.html

Doc on how to restore a vg configuration.

http://docs.hp.com/en/B7961-90017/ch02s03.html

This is 10.20 so some of this stuff might not work the same as you are two versions of HP-UX and 5 years beyond anything but peer to peer support.

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
Bijeesh
Respected Contributor

Re: Backing up the VG.

hi
You can take the backup of the LVs present in VG02 using fbackup.
Then replace the hard disk.Apply these commands.
1. # vgcfgrestore -n vg02 /dev/rdsk/cXtXdX
2. # vgchange -a y vg02
3. # newfs -F vxfs /dev/vg02/rlvolX
4. # mount /dev/vg02/lvolX /mnt
restore data using frecover from tape
5. # frecover -v -f /dev/rmt/Xm -i /mnt
If your VG02 is containing more LVs,do the step 3 and 4 for all the one.

rgds
bijo
shanmuhanandam
HPE Pro

Re: Backing up the VG.

Hi Dear,
In case if you don't have tape drive on your machine, then try this.
1.add the new disk into the vg02

2.create new lv's as same as in the existing pv.

3.mount the new lv's temporary.

4.fbackup & frecover the lv's in the vg02.

Example:#cd /mnt && fbackup -i . -f - | (cd /mnt1 && frecover -Xrf -)

5.once it is completed unmount the older lv's in the vg and mount the new lv's on the old mount points, and check the data and the application.

6.if it is ok, then remove the old lv's and remove the pv from the vg.

hope this helps you!!!

Regards,
shanmugam
I am an HPE Employee

Accept or Kudo

Ganesan R
Honored Contributor

Re: Backing up the VG.

Hi Sacthivel,

First of all, I don't really understand this..

>>>Every time when we restart the server all the log's get cleared automatically<<<

which log files. Unless you have some job's to do so, it won't.

Anyway, if you want to change the HDD on VG02, you should provide some details.

How many disks are there on vg02?
Does all the disks mirrored?

If the disks are mirrored, it is simple and straight. remove the old disk, put new disk on the same path and restore the configuration and sync it. Hope you know the commands.

If it is not mirrored, take the full backup of the filesystem residing on the disk. put the new disk. restore the configuration and then restore the data from the backup.
Best wishes,

Ganesh.
RajuD
Frequent Advisor

Re: Backing up the VG.

Hi Ganesh,


Can we follow the below method

If the vg contains only 1 disk. we can add the new disk in the vg mirror the lv's to the new disk and lvremove the old disk.

тАЬEducation is our passport to the future, for tomorrow belongs to those who prepare for it today.тАЭ