ADVFS Backup/restore

From: <maurerf_at_post.ch>
Date: Thu, 05 Nov 1998 10:38:25 +0100

Hi Folks,

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_at_post.ch
CH-3030 Bern http://www.post.ch
__________________________________________________
Received on Thu Nov 05 1998 - 09:39:55 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT