Operating System - HP-UX
1833490 Members
2781 Online
110052 Solutions
New Discussion

Backup and restore OS in vg00

 
adr33
Occasional Advisor

Backup and restore OS in vg00

Dear,

 

I want to ask something about backup and restore HP-UX OS in vg00 (volume group 00)

For going further let me introduce my normal server setting

I always make OS and data volume group separate (ex: VG00 for OS and VG01 for data)

So I just type this and the OS will be backup " make_tape_recovery Alv -x inc_entire =vg00 -a [my tape path]

 

The problem that I face now is my OS and Data Volume group located in 1 group because of business need

(ex: VG00 for OS and data)

VG00/lvol1  -> /home

VG00/lvol2 -> /stand

VG00/lvol3 -> /tmp

VG00/lvol4 -> /data    (data lvol)

 

My question is how can I backup the OS (VG00/lvol1  - lvol3) without take VG00/lvol4 (data)

So I can choose which one of lvol that I want to backup.

 

Thanks

Adrian Tjahjana

 

 

7 REPLIES 7
Torsten.
Acclaimed Contributor

Re: Backup and restore OS in vg00

>> VG00/lvol1 -> /home

 

 

Do you really have such strange configuration???

 

However, you can use the ignites "exclude" option.

 

Example:

 

-x exclude=/var/adm/crash


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!   
adr33
Occasional Advisor

Re: Backup and restore OS in vg00

This my setting looks like
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 315088 727808 30% /
/dev/vg00/lvol1 1 776056 30600 1567848 2% /stand
/dev/vg00/lvol7 4194304 1199248 2973040 29% /var

so I can exclude the lvol that I don't want to backup?
how about this line inc_entire =vg00 dismiss this line or?

As I read so the example can be like below?:
make_tape_recovery Alv -x inc_entire =vg00 exclude=/dev/vg00/lvol7-a [my tape path]



rariasn
Honored Contributor

Re: Backup and restore OS in vg00

Hi:

 

Run "make_tape_recovery" interactivily.

 

# export DISPLAY=xxxxxxxx:0

 

# make_tape_recovery -i

 

rgs,

Torsten.
Acclaimed Contributor

Re: Backup and restore OS in vg00

My example shows the mount point, not the LVOL.

Take care, you cannot exclude "essential" files and directories!

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!   
adr33
Occasional Advisor

Re: Backup and restore OS in vg00

Hi,
What below line explain about?
make_tape_recovery -i

adr33
Occasional Advisor

Re: Backup and restore OS in vg00

Hi,
Because it show the mount point so I can conclude that this /dev/vg00/
is mount point?

Thanks
Torsten.
Acclaimed Contributor

Re: Backup and restore OS in vg00

In your example you want to exclude

 

/var

 

but IMHO you can't do this, because there are essential files within.


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!