HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: What happened if the tape becomes full?
Operating System - Tru64 Unix
1829951
Members
4129
Online
109998
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
03-13-2007 04:04 PM
03-13-2007 04:04 PM
What happened if the tape becomes full?
Hi,
Here is the script:
#!/bin/sh
# This script is for backing up the Collab Suite and uses 8 tapes
# reclaim some disk space first
find /u04/backups/CollabSuite/* -type f -name "*.gz" -mtime +5 -exec rm -rf {} \; 2>/dev/null
echo "Begin tape backup........................................"
date
/sbin/vdump -DNuf /dev/tape/tape5c /u04/backups/CollabSuite
date
# Now, we shuffle the tape
MRU_ROBOT=/dev/changer/mc1
export MRU_ROBOT
echo "Backup has been put on to the tape loaded on drive 1"
echo "Checking the drives and slots after the backup, before reshuffling..."
robot show drives
robot show slots
robot move slot 50 slot 29
robot move slot 51 slot 50
robot move slot 52 slot 51
robot move slot 53 slot 52
robot move slot 54 slot 53
robot move slot 55 slot 54
robot move slot 56 slot 55
robot unload drive 1 slot 56
robot load drive 1 slot 29
echo "Checking the drives and slots after reshuffling..."
echo "The tape used for the backup should now be loaded on slot 56"
robot show drives
robot show slots
date
echo "End of tape backup......................................"
One thing I don't understand is that in the first 3 lines of the script, it used /dev/tape/tape5c to backup the directory. What happened if the tape becomes full?
Thanks
Here is the script:
#!/bin/sh
# This script is for backing up the Collab Suite and uses 8 tapes
# reclaim some disk space first
find /u04/backups/CollabSuite/* -type f -name "*.gz" -mtime +5 -exec rm -rf {} \; 2>/dev/null
echo "Begin tape backup........................................"
date
/sbin/vdump -DNuf /dev/tape/tape5c /u04/backups/CollabSuite
date
# Now, we shuffle the tape
MRU_ROBOT=/dev/changer/mc1
export MRU_ROBOT
echo "Backup has been put on to the tape loaded on drive 1"
echo "Checking the drives and slots after the backup, before reshuffling..."
robot show drives
robot show slots
robot move slot 50 slot 29
robot move slot 51 slot 50
robot move slot 52 slot 51
robot move slot 53 slot 52
robot move slot 54 slot 53
robot move slot 55 slot 54
robot move slot 56 slot 55
robot unload drive 1 slot 56
robot load drive 1 slot 29
echo "Checking the drives and slots after reshuffling..."
echo "The tape used for the backup should now be loaded on slot 56"
robot show drives
robot show slots
date
echo "End of tape backup......................................"
One thing I don't understand is that in the first 3 lines of the script, it used /dev/tape/tape5c to backup the directory. What happened if the tape becomes full?
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2007 09:02 PM
03-13-2007 09:02 PM
Re: What happened if the tape becomes full?
The vdump command will prompt the user running the script to change the tape.
It doesn't look as though anything will automatically change the tape for you, which I'm guessing is what you want to happen...
Cheers,
Rob
It doesn't look as though anything will automatically change the tape for you, which I'm guessing is what you want to happen...
Cheers,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2007 08:16 AM
03-14-2007 08:16 AM
Re: What happened if the tape becomes full?
This is a simple backup script, and vdump won't be able to handle a tape full, you must manually, or through another script, load the tape once it becomes full and you are prompted to change the tape.
What is script does is just rotate the tapes after the backup.
What is script does is just rotate the tapes after the backup.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2007 10:11 PM
03-14-2007 10:11 PM
Re: What happened if the tape becomes full?
This script is written, is to specifically write to one tape only. They make sure of this by rotating the current backup tape into slot 29. I assume that slot 30 is always empty. If you're worried about tape overruns, then leave some spare backup tapes in slots 30 & 31. Now if the backup runs beyond a single tape then the tape library mechanism will automagically move to the next tape slot in the library. This tape will then be used to continue the backup, and so on. You need to be carefull to ensure that only tapes that you happy to be overwritten are available in sequential slots follwing slot 29. Also you'll have to be certain that you check the logs each day to ensure you know when a tape overrun has occured & label up the spare tapes appropriately.
Regards
Brendan
Regards
Brendan
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