System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

What should I copy if I have to do a OS backup?

Irasela Posadas Díaz
Occasional Contributor

What should I copy if I have to do a OS backup?

My server is getting rebooted automatically, I open a case in HP and they told me to instal the patch: DUV40F16-C0040500-10245-Manual-20010328.tar but first make a OS backup.

Woul you pls tell me what to do before the backup and what to copy to assure the backup is trusted?

Best regards
5 REPLIES
Vladimir Fabecic
Honored Contributor

Re: What should I copy if I have to do a OS backup?

Hello
To do OS backup, you must save your filesystems somewhere.
It is ussually done by making data copies on tape unit. The best way is to use vdump (if using advfs) or dump (if usinf ufs). You must backup your "OS file systems" or do entire backup.
I will make an example:
I prefer to do it in single user mode in v4.0F:
# init s
# mount -a
# vdump -0f /dev/nrmt0h /
# vdump -0f /dev/nrmt0h /usr
# vdump -0f /dev/nrmt0h /var (if it is not linked in usr)
You can also vdump all file systems.
But you must backup / and /usr !!!
Replace your tape device name with nrmt0h.
In that case you can restore system from backup if something goes wrong.
Regards

In vino veritas, in VMS cluster
Ivan Ferreira
Honored Contributor

Re: What should I copy if I have to do a OS backup?

The Tru64 operating system usually uses / /usr and /var separated file systems, check with the df command. If you see these three file systems you must run:

vdump -0uf /dev/tape/tape_device /
vdump -0uf /dev/ntape/tape_device /usr
vdump -0uf /dev/ntape/tape_device /var

I recommend that you do a backup to a local attached tape device.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: What should I copy if I have to do a OS backup?

Sorry, the version of your operating system normally install without /var separated from /usr, and the tape device is /dev/nrmtXh, so it should be:

vdump -0uf /dev/rmtXh /
vdump -0uf /dev/nrmtXh /usr

And, if you have /var:

vdump -0uf /dev/nrmtXh /var
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Irasela Posadas
Occasional Contributor

Re: What should I copy if I have to do a OS backup?

Tks a lot for yout anweres!!

I had backed up the OS and installed the patch, the installation was succesful... but when i try to rebuild the kernel an error appear...

I rebuild the kernel just after the installation finished without reboot the server with this instruction:

# duconfig -c ORACLE-TEST

Start de rebuild and a few minutes after appear this error:

kds.mod commoressed: branch relocation out-of range, bad object file produced, can't branch from 0x.... to 0x....
kds.mod commoressed: branch relocation out-of range, bad object file produced, can't branch from 0x.... to 0x....
....
kds.mod commoressed: branch relocation out-of range, bad object file produced, can't branch from 0x.... to 0x....
kds.mod commoressed: branch relocation out-of range, bad object file produced, can't branch from 0x.... to 0x....

*** Exit 1 (ignored)
chmod 755 a.out
chmod: a.out: No such file or directory
***Exit 4
Stop
Press to continue:

Do you want to edit the configuration file (y/n) [n]: n

*** NOTE ***
A new kernel for this machine could not be succesfuly created.

Restoring the original configuration file - /sys/config/ORACLE-TEST



Would any one pls expline to me what's happen? Would you pls help me??
Joris Denayer
Respected Contributor

Re: What should I copy if I have to do a OS backup?

Answered in other thread

Joris
To err is human, but to really faul things up requires a computer