You are on page 1of 25

COMMAND TENTANG SAS

ask Command
General Help sissasraidmgr -h
Viewing the Disk Array Configuration sissasraidmgr -Ll controller name -j1
Preparing Disks for Use in SAS Disk sissasraidmgr -P -z disk list (For example,
Arrays sissasraidmgr -P -z hdisk1 hdisk2 pdisk3 pdisk4)
Changing pdisks to hdisks sissasraidmgr -U -z pdisk list
Creating a SAS Disk Array sissasraidmgr -C -r raid level -s stripe size -z pdisk
list
Deleting a SAS Disk Array sissasraidmgr -D -l controller name -d array name
Adding Disks to an Existing Disk Array sissasraidmgr -A -l array name -z pdisk list
Creating Hot Spare Disks sissasraidmgr -H -z pdisk list
Deleting Hot Spare Disks sissasraidmgr -I -z pdisk list
Displaying Rechargeable Battery sissasraidmgr -M -o0 -l adapter name
Information
Forcing a Rechargeable Battery Error sissasraidmgr -M -o1 -l adapter name
Recovering from Disk Failures sissasraidmgr -R -z pdisk list
Viewing the SAS device resource sissasraidmgr -Z –o0 –j3 -l adapter name
locations
Viewing the SAS device resource sissasraidmgr -Z –o1 –j3 -l adapter name
information
Viewing the SAS path information for sissasraidmgr -T –o1 –j3 -l device name
the attached device
Viewing the SAS path information sissasraidmgr -T –o0 –j3 -l device name
graphically for the attached device

# lscfg | grep sissas


+ sissas2 U789C.001.DQD0B43-P1-C9-T1 PCI Express x1 Auxiliary Cache Adapter
+ sissas1 U789C.001.DQD0B43-P1-C4-T1 PCI-X266 Ext Dual-x4 3Gb SAS Adapter
+ sissas0 U789C.001.DQD0B43-P1-T9 PCI-X266 Planar 3Gb SAS RAID Adapter
As for the size of the cache, don't know if it's possible to get or probe for that. I would advice to look at the man page
for sissasraidmgr for more.
For example, a cached internal SAS adapter should look something like this.
# sissasraidmgr -L -l sissas0
------------------------------------------------------------------------
Name Resource State Description Size
------------------------------------------------------------------------
sissas0 FFFFFFFF Primary PCI-X266 Planar 3Gb SAS RAID Adapter
sissas2 00000000 AWC linked Redundant cache protection for sissas0
$ lscfg -p
INSTALLED RESOURCE LIST
The following resources are installed on the machine.

$ lscfg -v
INSTALLED RESOURCE LIST WITH VPD

$ uname -a
AIX myserver 1 6 00CF18E34C00

Displays the chip type of the system. For example, PowerPC.

$ uname -p
powerpc

Displays the release number of the operating system.

$ uname -r
1

Displays the system name. For example, AIX.

$ uname -s
AIX

Displays the name of the node.

$ uname -n
myserver

Displays the system model name. For example, IBM, 9114-275.

$ uname -M
IBM,9117-MMA

Displays the operating system version.

$ uname -v
6

Displays the machine ID number of the hardware running the system.

$ uname -m
00CF12345C00

Displays the system ID number.

$ uname -u
IBM,0123F45E6

==========
About AIX
==========

_________________________________________________________________________
____
What version, release, and maintenance level of AIX is running on my system?
_________________________________________________________________________
____

Type one of the following:

oslevel -r, lslpp -h bos.rte


$ oslevel -r
6100-04

$ lslpp -h bos.rte
Fileset Level Action Status Date Time
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
bos.rte
6.1.2.0 COMMIT COMPLETE 02/17/09 10:49:17
6.1.4.0 COMMIT COMPLETE 03/30/10 09:25:43

Path: /etc/objrepos
bos.rte
6.1.2.0 COMMIT COMPLETE 02/17/09 10:49:17
6.1.4.0 COMMIT COMPLETE 03/30/10 09:25:43

__________________________________________________
What SP (Service Pack) is installed on my system?
__________________________________________________

To see which SP is currently installed on the system, run the oslevel -s command. Sample
output for an AIX 5L Version 5.3 system, with TL4, and SP2 installed

would be:

oslevel –s
5300-04-02

$ oslevel -s
6100-04-03-1009
_________________________________________
How many processors does my system have?
_________________________________________

To display the number of processors on your system, type:

lscfg | grep proc

$ lscfg | grep proc


+ proc0 Processor

____________________________________________________________________
How do I determine the amount of paging space allocated and in use?
____________________________________________________________________

Type the following:

lsps -a

$ lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum
hd6 hdisk0 rootvg 2048MB 18 yes yes lv 0

==================================
Volume groups and logical volumes
==================================

___________________________________________________________
To display the number of hard disks on your system, type:
___________________________________________________________

lspv
$ lspv
hdisk0 00cf18e34d375ab5 rootvg active
hdisk1 00cf18e3b4df2ae5 rootvg active

____________________________________________________________
How do I list information about a specific physical volume?
____________________________________________________________

To find details about hdisk1, for example, run the following command:

lspv hdisk1

$ lspv hdisk0
PHYSICAL VOLUME: hdisk0 VOLUME GROUP: rootvg
PV IDENTIFIER: 00cf18e34d375ab5 VG IDENTIFIER 00cf18e300004c000000011f817ad65a
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 512 megabyte(s) LOGICAL VOLUMES: 15
TOTAL PPs: 558 (285696 megabytes) VG DESCRIPTORS: 2
FREE PPs: 275 (140800 megabytes) HOT SPARE: no
USED PPs: 283 (144896 megabytes) MAX REQUEST: 1 megabyte
FREE DISTRIBUTION: 71..00..00..92..112
USED DISTRIBUTION: 41..112..111..19..00
MIRROR POOL: None

_____________________________________
How do I display all logical volumes
_____________________________________

$ lsvg
rootvg
_________________________________________________________________________
___________________
How do I display all logical volumes that are part of a volume group (for example, rootvg)?
_________________________________________________________________________
___________________

You can display all logical volumes that are part of rootvg by typing the following command:

lsvg -l rootvg

$ lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 4 8 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 1 2 2 open/syncd /
hd2 jfs2 7 14 2 open/syncd /usr
hd9var jfs2 2 4 2 open/syncd /var
hd3 jfs2 20 40 2 open/syncd /tmp
hd1 jfs2 1 2 2 open/syncd /home
hd10opt jfs2 2 4 2 open/syncd /opt
hd11admin jfs2 1 2 2 open/syncd /admin
livedump jfs2 1 2 2 open/syncd /var/adm/ras/livedump
fslv00 jfs2 40 80 2 open/syncd /export/nim
fslv01 jfs2 1 2 2 open/syncd /tftpboot
fslv02 jfs2 200 400 2 open/syncd /export/nim/mksysb
loglv00 jfslog 1 2 2 closed/syncd N/A

_________________________________________________
To show all the characteristics of rootvg, type:
_________________________________________________
lsvg rootvg

$ lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00cf18e300004c000000011f817ad65a
VG STATE: active PP SIZE: 512 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 1116 (571392 megabytes)
MAX LVs: 256 FREE PPs: 550 (281600 megabytes)
LVs: 15 USED PPs: 566 (289792 megabytes)
OPEN LVs: 13 QUORUM: 1 (Disabled)
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable

____________________________________
To show disks used by rootvg, type:
____________________________________

lsvg -p rootvg

$ lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 558 275 71..00..00..92..112
hdisk1 active 558 275 71..00..00..92..112

_________________________________________________
How do I list information about logical volumes?
_________________________________________________

Run the following command to display information about the logical volume hd5:
lslv hd5

$ lslv hd5
LOGICAL VOLUME: hd5 VOLUME GROUP: rootvg
LV IDENTIFIER: 00cf18e300004c000000011f817ad65a.1 PERMISSION: read/write
VG STATE: active/complete LV STATE: closed/syncd
TYPE: boot WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 512 megabyte(s)
COPIES: 2 SCHED POLICY: parallel
LPs: 1 PPs: 2
STALE PPs: 0 BB POLICY: non-relocatable
INTER-POLICY: minimum RELOCATABLE: no
INTRA-POLICY: edge UPPER BOUND: 32
MOUNT POINT: N/A LABEL: primary_bootlv
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO

_______________________________________
How do I display mounted file systems?
_______________________________________

Type the following command to display information about all currently mounted file
systems:

mount

$ mount
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ---------------
/dev/hd4 / jfs2 Mar 30 09:54 rw,log=/dev/hd8
/dev/hd2 /usr jfs2 Mar 30 09:54 rw,log=/dev/hd8
/dev/hd9var /var jfs2 Mar 30 09:54 rw,log=/dev/hd8
/dev/hd3 /tmp jfs2 Mar 30 09:55 rw,log=/dev/hd8
/dev/hd1 /home jfs2 Mar 30 09:55 rw,log=/dev/hd8
/dev/hd11admin /admin jfs2 Mar 30 09:55 rw,log=/dev/hd8
/proc /proc procfs Mar 30 09:55 rw
/dev/hd10opt /opt jfs2 Mar 30 09:55 rw,log=/dev/hd8
/dev/livedump /var/adm/ras/livedump jfs2 Mar 30 09:55 rw,log=/dev/hd8
/dev/fslv00 /export/nim jfs2 Mar 30 09:55 rw,log=/dev/hd8
/dev/fslv01 /tftpboot jfs2 Mar 30 09:55 rw,log=/dev/hd8
/dev/fslv02 /export/nim/mksysb jfs2 Mar 30 09:55 rw,log=/dev/hd8

____________________________________________________________
How do I get partition-specific information and statistics?
____________________________________________________________

The lparstat command provides a report of partition information and utilization statistics.
This command also provides a display of Hypervisor information.

$ lparstat

System configuration: type=Shared mode=Uncapped smt=On lcpu=2 mem=1024MB


psize=8 ent=0.10

%user %sys %wait %idle physc %entc lbusy vcsw phint


----- ----- ------ ------ ----- ----- ------ ----- -----
1.5 0.7 2.0 95.7 0.00 2.4 2.7 438900296 6281425

=========
Network
=========

___________________________________________
How do I get the IP address of my machine?
___________________________________________

Type one of the following:

ifconfig -a, host Fully_Qualified_Host_Name (eg; host myserver)

$ host myserver
myserver is 192.168.1.1

_______________________________________________________
How do I identify the network interfaces on my server?
_______________________________________________________

Either of the following two commands will display the network interfaces:

lsdev -Cc if, ifconfig -a

$ lsdev -Cc if
en0 Available Standard Ethernet Network Interface
en1 Available Standard Ethernet Network Interface
en2 Defined Standard Ethernet Network Interface
en3 Defined Standard Ethernet Network Interface
en4 Available Standard Ethernet Network Interface
et0 Defined IEEE 802.3 Ethernet Network Interface
et1 Defined IEEE 802.3 Ethernet Network Interface
et2 Defined IEEE 802.3 Ethernet Network Interface
et3 Defined IEEE 802.3 Ethernet Network Interface
et4 Defined IEEE 802.3 Ethernet Network Interface
lo0 Available Loopback Network Interface

_________________________________________________________________________
___________________
To get information about one specific network interface, for example, en0, run the
command:
_________________________________________________________________________
___________________

ifconfig en0
Posted by imshahmemyselfandi at 4:53 AM

Labels: AIX, Unix

Below command will to find the internal / external disks


lscfg -vl <hdiskxx>
#lscfg -vl hdisk1
hdisk1 U1.1-P1/Z1-A8 16 Bit LVD SCSI Disk Drive (36400 MB)
( LVD SCSI and SAS are internal )
#lscfg -vl hdisk16
hdisk16 U1.5-P1-I5/Q1-W50050763040041F0-L4015401C00000000 IBM FC
2107
( above is external disk is connected with FC .. external)

Syntax

sissasraidmgr -A -l hdisk# [ -z pdisk [ -f ] ]

sissasraidmgr -B -l adptr# -b ioa_opt [ -r raid_level ]

sissasraidmgr -C [ -r raid_level -s stripe_size (in KB) -z pdisk_list ]

sissasraidmgr -D -l adptr# [-d hdisk | -e serial_num ]

sissasraidmgr -E -l adptr# [-d hdisk -o cmd_opt]

sissasraidmgr -F -z pdisk_list

sissasraidmgr -G -l hdisk# -r raid_level [ -s stripe_size (in KB) -z pdisk_list ]

sissasraidmgr -H [ -z pdisk_list ]
sissasraidmgr -I [ -z pdisk_list ]

sissasraidmgr -J -z drive_list -o cmd_opt

sissasraidmgr -L -l adptr# [ -a display_opt [ -v sisarray_opt -p pdisk_opt -j jbod_opt ] ]

sissasraidmgr -L -l hdisk# [ -a display_opt [ -v sisarray_opt -p pdisk_opt ] ]

sissasraidmgr -L -l pdisk# [ -p pdisk_opt ]

sissasraidmgr -M -l adptr# -o cmd_opt

sissasraidmgr -P -z drive_list ( pdisks | hdisks )

sissasraidmgr -Q -z pdisks } [ -o cmd_opt ]

sissasraidmgr -R -z pdisk_list

sissasraidmgr -S -l adptr# [ -o cmd_opt ]

sissasraidmgr -T -l adptr# [ -o cmd_opt ]

sissasraidmgr -T -l device# [ -o cmd_opt ]

sissasraidmgr -U -z pdisk_list

sissasraidmgr -W -l adptr# -o cmd_opt

sissasraidmgr -X -l adptr# -o cmd_opt

sissasraidmgr -Y -l hdisk#

sissasraidmgr -Z -l adptr# -o cmd_opt

Description

The sissasraidmgr command is used to create, delete, and maintain RAID arrays on a
Peripheral Component Interconnect-X (PCI-X) or PCI Express (PCIe) SAS RAID controller.

Attention: See the Power Systems™ SAS RAID Controllers for AIX® reference guide and
become familiar with the storage management concepts before you run
the sissasraidmgr command.

Attention: The System Management Interface Tool (SMIT) smit sasdam fast path is the
preferred method to manage a SAS RAID controller.

Attention: Service tasks require special training and must not be performed by nonservice
personnel.

Flags
Item Description
-A
Add a device to an existing array. The performance is not optimal when
using this option because the included device does not contain parity, and
the data is not restriped.

-l lname

The logical name of the array.

-z pdisks

The drives to be included.

-f

The option to force the include operation in the situation where the disks
to be included might not be known; that is, they might be 0.

-B
Lists information about what the adapter supports.

-l lname

The logical name of the adapter.

-b ioa_support_opt
1

Displays supported RAID levels for the lname option. This is the default
option.

Displays supported stripe size for the lname and raid_level option.

Displays the minimum number of devices for the raid_level option.

Displays the maximum number of devices for the raid_level option.

Displays the minimum multiple number of devices for


the raid_level option.

Displays supported migration RAID levels for the lname option.

7
Item Description

Displays supported migration stripe size for


the lname and raid_level options.

Displays the minimum number of migration include devices for


the raid_level option.

Displays the maximum number of migration include devices for


the raid_level option.

10

Displays minimum multiple migration include devices for


the raid_level option.

11

Displays the minimum percentage of the total array capacity that is


allowed in one tier for the raid_level option.

12

Displays the minimum number of devices per tier for


the raid_level option.

-r raid_level

Shows supported stripe sizes for this RAID level.

-C
Creates a RAID array.

-r raid_level

{ 0, 5, 6, 10 (RAID 1+0), 5T2, 6T2, or 10T2}

-s stripe_size (in KB)

Specifies the stripe size. If not specified, the default (64 KB) is used.

-z pdisk_list

Lists pdisks to include in the new array. For example, 'pdisk2 pdisk3
pdisk4' must be connected to the same adapter.

-D
Deletes a RAID array.

-l lname

The logical name of the adapter.


Item Description
-d hdisk

The name of the array to be deleted.

-e serial_num

The serial number of the array to be deleted. Use this option only if the
array name is unknown.

-E
Manages HA access characteristics of a RAID array.

-l lname

The logical name of the adapter.

-d hdisk

The name of the array.

-o cmd-opt

The command options follow:

Displays the current and preferred HA access states.

Sets the preference to optimized on the lname option.

Sets the preference to nonoptimized on the lname option.

Clears preferences.

-F
Formats the pdisks for recovery (format RAID formatted disks).

-z drive_list

A list of pdisks to format.

-G
Migrates the RAID array to a new RAID level.

-l lname

The logical name of the array.

-r raid_level
Item Description

{ 0, 5, 6, 10 (RAID 1+0), 5T2, 6T2, or 10T2}

-s stripe_size (in KB)

Specifies the stripe size. If not specified, the default (64 KB) is used.

-z pdisk_list

A list of pdisks to be included in the new array, if any.

-H
Adds a hot spare device.

-z pdisk_list

A list of pdisks to be made hot spare devices.

-I
Removes a hot spare device.

-z pdisk_list

A list of pdisks to be removed from being hot spare devices.

-J
Optimizes JBOD workload.

-z drive_list

A list of JBOD hdisks to optimize.

-o cmd_opt

The command options:

Optimizes for the I/O response time.

Optimizes for the I/O operation per second.

-L
Lists advance function information.

-l lname

The device for which information is displayed. It can be a RAID adapter


(sisioa0), a RAID array (hdisk8), or a physical disk (pdisk5).

-a display_opt
0
Item Description

Displays all configuration information for the lname option. This is the
default option.

Displays only logical device information for the lname option.

Displays only physical device information for the lname option.

Displays only the physical device information for the lname option that is
not under an adapter in the secondary mode.

-v sisarray_opt
0

Displays all arrays. This is the default.

Displays only arrays that are candidates for the Delete Array option.

Displays only arrays that are candidates for the Rsync


Protection option.

Displays only arrays that are candidates for including additional devices.

Displays only ODM arrays that have no adapter information.

Displays only arrays that are candidates for migration to a new RAID
level.

-p pdisk_opt
0

Displays all pdisks. This is the default.

Displays only pdisks that are candidates for the Prepare option.

Displays only pdisks that are candidates for the Start RAID option.
Item Description
3

Displays only pdisks that are candidates for the Add Hot Spare option.

Displays only pdisks that are candidates for the Remove Hot
Spare option.

Displays only pdisks that are candidates to be added to an existing array.

Displays only pdisks that are candidates for the Rebuild option.

Displays only pdisks that are candidates for the Recovery


Format option.

Displays only ODM pdisks that have no adapter information.

Displays only pdisks that are candidates for the Unprepare option.

10

Displays only pdisks that, if prepared, would be candidates to be added


to an existing array.

11

Displays only pdisks under their main path (primary or only path).

12

Displays only pdisks that are candidates for including during the
migration of an existing array.

-j jbod_opt
0

Displays no JBOD hdisks. This is the default.

Displays all JBOD hdisks.

Displays only JBOD hdisks that are candidates for the Prepare option.
Item Description
3

Displays all JBOD devices.

-M
Maintains rechargeable battery.

-l lname

The logical name of the adapter.

-o cmd_option

The command options follow:

Displays rechargeable battery information.

Forces a rechargeable battery error.

Starts caching after concurrent battery replacement.

Queries candidates for concurrently starting batteries..

-P
Prepares devices; that is, creates array candidates physical disks.

-z drive_list

A list of either JBOD hdisks, pdisks, or both to become an array


candidate.

-Q
Sets or clears pdisk error suppression attributes.

-z pdisk_list

A list of pdisks for attributes to be applied or cleared.

-o cmd_option

A 1-byte hexadecimal string that specifies which error suppression bits to


turn on or off.

-R
Rebuilds devices; that is, reconstructs a degraded array.

-z pdisk_list
Item Description

A list of pdisks to be rebuilt.

-o cmd_opt

Command option for adapter:

Displays HA link status. This is the default.

Displays HA and AWC link status.

-S
Displays the adapter link status.

-l lname

The logical name of the adapter.

-T
Displays SAS path information for the adapter.

-l lname

The logical name of the adapter.

-o cmd_opt

The command option for the adapter follow:

Displays the summary path window. This is the default.

Displays all path information for all attached devices.

Graphically displays paths for all attached devices.

16

Displays I/O Adapter SAS addresses.

-T
Displays SAS path information for the attached devices.

-l lname

The logical name of the device (pdisk or hdisk).


Item Description
-o cmd_opt

The command option for the adapter follow:

Graphically displays path information for device.

Displays path information data for a selected device.

-U
Creates stand-alone physical disks.

-z drive_lists

A list of pdisks to be formatted to stand-alone disks.

-W
Reclaims cache storage.

-l lname

The logical name of the adapter.

-o cmd_option

The command options follow:

Queries to determine whether a reclaim operation is needed.

Queries to deternmine whether permission for unknown data loss is


needed.

Performs reclaim cache storage.

Performs reclaim cache storage, and allows unknown data loss.

-X
Changes adapter assignment.

-l lname

The logical name of the adapter.

-o cmd_option
Item Description

The command options follow:

Displays only

Preferred as primary adapter.

No preferred operating preferences.

Preferred as primary adapter. This value runs the cfgmgr command.

Displays AWC preferred role information.

10

Sets the dual initiator mode to be the default.

11

Sets the dual initiator mode to the JBOD HA single path.

256

Clears HA access states.

512

Preserves HA Access states.

1024

Enables the default behavior of the IOA cache.

2048

Disables the IOA cache.

Note: The clear, preserve, enable, and disable options can be paired
(ORed) with options 1, 2, or 3, or they can be used as stand-alone
options.

-Y
Resynchronizes array protection.

-l lname
Item Description

The logical name of the array.

-Z
Shows the SAS controller physical resources.

-l lname

The logical name of the adapter.

-o cmd_option

The command options follow:

Shows the physical location. This is the default.

Shows physical information.

Note: Enter the same options as the -L flag to filter the output.

Exit Status
This command returns the following exit values:

Item Description
0 The sissasraidmgr command completed the operation successfully.
>0 The sissasraidmgr command detected an error.
Security

Privilege Control: Only the root user and members of the system group should have execute
(x) access to this command.

Examples
1. Displays usage information:

# sissasraidmgr -h

2. Views disk array configuration on a SAS RAID controller named sissas0:

# sissasraidmgr -L -l sissas0 -j3

3. Prepares JBOD drives (hdisk3 and hdisk4) for use in a disk array:

# sissasraidmgr -P -z 'hdisk3 hdisk4'

4. Creates a RAID 0 array with a stripe size of 256 KB on the prepared disks (pdisk2 and
pdisk5):

# sissasraidmgr -C -r 0 -s 256 -z 'pdisk2 pdisk5'


5. Deletes the RAID array hdisk3 on controller sissas0:

# sissasraidmgr -D -l sissas0 -d hdisk3

6. Optimizes the RAID array hdisk1 on sissas2, which is also the primary controller:

# sissasraidmgr -E -l sissas2 -d hdisk1 -o 2

7. Optimizes hdisk2 on sissas3, which is the secondary controller:

# sissasraidmgr -E -l sissas2 -d hdisk2 -o 3

8. Show SAS physical paths to a drive pdisk3:

# sissasraidmgr -T -l pdisk3 -o 1

You might also like