Sponsored Content
Operating Systems AIX Getting size of all the luns immediately via script Post 302550531 by itkamaraj on Friday 26th of August 2011 03:49:52 AM
Old 08-26-2011
Code:
 
lspv | while read diskName others; do bootinfo -s $diskName; done

 

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
sbdadm(1M)						  System Administration Commands						sbdadm(1M)

NAME
sbdadm - SCSI Block Disk command line interface SYNOPSIS
sbdadm create-lu [-s, --size size] filename sbdadm delete-lu lu_name sbdadm import-lu lu_name sbdadm list-lu lu_name sbdadm modify-lu [-s, --size size] lu_name | filename DESCRIPTION
The sbdadm command creates and manages SCSI-block-device-based logical units that are registered with the SCSI Target Mode Framework (STMF). SUB-COMMANDS The sbdadm command supports the subcommands listed below. Note that if you enter a question mark as an argument to the command (sbdadm ?), sbdadm responds with a help display. create-lu [-s, --size size] filename Create a logical unit that can be registered with the STMF. For the -s option, size is an integer followed by one of the following let- ters, to indicate a unit of size: k kilobyte m megabyte g gigabyte t terabyte p petabyte e exabyte If you do not specify size, the size defaults to the size of filename. The size specified can exceed the size of the file or device. delete-lu lu_name Deletes an existing logical unit that was created using sbdadm create-lu. This effectively unloads the logical unit from the STMF framework. Any existing data on the logical unit remains intact. import-lu lu_name Imports and loads a logical unit into the STMF that was previously created using sbdadm create-lu and was since deleted from the STMF using sbdadm delete-lu. On success, the logical unit is again made available to the STMF. filename is the filename used in the sbdadm create-lu command for this logical unit. list-lu List all logical units that were created using the sbdadm create-lu command. modify-lu [-s, --size size] lu_name | filename Modifies attributes of an logical unit created using the sbdadm create-lu command. For the -s option, size is an integer value followed by a unit specifier. The unit specifiers are as described above under create-lu. When this option is specified, the existing size of the logical unit is changed to the new size. The size specified can exceed the size of the file or device represented by lu_name. OPERANDS
sbdadm use the following operands: filename Name of an existing file or a fully qualified path to a raw block device. lu_name The 32-byte hexadecimal representation of the logical unit. EXAMPLES
Example 1 Creating a Logical Unit The following series of commands creates a 10-gigabyte logical unit. # touch /export/lun/0 # sbdadm create-lu -s 10g /export/lun/0 # sbdadm create-lu /dev/rdsk/c1t1d0s0 Example 2 Listing Logical Units The following command lists all logical units. # sbdadm list-lu Found 2 LU(s) GUID DATA SIZE SOURCE -------------------------------- ----------- ------ 6000ae4000144f21d92c47b0dd650002 10737352704 /export/lun/0 6000ae4000144f21d92c47b0de300032 134283264 /dev/rdsk/c1t1d0s0 EXIT STATUS
0 Successful completion. non-zero An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWstmfu | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
stmfadm(1M), attributes(5) SunOS 5.11 12 Jun 2008 sbdadm(1M)
All times are GMT -4. The time now is 05:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy