Sponsored Content
Operating Systems AIX Getting size of all the luns immediately via script Post 302550526 by samsungsamsung on Friday 26th of August 2011 03:17:51 AM
Old 08-26-2011
Getting size of all the luns immediately via script

Hi

I know that to see the size of the lun I need to give the command as "bootinfo -s hdisk*"

Can any one assist me with a script which if run will get the size of all the luns allocated to the server. The output of the script should be something like the one below :

hdisk0 size = 24GB
hdisk1 size = 32GB
hdisk2 size = 32GB
hdisk3 size = 32GB
hdisk4 size = 100GB
hdisk5 size = 32GB
hdisk6 size = 32GB
hdisk7 size = 32GB
hdisk8 size = 32GB
hdisk9 size = 54GB

The below is the lspv output :

Code:
root@cdpsdb01 [/] #lspv
hdisk0          00c2c94668ace58b                    rootvg          active
hdisk1          00c2c94668b2322c                    None
hdisk2          00c2c94668acf4ec                    pagingvg          active
hdisk3          00c2c94668abb681                    None
hdisk4          00c2c9466dd92aeb                    appvg          active
hdisk5          00c2c9466de04a2e                    datavg     active
hdisk6          00c2c9466dd8ef19                    archivevg       active
hdisk7          00c2c9466dd6de05                    None
hdisk8          00c2c9466ddf2dd9                    db2vg      active
hdisk9          00c2c9466dd7f66a                    None

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

bash script working for small size files but not for big size files.

Hi, I have one file stat. Stat file contents are as follows: for example. H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000 H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000 Now i... (1 Reply)
Discussion started by: davidpreml
1 Replies

2. UNIX for Dummies Questions & Answers

I need help immediately. Please help me

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... (4 Replies)
Discussion started by: Sheethal
4 Replies

3. 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

4. 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

5. Shell Programming and Scripting

'script' command exits immediately

I'm trying to capture the output of some commands with the 'script' utility. Normally, I would type 'script /path/to/output/file', then enter commands, then hit ctrl+D to end the 'script' capture. I'm having trouble with it on a server. Upon starting 'script', it exits immediately before I type... (6 Replies)
Discussion started by: jalburger
6 Replies

6. Shell Programming and Scripting

Script to read file size and send email only if size > 0.

Hi Experts, I have a script like $ORACLE_HOME/bin/sqlplus username/password # << ENDSQL set pagesize 0 trim on feedback off verify off echo off newp none timing off set serveroutput on set heading off spool Schemaerrtmp.txt select ' TIMESTAMP COMPUTER NAME ... (5 Replies)
Discussion started by: welldone
5 Replies

7. AIX

calculating the size of the luns using script

Hi This is the lspv output of my server : cbspsdb01 #lspv hdisk0 00c7518d2d512fd4 cdgvg active hdisk1 00c7518d2dcbc9d6 cdgvg active hdisk2 00c7518dcda9199a appvg active hdisk3... (1 Reply)
Discussion started by: samsungsamsung
1 Replies

8. Shell Programming and Scripting

to run a script immediately after restart

Hi i want to run my shell script "script.sh" whenever the system restarts. I am using Solaris 10. Please help. Thanks. (2 Replies)
Discussion started by: chinchao
2 Replies

9. Shell Programming and Scripting

Expect Script - Variables are Empty immediately after "Setting" Them?

Hello All, I have embedded some expect code inside a Bash script I'm writing, but for some reason any variable I 'set' to something is showing as empty immediately on the next line... I haven't run into this problem before so I'm not sure what it could be...? I'm guessing it has something to... (4 Replies)
Discussion started by: mrm5102
4 Replies
ifc_disable_mgmt_lun(5) 					File Formats Manual					   ifc_disable_mgmt_lun(5)

NAME
ifc_disable_mgmt_lun - select whether or not management luns are discovered in the legacy representation of mass storage devices VALUES
Failsafe Default Allowed values Enable discovery of management luns for array devices. Disable discovery of management luns for array devices. Recommended values DESCRIPTION
Management luns provide the means to access the control ports of Fibre Channel disk arrays. They are represented in both the legacy and the agile view of storage devices. The legacy representation of a management lun is typically created under a separate virtual extension bus node. The entry for a legacy management lun looks like this: On a system with a large number of storage devices connected, creation of management luns can result in an insufficient number of virtual extension buses for the legacy representation of data luns. Since the number of extension buses on a system is limited to 256, luns requiring virtual extension buses above 256 will be unusable through legacy device special files. Disabling the discovery and creation of management luns will free up virtual extension buses for use by data luns. Who Is Expected to Change This Tunable? System administrators who expect to use a large number of storage devices requiring more than 256 extension buses through legacy device special files. Restrictions on Changing Changes to this tunable take effect immediately. However, existing management luns will not be removed. When Should the Tunable Be Turned On? This tunable should be turned on when the system runs out of extension buses for configuring the legacy representation of data luns. What Are the Side Effects of Turning the Tunable Off? None. When Should the Tunable Be Turned Off? When the functionality provided by the management luns is desired. What Are the Side Effects of Turning the Tunable On? Existing management luns in the legacy representation will show up in the state. What Other Tunables Should Be Changed at the Same Time? None. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by HP. SEE ALSO
ioinit(1M), ioscan(1M), kctune(1M). Tunable Kernel Parameters ifc_disable_mgmt_lun(5)
All times are GMT -4. The time now is 06:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy