When ufsdump starts, it does a roll log operation just before the
actual dump starts. roll log [rl_roll_log()] function goes on to
mount/unmount the filesystem in order to flush metadata from UFS log
to disk.
A non-root user will never be able to roll log which is not checked
in the ufsdump code. It proceeds to roll log and fails with the
following error message which is confusing:
$ /usr/sbin/ufsdump 4f /tmp/dump /var
Unable to create temporary directory in any of the directories listed below:
/tmp/
/var/tmp/
/
Please correct this problem and rerun the program.
DUMP: Date of this level 0 dump: Wed Jan 09 19:38:19 2008
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rdsk/c0t1d0s3 (v4u-60a:/var) to /tmp/dump
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Writing 32 Kilobyte records
DUMP: Estimated 646 blocks (323KB).
DUMP: Dumping (Pass III) [directories]
DUMP: Dumping (Pass IV) [regular files]
DUMP: 574 blocks (287KB) on 1 volume at 1047 KB/sec
DUMP: DUMP IS DONE
$
Work Around
-> Run ufsdump as root user to avoid this failure.
-> Safely ignore error message as it does not affect functionality by
any means.