I am trying to write a script that will allow me to do a bdf then do a test for a percentage that is 90% or greater. If the test is true then i want to send a message to myself and one other person.
Any suggestions ? ? ?
Thanks.
....svp (6 Replies)
I've recently had some space problems on one of our old HP9000 machines. I archived/moved/compressed/trashed some stuff to free up some space on one rather large (and important) logical volume.
As one would expect, when `df -b` is executed some space is shown as free:
/opt ... (2 Replies)
Hi,
I have written a funtion which taken bdf output and put's in a file.
The idea is to grep a areas which greater then 80% and echo the same on the system. However the script I have written fails with the error :-
+ awk $0 !~ /^F/
+ awk {print $5"\t" $6}
+ sed s/%//
+ 1> /tmp/bdflist}... (3 Replies)
Hi All.
Using /usr/bin/ksh on a HP-UX B.11.23 ia64 system.
Executing the following ... ` bdf -t vfxs | grep "/" `
The output comes out like (in part) ...
/dev/vg00/lvol3 516096 229448 284480 45% /
/dev/vg00/lvol1 516096 211200 302560 41% /stand
/dev/vg00/lvol8 ... (5 Replies)
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)
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)
Hello people.
First of all I googled my problem and even found answers in this forum. Unfortunatelly my problem is not solved.
When the lenght of the filesystem is too big the output of bdf wraps into another line. e.g.:
Filesystem kbytes used avail %used Mounted on... (5 Replies)
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)
Hello all,
First I have an old HP-UX box(11.21) for which I need to implement file-system utilization monitoring. I choosed to use bdf and a simple for loop. However sometimes the output of bdf is as this one(this is actually form linux but the idea is the same)
Filesystem ... (4 Replies)
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
LEARN ABOUT NETBSD
lvremove
LVREMOVE(8) System Manager's Manual LVREMOVE(8)NAME
lvremove - remove a logical volume
SYNOPSIS
lvremove [-A|--autobackup y|n] [-d|--debug] [-f|--force] [-h|-?|--help] [-t|--test] [-v|--verbose] LogicalVolumePath [LogicalVolumePath...]
DESCRIPTION
lvremove removes one or more logical volumes. Confirmation will be requested before deactivating any active logical volume prior to
removal. Logical volumes cannot be deactivated or removed while they are open (e.g. if they contain a mounted filesystem). Removing an
origin logical volume will also remove all dependent snapshots.
If the logical volume is clustered then it must be deactivated on all nodes in the cluster before it can be removed. A single lvchange com-
mand issued from one node can do this.
OPTIONS
See lvm(8) for common options.
-f, --force
Remove active logical volumes without confirmation.
EXAMPLES
Remove the active logical volume lvol1 in volume group vg00 without asking for confirmation:
lvremove -f vg00/lvol1
Remove all logical volumes in volume group vg00:
lvremove vg00
SEE ALSO lvcreate(8), lvdisplay(8), lvchange(8), lvm(8), lvs(8), lvscan(8), vgremove(8)Sistina Software UK LVM TOOLS 2.02.44-cvs (02-17-09) LVREMOVE(8)