Sponsored Content
Top Forums Shell Programming and Scripting Filesystems using more than 75% capacity Post 302509520 by xtatic on Thursday 31st of March 2011 02:13:50 AM
Old 03-31-2011
@bartus...it showing the following error
tc95air1(root)# ./script2
df: unknown option: P
Usage: df [-F FSType] [-abeghklntVvZ] [-o FSType-specific_options] [directory | block_device | resource]
awk: syntax error near line 1
awk: illegal statement near line 1


@michael: it's executing and givin the outputSmilie but the o/p seems to be wrongSmilie
tc95air1(root)# ./script1
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s6 9.8G 724M 9.0G 8% /unused2

but when i run df -h the following records are shown
tc95air1(root)# df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s0 20G 8.8G 11G 46% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 2.4G 2.1M 2.4G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
fd 0K 0K 0K 0% /dev/fd
swap 2.4G 424K 2.4G 1% /tmp
swap 2.4G 40K 2.4G 1% /var/run
/dev/dsk/c1t0d0s5 9.8G 106M 9.6G 2% /unused1
/dev/dsk/c1t0d0s7 16G 1011M 15G 7% /export
/dev/dsk/c1t0d0s6 9.8G 724M 9.0G 8% /unused2
/dev/dsk/c1t0d0s3 9.8G 6.3G 3.4G 65% /voice1
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
20G 8.8G 11G 46% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
20G 8.8G 11G 46% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1


the output doesn't match with the records as it's showing a file system with "8%" usage which is less than 75%Smilie.....please help me with this..
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

how to find memory capacity.

Hi, In Sun solaris o/s how can i find the memory space available,Swap space. By giving df command i can get the disc space. I want RAM space & swap space. If anybody assist me.that is great. Thanks (2 Replies)
Discussion started by: Mar1006
2 Replies

2. UNIX for Dummies Questions & Answers

How to find filesystems crossed 90% capacity

Hi experts, How do i find which are the filesystems which has crossed 90% capacity in solaris box. thanks Shaan:) (4 Replies)
Discussion started by: shaan_dmp
4 Replies

3. AIX

How to increase capacity?

Hello everybody, is a very simple question how can I increase the capacity of a disk wich is on a DS4300?, I have done the procedure on the Storage Manager but the space is the same on the AIX (5.3) , what should I do to obtain the new ammount of disk space? (16 Replies)
Discussion started by: GermanSkull
16 Replies

4. AIX

capacity planning on aix

Hi All, What do you usually use for capacity planning on AIX? Any idea will do? Thanks in advance, itik (1 Reply)
Discussion started by: itik
1 Replies

5. Solaris

tools for capacity planning

Hi All, What do you usually use for capacity planning tool on solaris 8 or later? Thanks in advance. (2 Replies)
Discussion started by: itik
2 Replies

6. Shell Programming and Scripting

Monitor capacity of directory

Good morning. I have been attempting to find a way to monitor the capacity of a directory so that when it reaches 80% or higher I can send an event. I was able to find a script that does this for the whole drive by I can not seem to figure out how to do this for just a single directory. ... (1 Reply)
Discussion started by: LRoberts
1 Replies

7. AIX

how to find out disk capacity

Hi, I would like to know how to find out disk capacity if it is assigned from the storage as a lun. as per below command , I am unable to find out disk capacity. $ bash bash-3.00$ lspv hdisk1 0001579a7fa3c086 None $ lscfg -vl hdisk1 hdisk1 ... (8 Replies)
Discussion started by: manoj.solaris
8 Replies

8. AIX

TSM capacity

Dears, The TSM storage that we have is already configured to backup some Application,directories & logs or let's say backup different path from 15 servers, I want to add more Items to be backuped by this storage, how to be confirmed if that possible or not? I mean how do we know the capacity of... (7 Replies)
Discussion started by: arm
7 Replies

9. AIX

Directories getting 100% capacity

I am new to using AIX but ive ran into issues with 100% full and then rebooting and having a socket error repeating over and over. My question is, what can I do besides just monitoring to ensure I dont run into these issues? Scripts? anything? Thanks (3 Replies)
Discussion started by: terry.berger
3 Replies

10. AIX

FS capacity

can anyone tell me how to reduce Fs capacity by using echo zero. (3 Replies)
Discussion started by: nkchand
3 Replies
volunroot(8)						      System Manager's Manual						      volunroot(8)

NAME
volunroot - Remove Logical Storage Manager hooks for rootable volumes SYNOPSIS
/usr/sbin/volunroot [-a | -A] OPTIONS
Specifies that all volumes on the system disk be converted back to UNIX disk partitions, not just the root and swap volumes, rootvol and swapvol. Forces removal of the private region unless it is the last one in the system. DESCRIPTION
The volunroot script can be used to restore the accessibility of the root, swap, and other file systems on the boot disk directly through disk partitions instead of through volume devices. The script also removes other changes that were made to enable booting of the system from the root volume, so that the system will boot with no dependency on the Logical Storage Manager. When used with no options, volunroot affects only the root and swap volumes, rootvol and swapvol. For volunroot to work properly, only one plex must exist for each of the affected volumes. This plex must be the one created by volrootmir or the original plex created when the root disk was encapsulated. This ensures that the underlying subdisks will have equivalent partitions defined for them on the disk. If these conditions are not met, the volunroot operation fails and none of the volumes are converted to disk partitions. The unwanted plexes can be removed using either voledit or volplex. SEE ALSO
volencap(8), voldiskadm(8), voledit(8), volintro(8), volplex(8), volrootmir(8) volunroot(8)
All times are GMT -4. The time now is 05:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy