10-17-2008
vbe is right - suppose the "old" filesystem was on a 50GB disk. New system is on a 100GB disk. Comparing free space on old vs free space on new makes no sense. So what are we trying to compare?
Are you worried you will lose files? If tar doesn't have errors you lost no files. If it does your new filesystem will have problems. And you will have to redo the operation. I really do not see what you are gaining by "5%" comparsion of anything. If you really want something useful try a checksum or a one-way hash on the "before" and the "after" datafiles, ignore the directories for now... if they match precisely, you won, if not you lose and have to try again.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all
i am working on script which uses "bdf" output to create excel sheet now when i check "Total" "Used" & "Available" i found that except root everywhere
used + available != total
here is example :
part from bdf output :
filesystem-total-used-available-%used-Mounted on
... (4 Replies)
Discussion started by: zedex
4 Replies
2. Shell Programming and Scripting
I have this line in a sh script:
bdf | grep /var/opt/vgdb | tr -s " " | cut -f4,6 -d" " | awk '{print $2" "$1}' > vgdb_free_space.txt
if I run that line in the shell it works fine
but when I ran the script got this error:
add_database_files.sh: line 83: bdf: command not found
also I tried... (4 Replies)
Discussion started by: C|KiLLeR|S
4 Replies
3. Shell Programming and Scripting
Hi all,
How to:
Run a bash script, display on the screen and save all information in a file including error information.
For example:
I have a bash script called test.sh
now I want to run the test.sh and display the output on the screen and save the output including error info to a file.
... (1 Reply)
Discussion started by: Damon sine
1 Replies
4. Shell Programming and Scripting
Here is my bdf output
#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 217112 1865424 10% /
/dev/vg00/lvol1 1835008 329040 1494288 18% /stand
/dev/vg00/lvol7 10485760 7864080 2601240 75% /var
/dev/vg00/lvol8 8454144 486597 7469647 ... (5 Replies)
Discussion started by: indrajit_renu
5 Replies
5. UNIX for Dummies Questions & Answers
Dear All,
I have a question.
I have similarly named files stored in different directories and I'd like to retreive information from them remotely to perform other tasks. For example given:
Folder 5 has files S5_SK1.chr01 S5_SK1.chr02 .......
Folder 6 has files S6_SK1.chr01 ... (3 Replies)
Discussion started by: pawannoel
3 Replies
6. UNIX for Dummies Questions & Answers
Hello all, i'm stumped.... I need to list all directories with all there info and exclude the files, then vice versa. I am not sure if I need to string several ls commands together or how to even do that. I believe I need to do some variation of ls -l but need to figure out how to take out the... (5 Replies)
Discussion started by: citizencro
5 Replies
7. HP-UX
hi,
bdf command hangs but before it, it lists all the fstab content, so i cannot find the reason...
could anybody give me any clue??
thanks a lot for your attention.
regards
Pablo
i attach syslog
Jan 14 16:30:00 sv23 vmunix: hp_dlpi_wput:Received an unrecognized primitive: 101d... (7 Replies)
Discussion started by: pabloli150
7 Replies
8. Shell Programming and Scripting
hi everyone,
im stuck in here with shell :) can you help me??
i have a directory with alot files (genbank files ... all ended in .gbk ) more than 1000 for sure ... and i want to read each one of them and search for some information and if i found the right one i save in new file with new... (6 Replies)
Discussion started by: andreia
6 Replies
9. HP-UX
Hi guys, I have to make an output of several databases we've got running on our system with the command bdf. This has to be done every 3 months. I want to put it in an scriptfile and trigger it in crontab. In the output it must display the differences in diskspace between these three monts. Any... (3 Replies)
Discussion started by: djmental
3 Replies
10. Shell Programming and Scripting
I am trying to modify the "corestat v1.1" code which is in Perl.The typical output of this code is below:
Core Utilization
CoreId %Usr %Sys %Total
------ ----- ----- ------
5 4.91 0.01 4.92
6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
0 Replies
LEARN ABOUT HPUX
acctsuspend
acctsuspend(5) File Formats Manual acctsuspend(5)
NAME
acctsuspend, acctresume - suspend and resume accounting when available disk space reaches threshold
VALUES
Failsafe
Default.
Default
acctsuspend:
acctresume:
Allowed values
acctresume:
acctsuspend:
Recommended values
acctsuspend:
acctresume: (But more than acctsuspend)
DESCRIPTION
The and tunables control when accounting stops and resumes due to disk space constraints. When free disk space on the file system being
used by accounting reaches the suspension threshold, which is the percentage relative to the percentage of disk space available only to the
superuser, accounting is suspended until such time as the free disk space reaches the resumption threshold, which is the percentage rela-
tive to the percentage of disk space available only to the superuser.
Note: Since the and values are specified relative to the percentage of disk space available only to the superuser, negative values
of these parameters can make sense. For example, if the superuser has reserved 10 percent of the disk space on the file system at
file system creation time, and acctsuspend is -5 and acctresume is 0, the suspension threshold will be 5 percent of the total disk
space and the resumption threshold will be 10 percent of the total disk space.
Who Is Expected to Change This Tunable?
Anyone using accounting.
Restrictions on Changing
Changes to this tunable take effect at the next reboot.
When Should the Value of This Tunable Be Raised?
Increasing either variable should be considered when it is necessary to maintain a higher percentage of free space on the accounting
filesystem.
What Are the Side Effects of Raising the Value of This Tunable?
The higher either value is, the less accounting data may be captured. The further the values are separated, the greater the amount of
potentially lost accounting data.
When Should the Value of This Tunable Be Lowered?
If additional disk space is needed for accounting data, and it cannot be obtained by moving files off of the filesystem, then the value of
should be lowered.
What Are the Side Effects of Lowering the Value of This Tunable?
Filesystem performance (writing accounting records) decreases as the filesystem fills up. In turn, this will decrease the overall perfor-
mance of accounting processes.
What Other Tunables Should Be Changed at the Same Time?
When changing either of these tunables, both should be considered.
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
and were developed by HP.
SEE ALSO
accton(1M).
Tunable Kernel Parameters acctsuspend(5)