From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078728411738.tru64-unix-managers.marc@archive.invalid> From: maurerf () post ! ch Date: Fri, 06 Nov 1998 12:04:02 +0000 To: tru64-unix-managers Subject: SUMMARY: ADVFS Backup/restore X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078728411738 Thanks to all who tried to help me to that problem: Oisin McGuiness Dr Blinn Martin Mokrejs Mitsch Bertone Georg Tasman ( a comment to Georg, I can't reply to your domain db.com?) It seems that I was producing the problem. The rule is as follow: the advfs domain names are allowed only once while fileset names should reflect the targeted fileset. This gives the following correction to my script: /sbin/mkfset bck1_domain bck1 <<<=== wrong /sbin/mount bck1_domain#bck1 /mnt/bck1 /sbin/mkfdmn -F -t rz28m /dev/rz1a bck1_domain /sbin/mkfset bck1_domain root <<<=== Right /sbin/mount bck1_domain#root /mnt/bck1 and so forth for each other domains. Now I can plug the backup disk to the slot of the previous disk and it works fine. Original mail: I'm doing backup from disk to disk to speed up the restore process on our system. Yesterday I had the possibility to try my procedure live. And I got a real surprise. It seems that there is somthing wrong with the way I'm doing it. I first use a procedure submitted by crontab: # Initialize the disks partitions /sbin/disklabel -r rz0 > /tmp/disk.label /sbin/disklabel -z rz1 /sbin/disklabel -wr -t advfs rz1 rz28m /sbin/disklabel -R rz1 /tmp/disk.label #/sbin/disklabel -r rz17 > /tmp/disk.label /sbin/disklabel -z rz19 /sbin/disklabel -wr -t advfs rz19 rz29b /sbin/disklabel -R rz19 /recovery/usr.label rm /tmp/disk.label # Now mount the disks rm -R /mnt/bck1 mkdir /mnt/bck1 rm -R /etc/fdmns/bck1_domain /sbin/mkfdmn -F -t rz28m /dev/rz1a bck1_domain /sbin/mkfset bck1_domain bck1 /sbin/mount bck1_domain#bck1 /mnt/bck1 rm -R /mnt/bck2 mkdir /mnt/bck2 rm -R /etc/fdmns/bck2_domain /sbin/mkfdmn -F -t rz28m /dev/rz1d bck2_domain /sbin/mkfset bck2_domain bck2 /sbin/mount bck2_domain#bck2 /mnt/bck2 rm -R /mnt/bck3 mkdir /mnt/bck3 rm -R /etc/fdmns/bck3_domain /sbin/mkfdmn -F -t rz29b /dev/rz19a bck3_domain /sbin/mkfset bck3_domain bck3 /sbin/mount bck3_domain#bck3 /mnt/bck3 # now perform the backups /sbin/vdump -0f - / | /sbin/vrestore -xf - -D /mnt/bck1 > /dev/null /sbin/vdump -0f - /data | /sbin/vrestore -xf - -D /mnt/bck2 > /dev/null /sbin/vdump -0f - /usr | /sbin/vrestore -xf - -D /mnt/bck3 > /dev/null # Dismount the disks /sbin/umount /mnt/bck1 /sbin/umount /mnt/bck2 /sbin/umount /mnt/bck3 Then I expect to be able to swap the target disks with the original disks. But doing this I have the following problem. When trying to mount the /data partition, it says that the device is busy even it is not: # mount -a /proc on /proc: Device busy usr_domain#usr on /usr: Device busy data_domain#data on /data: Device busy /dev/rz4c on /usr/share/doclib/ODL/U98Q3_1: Device busy # df Filesystem 512-blocks Used Available Capacity Mounted on root_domain#root 262144 146048 100784 60% / /proc 0 0 0 100% /proc usr_domain#usr 8379040 3856688 4453280 47% /usr and I cannot defragment the root partition any more, there is an error message: defragment: Defragmenting domain 'root_domain' defragment: Can't get file set id. defragment: Domain name: root, file set name: root_domain defragment: Error = E_NO_SUCH_BF_SET (-1093) defragment: Can't defragment domain 'root_domain' Is there a way to fix those problems and what's going wrong in my procedure? __________________________________________________ Felix Maurer Die Schweizerische Post Tel: +41-31-338 98 49 Informatik POST Fax: +41-31-338 98 80 Messaging Management Webergutstrasse 12 Mailto:maurerf@post.ch CH-3030 Bern http://www.post.ch __________________________________________________