03-05-2011 02:07 AM
Hi Forum,
My Setup : Master/Media Sol. 10 (With latest KJP & OBP) - NBU - 6.5.5
I m facing problem of getting 32 KB for some / all streams for some BC Tape backup. We usually mount FS (Through bpstart script) on media server and take backup. Some or all the streams are writing 32 kb completes successfully (STATUS 0). When FS check on media server, mount point has data.
Same after firing 2-3 times it starts writing.
Sample bpstart script.
---------------------------------
set -x
#!/bin/ksh
################################################BCV QUERY AND MOUNT SCRIPT #############################
PATH=$PATH:/usr/symcli/bin:.
export PATH
HOST=`hostname`
DATE=`date`
### Enabling logging
day=`date | awk '{print $3}'`
month=`date | awk '{print $2}'`
year=`date | awk '{print $6}'`
LOG_PATH=/var/adm/IXRETPD
LOGFILE=$LOG_PATH/EMC_SAR_$day$month$year.log
touch $LOGFILE
let SL=$RANDOM/900
echo $SL
sleep $SL
touch $LOG_PATH/streams/LOCK.$1.$2.$3.$4.$BACKUPID
COUNT=`ls -l /var/adm/IXRETPD/streams | wc -l`
if [ $COUNT -ne 2 ]
then
sleep 600
exit 0
else
#vxdctl enable
#sleep 10
vxdg -C import RETIXOS
if [ $? -ne 0 ]
then
exit 1
else
vxvol -g RETIXOS startall
if [ $? -ne 0 ]
then
exit 1
else
fsck -y -F vxfs /dev/vx/rdsk/RETIXOS/ixosdata > /dev/null
if [ $? -ne 0 ]
then
exit 1
else
mount -F vxfs -o ro /dev/vx/dsk/RETIXOS/ixosdata /BCV/IXRETPD/ixosdata
if [ $? -ne 0 ]
then
exit 1
else
fi
fi
fi
fi
fi
--------------------------------
Any suggestion as to y this is happening.
Thanks in Advance.
03-05-2011 07:28 AM
Hi Mate,
Please check the below command, Some time the mount volumes are not proper mounted. Hence we are getting 32KB with successful.
df -k | grep -i mnt
03-05-2011 10:29 PM
If you run it manually, does it mount the volume?
You might have uncleaned lock files lying in /var/adm/IXRETPD/streams
03-07-2011 04:00 AM
Hi Baski,
when we mount it manually it does get successful without any issues. lock files are being cleaned when unmounting happens ....here is the output of bpend....
-----------------------------
set -x
rm /var/adm/IXRETPD/streams/LOCK.$1.$2.$3.$4.$BACKUPID
COUNT=`ls -l /var/adm/IXRETPD/streams | wc -l`
if [ $COUNT -ne 1 ]
then
exit 1
else
umount /BCV/IXRETPD/ixosdata
sleep 2
vxvol -g RETIXOS stopall
sleep 2
vxdg deport RETIXOS
fi
--------------------------------
03-07-2011 10:06 AM
Put some sleep time in the bpstart that mounts it. (more than the 2 seconds you have in bpend - I would put at least 30 seconds)
Just to make sure it has time to mount before the jobs starts
03-09-2011 02:58 AM
Hi J. Hinchchliffe,
Where exactly i can put sleep in bpstart....
after every dg import....volume start...fsck or mount.
Thanks