SAMFS (ASM) sample archiver.cmd

# /etc/opt/SUNWsamfs/archiver.cmd
#: john core 02-28-2007
#######################################################
# test this file with archiver -lv
# any error in this file and archiving will STOP (honest)
#
# after editing, test, rem the wait command, run samd config,
# check logs and samu
#
# without this file archiver will use defaults and go to first BU device,
# 4 minute age – no log – order found interval 10 – 1 copy
#
# archive age default for first copy (1) is 4 minutes
# archive interval default is 10 minutes.
# interval is the END of one run and the start of the next run
# interval is NOT the start of one run and the start of the next run
# file systems defined in mcf automatically have an archive set
# too many archive sets can (and will) lead to data loss!
# too many archive sets can (and will) lead to archive backlogging!
# each archive set causes robotic arm movement
###########################################################
# Guidelines for archive sets:
# tape drives archive sets max FS Max files per FS
# 2-3 1 4 6 million
# 4-5 1 6 6 million
# 6-7 2 8 8 million
# 8-10 4 10 10 million
###########################################################
# units:
# s,m,h,d,w,y = seconds,minutes,hours,days,weeks,years
# b,k,M,G,T = bytes,kilobytes,megabytes,gigabytes,terabytes
###########################################################
# devices:
# tp,dt,xm,lt,xt = generic,4mm,8mm,dlt,exabyte
# li,sg,sf,mo = 3580,stk9840,stk9940,optical
# rb,ac,s9 = generic robot, ACL, STK97xx
###########################################################
# general directives (globals)
###########################################################
#wait # tell archiver to wait (for editing)
#interval = 10m # default is 10 minutes
archivemeta = off # use samfsdump in a cron job instead!
#startage 1h # time from fs to archive
#startcount 3000 # files needed before archive starts
#startsize 150g # wait till this size is accumulated
#examine = noscan # use continous archiving (default)
#examine = scan # scan based archiving (slow)
#examine = scandirs # scan based on directories
#examine = scaninodes # scan on inodes
#archmax = li 750M # set to 10% less than tape size (default 512M)

#logfile = /var/opt/SUNWsamfs/archiver/archiver.log # don\’t forget to touch this file
logfile = /var/adm/archiver.log # don\’t forget to touch this file

###########################################################
# fs directives (samfs1)
###########################################################

fs = samfs1 # begin samfs1
#logfile = /var/adm/samfs1.log # fs specific log (optional)
1 1s # backup copy 1 after this age (metadata)
2 10m # backup copy 2 after this age
#2 -release 10m # backup copy 2 after this age release disk cache
#2 -norealse 10m # backup copy 2 after this age retain disk cache
#3 100m # backup copy 3 (default 1 copy after 4 minutes)
no_archive tmp # do not archive this directory

#foo . -user john # archive set foo, all files owned by john
#foo . -group prog # archive set foo, all files group prog
#foo . -name \\.gif$ # archive set foo, all files named *.gif
#foo . minsize 2G # archive set foo, all files 2gig or greater

work work # archive set work files in directory work
1 1h # backup copy 1 after this age
2 5h # backup copy 2 after this age

samfs_all . # archive set samfs_all all files (all directives need to be last)
1 1h 6w # backup copy 1 after this age after 6w unarchive (toss)
2 5h # backup copy 2 after this age

fs = samfs2 # begin samfs2
all . # archive set all all files

###########################################################
# end fs directives
###########################################################

params # archive set parameters
#work.1 -disk-archive jimmy1 # disk archive (v4.2) jimmy1 in diskvols.conf
allsets -drives 2 # define for all
endparams # end archive set parameters

vsns # VSN associations
samfs1.1 mo optic-2A # 1st copy to optical device type mo
samfs1.2 lt TAPE01 # 2nd copy to TAPE01 device type lt
###samfs1.3 lt TAPE01 # 3rd copy to TAPE01 device type lt
# *bad* samfs1.2+3 go to the same tape
samfs2.1 mo optic-2A # 1st copy to optical device type mo
###samfs2.2 lt TAPE01 # 2nd copy to TAPE01 device type lt
work.1 mo optic-[3-9][A-Z] # 1st work copy to optic type mo
work.2 lt .* # 2nd work copy to any lt device
samfs_all.1 mo .* # 1st copy any device mo
samfs_all.2 lt .* # 2nd copy any device lt
qfs1.1 lt .*
all.1 lt .*
endvsns # end VSN associations

Leave a Reply

Your email address will not be published. Required fields are marked *