Problem with ufsdump of snapshot in Solaris 8 shell script

From: Steve Edberg (sbedberg@ucdavis.edu)
Date: Tue Oct 15 2002 - 12:29:51 EDT


I've been getting a strange error using ufsdump to backup fssnap-made
snapshots on my Solaris 8 box. Periodically I've been getting errors
like

fssnap: WARNING: snap_strategy: error calling snap_getchunk, chunk =
2075571, offset = 7168, len = 196, resid = 196, error = 5.

during the backup. The errors were repeatable (at least for the two
times I tried the backup script), but they did not happen on all
filesystems - only 2 out of the 5 filesystems being backed up showed
those errors. The strange thing is that I did NOT get these warnings
if I entered the same commands in the command shell - the backups &
verifys worked fine.

I found no mention of this on google, www.sun.com, docs.sun.com, or
sunsolve.sun.com. Anyone seen anything like this?

Thanks in advance,

        steve edberg

My uname -a info:
SunOS pgfjupiter 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R

Excerpt of sh backup script:
-------------------------
/etc/init.d/amdemon stop
my_snap_root=`fssnap -F ufs -o maxsize=500m,unlink,raw,bs=/var/tmp /`
my_snap_usr=`fssnap -F ufs -o maxsize=500m,unlink,raw,bs=/var/tmp /usr`
my_snap_opt=`fssnap -F ufs -o maxsize=500m,unlink,raw,bs=/var/tmp /opt`
my_snap_home=`fssnap -F ufs -o maxsize=500m,unlink,raw,bs=/var/tmp
/export/home`
/etc/init.d/amdemon start

my_dump_root=`ufsdump 0vufN /dev/rmt/0n /dev/md/rdsk/d0 $my_snap_root`
fssnap -F ufs -d /
echo `date`: / backup done with ufsdump status $my_dump_root

my_dump_usr=`ufsdump 0vufN /dev/rmt/0n /dev/rdsk/c1t0d0s6 $my_snap_usr`
fssnap -F ufs -d /usr
echo `date`: /usr backup done with ufsdump status $my_dump_usr

my_dump_opt=`ufsdump 0vufN /dev/rmt/0n /dev/rdsk/c1t0d0s5 $my_snap_opt`
fssnap -F ufs -d /opt
echo `date`: /opt backup done with ufsdump status $my_dump_opt

my_dump_home=`ufsdump 0vufN /dev/rmt/0n /dev/rdsk/c3t5d0s7 $my_snap_home`
fssnap -F ufs -d /export/home
echo `date`: /export/home backup done with ufsdump status $my_dump_home
-------------------------

Excerpt of output:
-------------------------
   DUMP: Level 0 dump on Mon Oct 14 17:41:07 2002
   DUMP: Writing 32 Kilobyte records
   DUMP: Date of this level 0 dump: Mon Oct 14 17:47:30 2002
   DUMP: Date of last level 0 dump: the epoch
   DUMP: Dumping /dev/rfssnap/0 to /dev/rmt/0n.
   DUMP: Mapping (Pass I) [regular files]
   DUMP: Mapping (Pass II) [directories]
   DUMP: Estimated 200106490 blocks (97708.25MB).
   DUMP: Dumping (Pass III) [directories]
Oct 14 17:51:44 pgfjupiter fssnap: WARNING: snap_strategy: error
calling snap_getchunk, chunk = 2074361, offset = 23552, len = 196,
resid = 196, error = 5.
Oct 14 17:51:44 pgfjupiter fssnap: WARNING: snap_strategy: error
calling snap_getchunk, chunk = 2075571, offset = 7168, len = 196,
resid = 196, error = 5.
Oct 14 17:51:44 pgfjupiter fssnap: WARNING: snap_strategy: error
calling snap_getchunk, chunk = 2079008, offset = 15360, len = 196,
resid = 196, error = 5.
Oct 14 17:51:44 pgfjupiter fssnap: WARNING: snap_strategy: error
calling snap_getchunk, chunk = 2079006, offset = 23552, len = 196,
resid = 196, error = 5.
Oct 14 17:51:44 pgfjupiter fssnap: WARNING: snap_strategy: error
calling snap_getchunk, chunk = 2082344, offset = 7168, len = 196,
resid = 196, error = 5.
Oct 14 17:51:44 pgfjupiter fssnap: WARNING: snap_strategy: error
calling snap_getchunk, chunk = 2082348, offset = 15360, len = 196,
resid = 196, error = 5.
Oct 14 17:51:44 pgfjupiter fssnap: WARNING: snap_strategy: error
calling snap_getchunk, chunk = 2084037, offset = 15360, len = 196,
resid = 196, error = 5.
Oct 14 17:51:44 pgfjupiter fssnap: WARNING: snap_strategy: error
calling snap_getchunk, chunk = 2085749, offset = 7168, len = 196,
resid = 196, error = 5.
-------------------------

-- 
+------------------------------------------------------------------------+
| Steve Edberg                                      sbedberg@ucdavis.edu |
| University of California, Davis                          (530)754-9127 |
| Programming/Database/SysAdmin               http://pgfsun.ucdavis.edu/ |
+------------------------------------------------------------------------+
| The end to politics as usual:                                          |
|                 The Monster Raving Loony Party (http://www.omrlp.com/) |
+------------------------------------------------------------------------+
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:06 EDT