
verify the device file (/dev/ ....) swap is using. In the following example, c1t0d0s1 can be
omitted from the backup.
# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c1t0d0s1 136,1 16 819296 763744
/opt/swap1 - 16 2032 2032
4. Mount the corresponding root slice from the backup drive determined in step
on page 157
Preparing for Solaris Backup using clone.pl
on page 156.
# mount /dev/dsk/c1t1d0s0 /mnt
5. Create a tar exclude file that specifies the mounted file systems that are not tarred from root.
# cd / # \df | awk '{print $1}' > tarex
Escape the df with a preceding \ in case an alias is modifying the output behavior.
6. Edit the tarex exclude file to delete the line containing root. Do not exclude the preceding /.
7. Edit the tarex exclude file to contain the ./ directory prefix. The following is a sample of an
exclude file:
# cat /tarex
./usr
./proc
./dev/fd
./etc/mnttab
./mnt
./var
./var/run
./opt
8. Tar the root, excluding the mounted file systems.
# cd / # tar cvfX - tarex . | (cd /mnt; tar xfBp - )
9. Create the mount points, on the root backup slice, for the excluded directories. Determine
the directories to create from the column labeled Mounted on as shown in the following df
command output.
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t0d0s0 481561 304342 129063 71% /
/dev/dsk/c1t0d0s6 3008366 1596927 1351272 55% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/dsk/c1t0d0s4 963076 324655 580637 36% /var
swap 3296408 16 3296392 1% /var/run
/dev/dsk/c1t0d0s5 11878657 6181095 5578776 53% /opt
10. Based on the preceding list of mounted /dev/[x], run the following command to create mount
points on the backup root slice mounted on /mnt.
# mkdir -p /mnt/usr /mnt/var /mnt/opt /mnt/proc /mnt/etc/
mnttab /mnt/var/run
Alternate Solaris Backup Procedure
October 2014
Avaya Media Processing Server 500 Hardware Installation and Maintenance
167