[solved] scritpt to check the used space of different file systems
how to write a scritpt to check the used space of different file systems and print if any file system above 50%
I used this command to get the different filesystem and their used space
df -h | grep -v Filesystem |tr -s " " | cut -d" " -f1,5
Thanks in Advance
Please try this command:
df -Ph | tr -s " " | cut -d" " -f1,5 | sed -n "s/\([5-6][0-9]%\)\|\([0-9]\{3\}%\)/&/p"
It works for me. Good luck
Tiger Zhang
.
Similar Messages
-
How to find out the used space and free space in the DB for attachments
Hi,
In CRM 5.2 web UI, we can save a transaction by saving attachments like work documents or text files.
Could someone help me find out the used space, free space, maximum capacity on the CRM DB for these attachments.
Thanks & Best Regards,
Ramesh.Hi,
check with below table
TNAPR --- Processing programs for output
and NACE Transaction code
NACE -- out types
Regards,
Madhu -
How to check the resolution of a pdf file using Acrobat 9 pro?
How to check the resolution of a pdf file using Acrobat 9 pro?
PDF files don't have one resolution, but may have none or many different resolutions, one per image. You can check the maximum/minimum resoluion with preflight in Acrobat Pro, but not in Adobe Reader.
-
how can I save a jepg file in lower case letters? I check the use lower case box in preferences but it's not happening. PSCC
Let's try a preferences reset: (Windows)
Press and hold Control - Shift - Alt immediately upon cold-starting Photoshop. If you get the keys down quickly enough - and you have to be VERY quick - it will prompt you to confirm deletion of your established preferences, which will lead to them all being set to defaults. -
Find the used space in datafile on any specific date
Hi,
We have a datafile created on 2-11-2009.
I wish to find the used space in that datafile on 13-12-2009.
From v$datafile and dba_data_files from the "BYTES" column it wld give me the current used space in the datafile.
But how to find the used space in datafile on any specific date.
Thanks.Hello,
It depends on your Oracle release, starting with Oracle 10.1, you have the View dba_hist_tpspc_space_usage which may give you an history of the space used by the Tablespaces:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_3195.htm#I1023456
You may have to pay for specific license to be allowed to access to this View which belongs to AWR (Automatic Workload Repository).
Hope this help.
Best regards,
Jean-Valentin -
How do I stop my mail from send out my e-mails with the mobile me acct instead of my default provider? I have checked the "use only this server" in my provider account.
There is no such option/setting on an iPhone to determine this. Whether you can view the attachment has more to do with your connection, WiFi or cellular, and the size of the attachment than anything else. There will be a paperclip indicating the message includes an attachment regardless if downloaded with the message or not. When connected to the cellular network, if an attachment is below a designated size the attachment will be downloaded automatically. If over a certain size, you must select the attached file icon in the body of the message to download the attachment. The size limit varies by carrier/provider.
Tell her you're gonna leave her out of the Will if she doesn't stop . -
How to reliably check the resolution for a pdf file?
Should I use preflight to reliably check the resolution for a pdf file? I have posted my frustrations on http://forums.adobe.com/thread/978098
You can create your own preflight tool to check for the dpi of embedded images.
-
How to check the Customizing setting in Different SAP CRM System
Hello Guru's
I want to know how to check the Customizing setting in Different system i.e (Sandbox,Development,Quality,Production)
I mean to say that i was to check all the 4 system are in same line in all the aspects or sink with each orther
Thanks in advance
With Regards
Sreeramhi
to synchronise all the clients in the CRM,u need to structure ur transport request,that is whenever a request has been made,the same has been transported to all the clients or not
Go to T-Code -SE09 and copy all released transport request from each client from Sandbox,Development,Quality,Production and match all request manually.
this is just a way other may be to see manually all the settings in all the clients
best regards
ashish -
10gR2 install on RHEL4, Intelx86, using 10gR2 on GFS file system.
cat ocrconfig_12971.log
Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
2005-10-13 14:57:41.376: [ OCRCONF][4142143168]ocrconfig starts...
2005-10-13 14:57:41.377: [ OCRCONF][4142143168]Upgrading OCR data
2005-10-13 14:57:41.409: [ OCROSD][4142143168]utstoragetype: /u00/oracrs/crs is on FS type 18225520. Not supported.
2005-10-13 14:57:41.410: [ OCROSD][4142143168]utopen:6'': OCR location /u00/oracrs/crs configured is not valid storage type. Return code [37].
2005-10-13 14:57:41.410: [ OCRRAW][4142143168]proprinit: Could not open raw device
2005-10-13 14:57:41.410: [ default][4142143168]a_init:7!: Backend init unsuccessful : [37
Any help on above appreciated.... it is RHEL4, Intelx86 (32bit), using 10gR2 on GFS file system.
is this supported?Hi Owen,
We have experienced the exact identical errors when installing 10g R2 on the same o/s version.
We tested a bypass of that error by clicking continue on the error window and let the install 'complete'.
We then attempted to start an existing 10.1.0.4 instance and the error libkaio.so.1 not found occurred. I then ldd oracle and discovered the /usr/libaio.so.1 was not found. It turns out we downloaded and installed the libaio_64 rpm then executed relink all. The link completed successfully and we were able to start the instance then manually upgrade it to 10.2.0.1.
It's my feeling that the lib file versions (32 vs 64 bit) play a roll in th eerrors occurring during this new install.
We are opening a TAR about the install errors regarding rmem an wmem kernel parameters and the swap space requirements documented and the associated error.
This forum by the way has a faster time to discussion than Metalink does!
Regards,
Tracy Davis
Bonneville Power Administration -
How increase external disk size used for an existing file system, Solaris10
Configuration:
Server: Sun T5220
S/O: Solaris 10 5/08 s10s_u5wos_10 SPARC
Storage: EMC AX4-5
EMC PowerPath: PowerPath Version 5.2
I have the following scenario:
In AX4-5 storage array, I created two LUNs into RAID Group 10, with Raid Type1/0:
LUN 101: 20Gb
LUN 102: 10Gb
Both LUNs were added to Storage Group (SG1) that includes two Servers (Server1 and Server2); both servers have Operating System Solaris 10 5/8 and Power Path.
The servers detect both LUNs across two paths. With Power Path were created a virtual path (emcpower0a, emcpower1a) to access to each LUNs respectively.
We have mounted two file system /home/tes1 over emcpower0a -> LUN101 and /home/tes2 over emcpower1a -> LUN102.
Filesystem size used avail capacity Mounted on
/dev/dsk/emcpower0a 20G 919M 19G 5% /home/test1
/dev/dsk/emcpower1a 10G 9G 1G 90% /home/test2
I want to increase the space in file system /home/test2, without lost the information that I have stored and using the same LUN, LUN 102. To do this I start with the following steps:
1- Create new LUN, LUN 103 with 15Gb into RAID Group 10. Result: OK, I have available space in RAID Group 10.
2- Add LUN 103 to LUN 102, using concatenation option. Result: OK. This action creates a new metaLUN with the same characteristics of LUN 102, but with new space of 25Gb.
After to do these actions, I want to know how Solaris recognize this new space. What I need to do, to increase the size of file system /home/test2 to 25 Gb. Is that possible?
I reviewed the description of each disk using format command, and the disks not have any change.
Could anyone help me? If you need more detail, please do not hesitate to contact me.
Thanks in advance.Robert, thank a lot for your know how. You helped me to clarify some doubts. To complete your answer, I will add two more details, based on my experience.
After to execute, type -> auto configure and label, the disk was created with different partitions like root, swap, usr, like this:
Volume name = < >
ascii name = <DGC-RAID10-0223 cyl 49150 alt 2 hd 32 sec 12>
pcyl = 49152
ncyl = 49150
acyl = 2
nhead = 32
nsect = 12
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 682 128.06MB (683/0/0) 262272
1 swap wu 683 - 1365 128.06MB (683/0/0) 262272
2 backup wu 0 - 49149 9.00GB (49150/0/0) 18873600
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 1366 - 49149 8.75GB (47784/0/0) 18349056
7 unassigned wm 0 0 (0/0/0) 0
This was not convenient because all information stored appear in the first slice and growfs not work if appear root or swap slice into the disk, for that reason was necesary to recreate manually every slice with partition command. The final result was this:
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 - 49149 9.00GB (49150/0/0) 18873600
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 49149 9.00GB (49150/0/0) 18873600
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
Now, execute again the label command to save the new information.
Mount file system and execute:
growfs M file_system mount_point to expand the file system to 9Gb. -
How to add more disk space into / root file system
Hi All,
Linux 2.6.18-128
can anyone please let us know how to add more disk space into "/" root file system.
i have added new hard disk with space of 20GB,
[root@rac2 shm]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 965M 767M 149M 84% /
/dev/hda7 1.9G 234M 1.6G 13% /var
/dev/hda6 2.9G 69M 2.7G 3% /tmp
/dev/hda3 7.6G 4.2G 3.0G 59% /usr
/dev/hda2 18G 12G 4.8G 71% /u01
LABLE=/ 2.0G 0 2.0G 0% /dev/shm
/dev/hdb2 8.9G 149M 8.3G 2% /vm
[root@rac2 shm]#Dude! wrote:
I would actually question whether or not more disks increase the risk of a disk failure. One disk can break as likely as one of two of more disks.
Simple stats. Buying 2 lottery tickets instead of one, gives you 2 chances to win the lottery prize. Not 1. Even though the odds of winning per ticket remains unchanged.
2 disks buy you 2 tickets in The-Drive-Failure lottery.
Back in the 90's, BT (British Telecom) had a 80+ node OPS cluster build with Pyramid MPP hardware. They had a dedicated store of scsi disks for replacing failed disks - as there were disk failure fairly often due to the number of disks. (a Pryamid MPP chassis looked like a Xmas tree with all the scsi drive LEDs, and BT had several)
In my experience - one should rather expect a drive failure sooner, than later. And have some kind of contingency plan in place to recover from the failure.
The use of symbolic links instead of striping the filesystem protects from the complete loss of the enchilada if a volume member fails, but it does not reduce the risk of loosing data.
I would rather buy a single ticket for the drive failure lottery for a root drive, than 2 tickets in this case. And using symbolic links to "offload" non-critical files to the 2nd drive means that its lottery ticket prize is not a non-bootable server due to a toasted root drive. -
[POL-3309] trying to use datapage from different file.
Getting this error trying to access both the ESB and BPEL datasources in SOA Suite 10.1.3 GA.
Any ideas how to fix?I am also getting same error message when I am trying to establish a olite connection. Moreover I got this error when I opened BPEL console :
Cannot fetch a datasource connection.
The process domain was unable to establish a connection with the datasource with the connection URL "jdbc/BPELServerDataSourceWorkflow". The exception reported is: [POL-3309] trying to use datapage from different file
Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
Please provide solution..... -
How to Create a OLAP Cube in DEV using SSAS from Raw file system backup from Production?
How to Create a OLAP Cube in DEV using SSAS from Raw file system backup from Production? I dont have a .abf file available. Two paritions in production are missing data. We were able to get back file system backup which contains the files for these two paritions.
How do I create a cube in Dev using this file system backup.
we are on SQL Server 2008R2.
Thanks,How to Create a OLAP Cube in DEV using SSAS from Raw file system backup from Production? I dont have a .abf file available. Two paritions in production are missing data. We were able to get back file system backup which contains the files for these two paritions.
How do I create a cube in Dev using this file system backup.
we are on SQL Server 2008R2.
Thanks, -
HELP!! Authorization in the same laptop with different operation systems
My BF installed Win 7 operation system on his laptop yesterday and re-authorized it when he used iTunes. However, when he finished authorization, a dialog block showing that "*Including this one, you have authorised two computers out of your available 5*" appeared; what's worse, when he connected his iPhone to the laptop, it deleted all the bought apps in the iPhone, instead of synchronizating.
I also want to install Win 7 operation system, but I'm afraid that the same thing would happen again (to my iTouch).
We're quite confused that why the authorization in the same laptop with different operation systems is counted as two times. Friends who know please tell us whether this is the case.. If not, please tell us how to deal with it as we frequently re-install operation system for quicker operation.
Message was edited by: Shiwen
Message was edited by: ShiwenIt's the *operating system* that is authorised, not the particular user profile or the hardware. Before upgrading/reinstalling deauthorise and you won't run out...
tt2 -
Checking tablespace used space, free space in ASM
Hi,
I want to find the tablespace used space, free space, total space in an ASM (Automatic Storage Management) environment. What is the query for that ?
Thankswant to find the tablespace used space, free spaceUse same script that u are used in non-asm environment.
dba_data_files
dba_free_space
total space in an ASM (Automatic Storage Management) environment.select name, type, total_mb, free_mb, required_mirror_free_mb,
usable_file_mb from v$asm_diskgroup;
Thanks
Kuljeet
Maybe you are looking for
-
Mobile account users can not log on to the snow leopard server machine?
Hi all, I've setup a network user and designated it as a mobile account. ** OS X 10.6.2 ** When the user logs out of the snow leopard server machine, home sync tries to sync the local and network home directories. It is never able to connect. The net
-
Anyone have any ideas why i can no longer see my Airport express speaker in Airtunes?
for the last couple of days i no longer can see my itunes speaker from an old Airport Express (V 6.3) 802.11g. Airport Utility 5.6 still lets me set it up, so I can see it there. but for some reaason i can no longer see that speaker selection in it
-
Bizarre permissions issue: Can't write to owned folders
Has anyone experienced this and possibly has a fix ? I used Carbon Copy Cloner to duplicate a drive, and everything seems to be OK with the new drive (all the files are there and read properly), except I cannot write to any of the drive's subdirector
-
How to show program documentation in the dynpro?
hi everyone i just wrote a short documentation for the abap programm and now i want to make a button in the menubar in my dynpro to show the documentation... how can i do this?
-
How we can decide which compensation structure we should use ?
Hi SAP-Experts . Regarding Payroll , We have to compensation structures (a.) Payscale Structure (b.) Paygrade Structure . Q1. May you Plz. tell me how we can decide which structure we should use ? How we can differentiate these structures ? Q2