Sponsored Content
Top Forums UNIX for Dummies Questions & Answers I need help immediately. Please help me Post 302128177 by Sheethal on Monday 23rd of July 2007 08:20:40 AM
Old 07-23-2007
To find the disk space capacity

Hi Everyone,


I am writing a script, in that i want to find out whether my disk space usage capacity extends more than 98%. If my disk space capacity extends more than 98% i want to print that the space capacity is running out of space otherwise i want to print only the capacity of the space used.

df -k | awk '($5 >= "98%") {print $6 "is running out of space " $5}'

can any one tell me whether the above statement is correct and also please correct the above statement accordingly to my requirement. i am very new to Unix and i do no how to use the if else commmand in the awk command and also i do no whether we can able to compare the value in percentage

Kindly please help me on this.

Thanks in advance.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need a Shell Program immediately

Hi Friends, I need a simple shell script(Linux..bash shell) for the below description. Can anyone help me please. I need it very urgently. That is why i cannot write it myself. Objective Create shell scripts using: · Simple interactive menus · Variables, functions Description Create a... (4 Replies)
Discussion started by: praji
4 Replies

2. AIX

UIDs being overwritten immediately

We have a problem where we delete a user and their associated UID gets dumped back in the UID pool. The if we immediately create a another (new) user, AIX reuses the last UID, the one that was just released. This is causing a problem when reports are being generated because the new users name is... (2 Replies)
Discussion started by: xsys2000
2 Replies

3. Shell Programming and Scripting

Please respond immediately

Hi ..please tell me how to modinfy an existing file in a directory, i need commands like to open edit and save n execute the file in BASH. please respond immediately (3 Replies)
Discussion started by: deepti.1104
3 Replies

4. Linux

please help immediately

how can i check if the size of my file is greater than 5MB and if it is so then how can I direct my data to another new file. the data will be in the form of SQL query (4 Replies)
Discussion started by: infyanurag
4 Replies

5. Programming

Experts !!! I Need HELP immediately..!

HI, I am getting the error : ErrCode:-2 Message:Application Initialisation function Err Params:Could not Load SO/DLL Nothing specific is coming, just the above error. Can anyone tell me how to debug this error. Thanks. (3 Replies)
Discussion started by: amol_helwatkar
3 Replies

6. Shell Programming and Scripting

To find a character immediately following a specified String

Hello, I have a UNIX file in which data is like this -- ISA*00* *00* *01*006415160 *01*137361242 ... (3 Replies)
Discussion started by: The Observer
3 Replies

7. Linux

at scheduling executes job immediately

Hi all, I am trying to schedule a one time job using at. First I do a `date` command to capture current date $ date Fri Aug 8 15:53:20 # shows current date $ at -t 16:00 today #schedule command to run at 4pm at> command1 at> <EOT> #after pressing Crtl D job 6 at 2008-08-08 15:53 and... (1 Reply)
Discussion started by: new2ss
1 Replies

8. Shell Programming and Scripting

please tell immediately

what is the script to take files from ftp to unix server and unzipped the files (1 Reply)
Discussion started by: sunilamarnadh
1 Replies

9. Solaris

Nohup immediately stops.

I try and start a short script nohup the nohup immediately stops. Here's the code #!/bin/sh rm backup.out for i in `cat /home/xxxxx/Allservers.txt` do echo "Logging onto $i" ssh -qt $i '/usr/local/bin/sudo "/src/bkupsa"' done >>backup.out Any ideas? (3 Replies)
Discussion started by: ekrause77
3 Replies
extendfs_vxfs(1M)														 extendfs_vxfs(1M)

NAME
extendfs_vxfs: extendfs - extend VxFS file system size SYNOPSIS
size] special DESCRIPTION
If the VxFS file system image created on special does not use all of the available space, increases the capacity of a VxFS file system by updating the file system structure to include the extra space. special specifies the device special file of either a logical volume or a disk partition. If special refers to a mounted file system, you must unmount special before running (see mount(1M)). The Version 5 disk layout supports file systems up to 32 terabytes. The size to which a Version 5 disk layout file system can be increased depends on the file system block size: o 1024 bytes 4,294,967,039 sectors (4 TB) o 2048 bytes 8,589,934,078 sectors (8 TB) o 4096 bytes 17,179,868,156 sectors (16 TB) o 8192 bytes 34,359,736,312 sectors (32 TB) The Version 6 disk layout supports file systems up to 256 terabytes. The size to which a Version 6 disk layout file system can be increased depends on the file system block size: o 1024 bytes 34,359,736,312 sectors (32 TB) o 2048 bytes 68,719,472,624 sectors (64 TB) o 4096 bytes 137,438,945,248 sectors (128 TB) o 8192 bytes 274,877,890,496 sectors (256 TB) The maximum file system size supported is 2 terabytes. For a file system's size to be increased to 32 terabytes or greater, the file sys- tem must be on a 64-bit kernel operating system and must reside on a VERITAS Volume Manager volume. If the file system resides on a volume set, will fail. Use the fsvoladm(1M) command to extend a multi-volume file system. When the file system size is grown with the extendfs command, the intent log size is not automatically increased. Options recognizes the following options: Specify the VxFS file system type. Query special to determine the size. The file system is not extended. Specify the number of blocks to add to the file system. If size is omitted, the maximum possible size is used. Specify verbose mode, which displays the resulting size of file system along with output of the newly sized file system. Without there is no output. Operands recognizes the following operand: special The device special file of either a logical volume or a disk partition. If special refers to a mounted file system, you must unmount special before running (see mount(1M)). EXAMPLES
This example shows how to increase the capacity of a file system created on a logical volume. SEE ALSO
extendfs(1M), lvextend(1M), mkfs(1M), mount(1M), umount(1M), fs_vxfs(4). extendfs_vxfs(1M)
All times are GMT -4. The time now is 02:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy