12-25-2013
"+100" would be 100 extents, no? How much space does that equate to? Maybe not much in terms of space or as a percentage depending on the extent size and the disk size (both of which lsvg and lslv can tell you) . You might want to add a size in Megabytes or Gigabytes.
To send an email notification, you can parse the output of df and use mailx to send a mail when your criteria is met.
10 More Discussions You Might Find Interesting
1. HP-UX
Hi
I'm using HP-UX 11.00, the root file system is as shown below. Several time it reach 100% used, to free some space I use to reboot the system. What can I do to free some space without rebooting the machine?
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 ... (2 Replies)
Discussion started by: cgege
2 Replies
2. Solaris
Hi everybody,
I got a problem on my SUN server in Solaris 9. I'll try to explain, if somebody could help me.
I have mounted some volumes in RAID 0+1, that is stripped slices and then mirror. To be clear the result of metastat d80 is as follow :
d80: Mirror
Submirror 0: d81
State:... (2 Replies)
Discussion started by: aribault
2 Replies
3. Solaris
hi every one ,
i know how to add swap space in ufs file system.
but i m facing problem in veritas file system .
i wants to know how will i create swap or add new swap space in existing swap space .
Note: disk under veritas volume manager control .
please help me to solve this issue . (5 Replies)
Discussion started by: samy123
5 Replies
4. UNIX for Dummies Questions & Answers
dear all,
I have some problem in my file system :
df -k result :
...
/dev/md/dsk/d3 3101839 2736380 303423 91% /var
...
it occupied around 2.7 gb
but when I tried command
du -sk /var
813991 /var
so /var only have around 800Mb , Do you know why there is many difference... (6 Replies)
Discussion started by: fu4d
6 Replies
5. UNIX for Dummies Questions & Answers
Hello,
Can anybody please tell me the command to find out the filesystem or a file which is consuming larger disk space sing i want to find out the file and want to compress it
please help me out
any help would be appreciated (6 Replies)
Discussion started by: lokeshpashine
6 Replies
6. Shell Programming and Scripting
Hi guys,
I'm trying to get free space in GB of file system into parameter.
I have the following code:
> cat get_free_space_FS.ksh
#! /bin/ksh
FS=/dw/mar
FreeSpace=`df -h | grep $FS | awk '{print $4}'`
echo $FreeSpace
> ./get_free_space_FS.ksh
362G
My question is ,how can I cut in... (4 Replies)
Discussion started by: nir_s
4 Replies
7. Linux
have a VMWARE machine, I have extended it from 20GB to 30GB for Linux box.
The linux box shows this for df -hal:
Filesystem Size Used Avail Use% Mounted on
-dev-mapper-VolGroup00-LogVol00
19G 5.9G 12G 34% -
proc 0 0 0 - -proc
sysfs 0 0 0 - -sys
devpts 0 0 0 - -dev-pts
-dev-sda1 99M 13M... (1 Reply)
Discussion started by: mackman
1 Replies
8. Solaris
Hi,
The solaris filesystem /u01 shows available space as 100GB, and used space as 6 GB.
The Problem is when iam trying to install some software or copy some files in this file system /u01 Iam unable to copy or install in this file system due to lack of space.
ofcourse the software... (31 Replies)
Discussion started by: iris1
31 Replies
9. HP-UX
Hi Friends,
I want to cut space from one file system and add in another file system.
For example I have 100 gb space in /oracle/TST/oraarch
I wnat to cut 50 gb from this file system and add 50 in /oracle/TST/sapdata1.
Please hel, How I can do it.
Regards,
Bhagawati Pandey (3 Replies)
Discussion started by: BPANDEY
3 Replies
10. Solaris
Hi Experts,
I have query regarding output of df command.
$ df -k
Filesystem 1024-blocks Used Available Capacity Mounted on
rpool/ROOT/solaris-161 191987712 6004395 140577816 5% /
/devices 0 0 0 0% /devices... (3 Replies)
Discussion started by: sai_2507
3 Replies
LEARN ABOUT OSF1
lvreduce
LVREDUCE(8) System Manager's Manual LVREDUCE(8)
NAME
lvreduce - reduce the size of a logical volume
SYNOPSIS
lvreduce [-A|--autobackup {y|n}] [-d|--debug] [-h|--help] [-t|--test] [-v|--verbose] [--version] [-f|--force] [--noudevsync] {-l|--extents
[-]LogicalExtentsNumber[%{VG|LV|FREE|ORIGIN}] | [-L|--size [-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]} [-n|--nofsck] [-r|--resizefs] Logi-
calVolume{Name|Path}
DESCRIPTION
lvreduce allows you to reduce the size of a logical volume. Be careful when reducing a logical volume's size, because data in the reduced
part is lost!!!
You should therefore ensure that any filesystem on the volume is resized before running lvreduce so that the extents that are to be removed
are not in use.
Shrinking snapshot logical volumes (see lvcreate(8) for information to create snapshots) is supported as well. But to change the number of
copies in a mirrored logical volume use lvconvert(8).
Sizes will be rounded if necessary - for example, the volume size must be an exact number of extents and the size of a striped segment must
be a multiple of the number of stripes.
OPTIONS
See lvm(8) for common options.
-f, --force
Force size reduction without prompting even when it may cause data loss.
--noudevsync
Disable udev synchronisation. The process will not wait for notification from udev. It will continue irrespective of any possible
udev processing in the background. You should only use this if udev is not running or has rules that ignore the devices LVM2 cre-
ates.
-l, --extents [-]LogicalExtentsNumber[%{VG|LV|FREE|ORIGIN}]
Reduce or set the logical volume size in units of logical extents. With the - sign the value will be subtracted from the logical
volume's actual size and without it the value will be taken as an absolute size. The number can also be expressed as a percentage
of the total space in the Volume Group with the suffix %VG, relative to the existing size of the Logical Volume with the suffix %LV,
as a percentage of the remaining free space in the Volume Group with the suffix %FREE, or (for a snapshot) as a percentage of the
total space in the Origin Logical Volume with the suffix %ORIGIN. The resulting value for the substraction is rounded downward, for
the absolute size it is rounded upward.
-L, --size [-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
Reduce or set the logical volume size in units of megabytes. A size suffix of k for kilobyte, m for megabyte, g for gigabytes, t
for terabytes, p for petabytes or e for exabytes is optional. With the - sign the value will be subtracted from the logical vol-
ume's actual size and without it it will be taken as an absolute size.
-n, --nofsck
Do not perform fsck before resizing filesystem when filesystem requires it. You may need to use --force to proceed with this option.
-r, --resizefs
Resize underlying filesystem together with the logical volume using fsadm(8).
EXAMPLES
Reduce the size of logical volume lvol1 in volume group vg00 by 3 logical extents:
lvreduce -l -3 vg00/lvol1
SEE ALSO
fsadm(8), lvchange(8), lvconvert(8), lvcreate(8), lvextend(8), lvm(8), lvresize(8), vgreduce(8)
Sistina Software UK LVM TOOLS 2.02.95(2) (2012-03-06) LVREDUCE(8)