Visit Our UNIX and Linux User Community


HP-UX Filesystem backup/restore?


 
Thread Tools Search this Thread
Operating Systems HP-UX HP-UX Filesystem backup/restore?
# 1  
Old 04-25-2002
Question HP-UX Filesystem backup/restore?

Smilie

Hi Guys,

I'm not new to UNIX but I am new to HP-UX. I have a proven backup and restore procedue using cpio on Solaris, however, the filesystem structure appears to be different on HP. Can anybody help me with the following questions?

1) What is the best method for performing a full UNIX backup on HP-UX? backup/fbackup/cpio?

2) I am using vxfs on HP 10.20 on a K-Class 9000. Which filesystems need to be backed up? I can see that /tmp appears as a logical volume like the other filesystems, does /tmp need to be backed up?

3) Can anybody point me in the direction of a proven restore procedure as I am not sure which filesystems are auto-mounted on boot of HP-UX and whether or not a bootblk has to be built?

Note: I have searched this site and the docs.hp site to no avail, so I apologise if this is obvious to everyone.

Thanks in advance.
# 2  
Old 04-25-2002
A good backup for the OS can be made using the make_recovery
command. An example of execution is:

make_recovery -AC -d /dev/rmt/0m

This command come with the Ignite, see the man page.

Regards. Hugo.
# 3  
Old 04-26-2002
First, yes /tmp is just a regular filesystem on HP-UX. I don't think it need to be backs up. In fact, it really needs a cron job to clear it out.

Some physical volumes are boot physical volumes and they a BDRA (boot data reserved area) which is outside of any logical volume. The BDRA is similiar to a boot block, but more grandiose.

You need some way to recover from the loss of your boot disk. One way is to just re-install the OS, that will recreate the BDRA. Some people have a second boot disk.

I disagree with Hugo about Ignite. I wouldn't use it for true backups. But the make_recovery command will build a bootable tape. And when you boot the bootable tape, it can restore your boot disk. It is a great way to recover from the loss of your boot disk. I have also used it to clone a system.

What program you use for backups is really a matter of opinion. I dislike cpio. HP's fbackup is actually really great. HP says it is intended for system with 1 GB or less. But what they really mean is that if you have a GB or more, they want to sell you a copy of their OmniBack product.
# 4  
Old 04-26-2002
Regarding your mount question.

There is a /etc/fstab which contains all of the filesystems are mounted at boot time.

The filesystems that are OS related are / , /var, /opt , /tmp, /usr , /stand
# 5  
Old 04-26-2002
Sorry all for the double post, I hit enter too soon...

Regarding your mount question.

First let me say Welcome to HPUX and they have a great website for troubleshooting www.itrc.hp.com, click on the Search button.

There is a /etc/fstab which contains all of the filesystems are mounted at boot time.

The filesystems that are OS related are usually in the root Volume Group. vg00. Here is a sample from one of my boxes, an N-class.

dev/vg00/root 258048 59277 186406 24% /
/dev/vg00/stand 199381 43184 136258 24% /stand
/dev/vg00/var 1638400 1229543 384245 76% /var
/dev/vg00/usr 1638400 649486 927158 41% /usr
/dev/vg00/opt 1024000 497291 493825 50% /opt
/dev/vg00/home 307200 8289 280271 3% /home

The one filesystem that should be new to you is /stand, this is where your kernel is built and resides. Notice that the filesystem type is "hfs". HPUX kernels MUST reside on an hfs filesystem. I have 11.i boxes that are still hfs for the kernel. I had recently asked about if the kernel would ever be able to exist on a vxfs filesystem. They basically told me not for a while yet.


Whatever other filesystems that are in /etc/fstab should be considered to be backed up, as long as they are not NFS mounted from another box on your box. If they are it will appear as the following.

hostname: /some/dir/mounted /some/dir/mounted nfs rw,suid 0 0


If you can list your mounted filesystems with out breaking any company rules, give us a look...

If you company is buying the software, I would suggest Veritas NetBackup over Omniback or any other utility.

If you only have fbackup, it will serve well to backup your box.
# 6  
Old 09-26-2002
/stand must be hfs

/stand must be "hfs". is there any reason for that?
yls177
# 7  
Old 09-26-2002
Re: /stand must be hfs

Quote:
Originally posted by yls177
/stand must be "hfs". is there any reason for that?
When a HP 9000 boots, the first thing that happens is firmware called pdc (processor dependent code) starts to run. Pdc can read files from a lif formatted area (the BDRA mentioned above). It will find a program called ISL and load it into core. ISL (independent system loader) is used for HP-UX and other HP os'es. It can load other lif area programs into core and run them. And there is a standalone program called "hpux" which is loaded into core by isl. The hpux loader must locate the kernel and read it into core. This means that the hpux loader must completely understand the filesystem by itself. So far it only understand hfs. My guess is that HP wants vxfs to settle down and become stable before they will add vxfs to the hpux loader. Rewriting the hpux loader to add vxfs is not a trivial task...

See the man pages for pdc(1M), isl(1M), hpux_800(1m).

Previous Thread | Next Thread
Test Your Knowledge in Computers #697
Difficulty: Medium
The Bazaar software development model is when code is developed over the Internet open and in the public view.
True or False?

10 More Discussions You Might Find Interesting

1. AIX

Is there any possibilty to restore backup taken with backupby file name to any other filesystem

Hi, I have taken a backup of filesystem " /backup " by using backupby file name command on tape Mount volume 1 on /dev/rmt0. Press Enter to continue. Backing up to /dev/rmt0. Cluster 51200 bytes (100 blocks). Volume 1 on /dev/rmt0 a 0 /backup a 543 /backup/abc_log ... (3 Replies)
Discussion started by: m_raheelahmed
3 Replies

2. Red Hat

Backup / Restore

Hi, I need to back up a RH file system (96G). The files are oracle .dbf format some of which are 5G in size. I know that tar has got a size restriction of 2G so I cannot use this. Can anyone recommend an alternative way of backuping up this FS? I have been looking at dump but this... (6 Replies)
Discussion started by: Duffs22
6 Replies

3. SuSE

SuSE 11.4 Filesystem Backup and Restore

Hi, The dump and restore commands are missing from this server under SuSE 11.4 for unknown reasons. What is the cleanest way to backup and restore filesystems? Clean means to keep all the original hard/soft links and timestamps. Is find/cpio clean enough? $ cd /source $ find . -print | cpio... (4 Replies)
Discussion started by: aixlover
4 Replies

4. AIX

Backup and restore

Hi experts, i got a question. i have a production server with two Volume Group(VG) which are rootvg and datavg. Both of these VGs are 256 PP SIZE. On Disaster Recovery Server (DR server) contains two empty hardisks for restoring rootvg and datavg from production server. This two hardisks are... (7 Replies)
Discussion started by: polar
7 Replies

5. Solaris

Restore from Flash Archive on local filesystem

I am doing a practice restore using a test UNIX(Solaris) system, and a SCSI Hard Drive whose slice 5 contains the Flash Archive file that I need to restore from. The test system is offline( no network ) and does not have external devices, such as tape drive. My goal is to somehow restore the... (9 Replies)
Discussion started by: the.gooch
9 Replies

6. Solaris

Full backup and Restore

Dear All ; first how are you every body I'm just subscribed in your forum and i hope i found what i searched for along time . I'm not a Solaris specialist but i read more to build a Network Management Station depends on Solaris as OS and it is working good now . my problem is how to perform... (16 Replies)
Discussion started by: Basha
16 Replies

7. HP-UX

Backup Tape Restore?

I am trying to do a restore on a backup tape (DDS2) and am having a little trouble. For one, I dont know how the tape was made, whether is was tar, cpio, dump..etc. Anyone know how to restore a tape without knowing the format of the backup? (5 Replies)
Discussion started by: bake255
5 Replies

8. HP-UX

F-Backup restore

Hello! i have a blank harddrive and a complete tape backup of the workstation. the backup is made with F-Backup. Now my question is: how can i restore my workstation? thanks for every idea! paul tittel hup-si (3 Replies)
Discussion started by: paultittel
3 Replies

9. AIX

Backup and restore

I have several H80 machines, all with AIX 4.3.3. On these machines I have mksysb running for rootvg backups and savevg for non-rootvg backups. I'm trying to get a list of files on the tapes, but I can't seem to do it with tar for the mksysb images. I keep getting the directory checksum errors?... (3 Replies)
Discussion started by: uXion
3 Replies

10. Solaris

Backup / restore

Hi.... everyone could help me to understand how to do a backup of my servers .. operating systems is sun solaris 8 . I have some question about .... 1) Is better backup phisical disk or partition ??? i sow the command is ufsdump 0cfu /expbck/bcksunver/c0t0d0s5 dev/dsk/c0t0d0s5 to... (4 Replies)
Discussion started by: tt155
4 Replies

Featured Tech Videos