HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Fbackup with tape Carousel
Operating System - HP-UX
1833829
Members
2114
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2001 05:06 AM
05-24-2001 05:06 AM
Fbackup with tape Carousel
I have a 8 slot tape carousel and I'd like to use fbackup in a script to use the different slots at different times useing Cron. Any ideas?
Vini, Vidi, Vici
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2001 06:32 AM
05-24-2001 06:32 AM
Re: Fbackup with tape Carousel
Hi
Below is an example chgvol script to enable the unattended use of tape
libraries and autoloaders with fbackup(1M). It is unsupported, but has
worked fine for many customers. It assumes the device file for the robotics
is at /dev/picker. This maybe changed in the script.
Save this script in the file /var/adm/fbackupfiles/chgvol, and make it
executable. You will need to make sure that one of the switches on the
fbackup command line is -y. If you are using sam to
schedule the backups then it is recommended to do the following to add the -
y:
1) cp /usr/sam/lbin/br_backup /usr/sam/lbin/br_backup.change
2) Change the cron job to call the modified br_backup.change
3) Edit the br_backup.change in the following two lines
FULL) backup_type="-0" to
FULL) backup_type="-0 -y"
and
PART) backup_type="-1" to
PART) backup_type="-1 -y"
Also you will need to use the -c option with fbackup, and specify
a configuration file(/var/adm/fbackupfiles/fbackup_config is a good
place for this file). Sam does this automatically. You will just need
to edit the existing file.
In this configuration file you should specify the following:
blocksperrecord 128
records 32
checkpointfreq 256
readerprocesses 2
maxretries 5
retrylimit 5000000
maxvoluses 100
chgvol /var/adm/fbackupfiles/chgvol
filesperfsm 200
RESOLUTION
#!/usr/bin/sh
####################
# chgvol for autoloaders
# Revision 1.0
# Date: 12/21/99
# Author: James Kirkland / jtk@atl.hp.com
# Purpose: To allow fbackup to work with autoloaders
# NOTE! This script is not supported by HP. It is provided as an example only!!
####################
# Setting up variables
TMPDIR=/var/tmp
RTDIR=/var/adm/chgvol
SES_FILE=$RTDIR/session
NUM=$TMPDIR/chg_num.tmp
PICKER=/dev/picker # device file for the robotic arm
#scripting
get_current_pid(){
NOW_PID=`ps -ef |grep fbackup |grep -v grep | cut -c 10-16`
return 0
}
is_sess_old (){
S_PID=`tail -1 $SES_FILE`
get_current_pid
if [ $NOW_PID -eq $S_PID ]
then
echo "Continuing with current session from fbackup PID $S_PID"
else
echo "This is the first tape change for fbackup PID $NOW_PID"
echo $NOW_PID > $SES_FILE
init_num
fi
return 0
}
init_num() {
echo "1" > $NUM
return 0
}
if [ -a $SES_FILE ]
then
is_sess_old
else
touch $SES_FILE
is_sess_old
fi
if [ -a $NUM ]
then
S_NUM=`cat $NUM`
else
init_num
S_NUM=`cat $NUM`
fi
S_NUM_OLD=$S_NUM
let S_NUM=S_NUM_OLD+1
if [ $S_NUM_OLD -gt 0 ]
then
echo "Moving tape from Drive 1 to Slot $S_NUM_OLD ."
mc -p $PICKER -s D1 -d S$S_NUM_OLD
#err code needed
echo "Moving tape from Slot $S_NUM to Drive 1 ."
mc -p $PICKER -s S$S_NUM -d D1
#err code needed
echo $S_NUM > $NUM
logger -t chgvol -p local0.info "Changing tape. Pulling from Slot
$S_NUM"
fi
exit 0
Below is an example chgvol script to enable the unattended use of tape
libraries and autoloaders with fbackup(1M). It is unsupported, but has
worked fine for many customers. It assumes the device file for the robotics
is at /dev/picker. This maybe changed in the script.
Save this script in the file /var/adm/fbackupfiles/chgvol, and make it
executable. You will need to make sure that one of the switches on the
fbackup command line is -y. If you are using sam to
schedule the backups then it is recommended to do the following to add the -
y:
1) cp /usr/sam/lbin/br_backup /usr/sam/lbin/br_backup.change
2) Change the cron job to call the modified br_backup.change
3) Edit the br_backup.change in the following two lines
FULL) backup_type="-0" to
FULL) backup_type="-0 -y"
and
PART) backup_type="-1" to
PART) backup_type="-1 -y"
Also you will need to use the -c option with fbackup, and specify
a configuration file(/var/adm/fbackupfiles/fbackup_config is a good
place for this file). Sam does this automatically. You will just need
to edit the existing file.
In this configuration file you should specify the following:
blocksperrecord 128
records 32
checkpointfreq 256
readerprocesses 2
maxretries 5
retrylimit 5000000
maxvoluses 100
chgvol /var/adm/fbackupfiles/chgvol
filesperfsm 200
RESOLUTION
#!/usr/bin/sh
####################
# chgvol for autoloaders
# Revision 1.0
# Date: 12/21/99
# Author: James Kirkland / jtk@atl.hp.com
# Purpose: To allow fbackup to work with autoloaders
# NOTE! This script is not supported by HP. It is provided as an example only!!
####################
# Setting up variables
TMPDIR=/var/tmp
RTDIR=/var/adm/chgvol
SES_FILE=$RTDIR/session
NUM=$TMPDIR/chg_num.tmp
PICKER=/dev/picker # device file for the robotic arm
#scripting
get_current_pid(){
NOW_PID=`ps -ef |grep fbackup |grep -v grep | cut -c 10-16`
return 0
}
is_sess_old (){
S_PID=`tail -1 $SES_FILE`
get_current_pid
if [ $NOW_PID -eq $S_PID ]
then
echo "Continuing with current session from fbackup PID $S_PID"
else
echo "This is the first tape change for fbackup PID $NOW_PID"
echo $NOW_PID > $SES_FILE
init_num
fi
return 0
}
init_num() {
echo "1" > $NUM
return 0
}
if [ -a $SES_FILE ]
then
is_sess_old
else
touch $SES_FILE
is_sess_old
fi
if [ -a $NUM ]
then
S_NUM=`cat $NUM`
else
init_num
S_NUM=`cat $NUM`
fi
S_NUM_OLD=$S_NUM
let S_NUM=S_NUM_OLD+1
if [ $S_NUM_OLD -gt 0 ]
then
echo "Moving tape from Drive 1 to Slot $S_NUM_OLD ."
mc -p $PICKER -s D1 -d S$S_NUM_OLD
#err code needed
echo "Moving tape from Slot $S_NUM to Drive 1 ."
mc -p $PICKER -s S$S_NUM -d D1
#err code needed
echo $S_NUM > $NUM
logger -t chgvol -p local0.info "Changing tape. Pulling from Slot
$S_NUM"
fi
exit 0
love computers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2001 01:55 AM
09-24-2001 01:55 AM
Re: Fbackup with tape Carousel
Hi,
I have tried the solution and it works well with fbackup. However, after I modify the solution and apply it to frecover, the following error messages logged after the second tape was loaded:
frecover(5404): Press return when the next volume is ready on /dev/rmt/1m:
frecover(5427): unable to open controlling terminal
Do anyone have some idea on that?
Thanks in advance.
Regards, Timmy.
I have tried the solution and it works well with fbackup. However, after I modify the solution and apply it to frecover, the following error messages logged after the second tape was loaded:
frecover(5404): Press return when the next volume is ready on /dev/rmt/1m:
frecover(5427): unable to open controlling terminal
Do anyone have some idea on that?
Thanks in advance.
Regards, Timmy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2001 07:48 PM
10-07-2001 07:48 PM
Re: Fbackup with tape Carousel
Hey folks,
Any idea on my problem? Please help.
Thanks in advance.
Timmy.
Any idea on my problem? Please help.
Thanks in advance.
Timmy.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP