Operating System - HP-UX
1833017 Members
2188 Online
110048 Solutions
New Discussion

Re: Unexporting filesystems and backup

 
SOLVED
Go to solution
Chern Jian Leaw
Regular Advisor

Unexporting filesystems and backup

HI,
I'm running Veritas Netbackup to perform daily incremental and weekly full backups.

I would like to extract the content of a S-DLT tape which contains newer copies of a filesystem i.e /fs10/circuit_design which already exist on the fileserver.

Would it be necessary to unexport the existing /fs10/circuit_design filesystem, using:
#exportfs -u /fs10/circuit_design

before the newer /fs10/circuit_design is restored from the tape?

Note that users had been informed of the cut-off date to access the existing /fs10/circuit_design. Daily incremental backups are also running.

Could someone please help me out?

Thanks.
3 REPLIES 3
Tom Geudens
Honored Contributor
Solution

Re: Unexporting filesystems and backup

Hi,
There are many ways to do this, this is just the way I would follow :
0. Stop the application
1. Create a new logical volume / filesystem
2. Make the current filesystem unavailable
exportfs -u /fs10/circuit_design
umount /fs10/circuit_design
3. Mount /fs10/circuit_design ... but with the new filesystem (alter /etc/fstab for this).
4. Do the extract
5. If you are pleased with the result, the new filesystem is from now on the current filesystem. Re-export it. Later you can remove the old filesystem.
6. If you are not pleased with the result, you can unmount the new filesystem and remount the old (+re-export).
7. Start the application

Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
Leif Halvarsson_2
Honored Contributor

Re: Unexporting filesystems and backup

Hi

Exporting or unexporting does not matter for the restore process itself (if restoring is done local), but it is of course important if you don't want the user to acess this filesystem during restore.

Perhaps you should describe your problem clearer.
A. Clay Stephenson
Acclaimed Contributor

Re: Unexporting filesystems and backup

The selected file versions (either newer or older) will simply overwrite the existing versions; you don't have to do anythging special.

Sometimes, if you want to do a full restore; it's best to umount the filesystem and do a newfs and then mount a clean filesystem. The answer is that 'it depends'.

If it ain't broke, I can fix that.