- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Total Number of Files and Blocks inside savese...
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
04-25-2007 07:15 AM
04-25-2007 07:15 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 07:21 AM
04-25-2007 07:21 AM
Re: Total Number of Files and Blocks inside savesets
$ pipe saveset/sav/list | search sys$input Total,of,files,blocks/match=and
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 07:49 AM
04-25-2007 07:49 AM
Re: Total Number of Files and Blocks inside savesets
There's a section in the OpenVMS FAQ on sizing the remaining space on a tape. Short version of that section: "tough nut to crack."
What gets written to the tape is usually smaller than the total number of blocks written, but there are degenerate cases where the output might be larger. Most compression tools are smart enough to shut off data compression if it isn't providing benefit, but...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 07:54 AM
04-25-2007 07:54 AM
Re: Total Number of Files and Blocks inside savesets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 08:15 AM
04-25-2007 08:15 AM
Re: Total Number of Files and Blocks inside savesets
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 08:18 AM
04-25-2007 08:18 AM
Re: Total Number of Files and Blocks inside savesets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 08:28 AM
04-25-2007 08:28 AM
Re: Total Number of Files and Blocks inside savesets
Assuming you can come up with a wildcard selection for your savesets, then you can use the following (this assumes *.BCK on current default device/diretory)
$ pipe backup *.bck/save/list | search sys$input /nowin "Total of","Save set:"
Add all the files up, add all the blocks up.
Add #of files to blocks (this is for the file headers that may need to be created), but if the indexf.sys file is already extended, then the heaaders will only used space that has already been allocated. Also, you need to allow for the unused space due to cluster sizes that are greater than one. With random file size distribution, you will "waste" number_of_files*(clustersize-1)/2 blocks.
So if your cluster size is 16, and you are restoring 15000 files with a random distribution of size mod(clustersize), you would expect to waste 15000*15/2 or around 112500 blocks. If files are all 1 block in size, you will waste 15/16 of every cluster. You can eliminate this waste by initializing with a clustersize of 1, but that probably isn't what you want to do unless your files have a small average size.
Also I will recommend that you use /truncate when you restore, if the clustersize of the original disk was different than the target disk. Otherwise the files will grow to the next cluster boundry. For example: original disk clustersize 9, a one block file will allocate 9 blocks, restoring to disk with cluster size 8 without specifying /truncate the 1 block file will now use 16 blocks. If /truncate is used, the new file's allocation is based on the "used" blocks, not the "allocated" blocks, and it will use only 8 blocks.
Richard Whalen has the right idea, but had a typo in his response (left out backup).
Assuming you can come up with a wildcard selection for your savesets, then you can use the following (this assumes *.BCK on current default device/diretory)
$ pipe backup *.bck/save/list | search sys$input /nowin "Total of","Save set:"
Add all the files up, add all the blocks up.
Add #of files to blocks (this is for the file headers that may need to be created), but if the indexf.sys file is already extended, then the heaaders will only used space that has already been allocated. Also, you need to allow for the unused space due to cluster sizes that are greater than one. With random file size distribution, you will "waste" number_of_files*(clustersize-1)/2 blocks.
So if your cluster size is 16, and you are restoring 15000 files with a random distribution of size mod(clustersize), you would expect to waste 15000*15/2 or around 112500 blocks. If files are all 1 block in size, you will waste 15/16 of every cluster. You can eliminate this waste by initializing with a clustersize of 1, but that probably isn't what you want to do unless your files have a small average size.
Also I will recommend that you use /truncate when you restore, if the clustersize of the original disk was different than the target disk. Otherwise the files will grow to the next cluster boundry. For example: original disk clustersize 9, a one block file will allocate 9 blocks, restoring to disk with cluster size 8 without specifying /truncate the 1 block file will now use 16 blocks. If /truncate is used, the new file's allocation is based on the "used" blocks, not the "allocated" blocks, and it will use only 8 blocks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 08:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 08:33 AM
04-25-2007 08:33 AM
Re: Total Number of Files and Blocks inside savesets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 07:08 AM
04-26-2007 07:08 AM
Re: Total Number of Files and Blocks inside savesets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 07:50 AM
04-26-2007 07:50 AM
Re: Total Number of Files and Blocks inside savesets
from your Forum Profile:
I have assigned points to 55 of 93 responses to my questions.
Maybe you can find some time to do some assigning?
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.
Consider, that every poster took at least the trouble of posting for you!
To easily find your streams with unassigned points, click your own name somewhere.
This will bring up your profile.
Near the bottom of that page, under the caption "My Question(s)" you will find "questions or topics with unassigned points " Clicking that will give all, and only, your questions that still have unassigned postings.
If you have closed some of those streams, you must "Reopen" them to "Submit points". (After which you can "Close" again)
Do not forget to explicitly activate "Submit points", or your effort gets lost again!!
Thanks on behalf of your Forum colleagues.
PS. - nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before - please do not take offence - none is intended!
PPS. - Zero points for this.
Proost.
Have one on me.
jpe