Professional Documents
Culture Documents
Command Tentang Sas
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 -v
INSTALLED RESOURCE LIST WITH VPD
$ uname -a
AIX myserver 1 6 00CF18E34C00
$ uname -p
powerpc
$ uname -r
1
$ uname -s
AIX
$ uname -n
myserver
$ uname -M
IBM,9117-MMA
$ uname -v
6
$ uname -m
00CF12345C00
$ uname -u
IBM,0123F45E6
==========
About AIX
==========
_________________________________________________________________________
____
What version, release, and maintenance level of AIX is running on my system?
_________________________________________________________________________
____
$ 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?
_________________________________________
____________________________________________________________________
How do I determine the amount of paging space allocated and in use?
____________________________________________________________________
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
=========
Network
=========
___________________________________________
How do I get the IP address of my machine?
___________________________________________
$ 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
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
Syntax
sissasraidmgr -F -z pdisk_list
sissasraidmgr -H [ -z pdisk_list ]
sissasraidmgr -I [ -z pdisk_list ]
sissasraidmgr -R -z pdisk_list
sissasraidmgr -U -z pdisk_list
sissasraidmgr -Y -l hdisk#
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
-z pdisks
-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
-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.
7
Item Description
10
11
12
-r raid_level
-C
Creates a RAID array.
-r raid_level
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
-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
-d hdisk
-o cmd-opt
Clears preferences.
-F
Formats the pdisks for recovery (format RAID formatted disks).
-z drive_list
-G
Migrates the RAID array to a new RAID level.
-l lname
-r raid_level
Item Description
Specifies the stripe size. If not specified, the default (64 KB) is used.
-z pdisk_list
-H
Adds a hot spare device.
-z pdisk_list
-I
Removes a hot spare device.
-z pdisk_list
-J
Optimizes JBOD workload.
-z drive_list
-o cmd_opt
-L
Lists advance function information.
-l lname
-a display_opt
0
Item Description
Displays all configuration information for the lname option. This is the
default 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 only arrays that are candidates for the Delete Array option.
Displays only arrays that are candidates for including additional devices.
Displays only arrays that are candidates for migration to a new RAID
level.
-p pdisk_opt
0
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 for the Rebuild option.
Displays only pdisks that are candidates for the Unprepare option.
10
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 only JBOD hdisks that are candidates for the Prepare option.
Item Description
3
-M
Maintains rechargeable battery.
-l lname
-o cmd_option
-P
Prepares devices; that is, creates array candidates physical disks.
-z drive_list
-Q
Sets or clears pdisk error suppression attributes.
-z pdisk_list
-o cmd_option
-R
Rebuilds devices; that is, reconstructs a degraded array.
-z pdisk_list
Item Description
-o cmd_opt
-S
Displays the adapter link status.
-l lname
-T
Displays SAS path information for the adapter.
-l lname
-o cmd_opt
16
-T
Displays SAS path information for the attached devices.
-l lname
-U
Creates stand-alone physical disks.
-z drive_lists
-W
Reclaims cache storage.
-l lname
-o cmd_option
-X
Changes adapter assignment.
-l lname
-o cmd_option
Item Description
Displays only
10
11
256
512
1024
2048
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
-Z
Shows the SAS controller physical resources.
-l lname
-o cmd_option
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
3. Prepares JBOD drives (hdisk3 and hdisk4) for use in a disk array:
4. Creates a RAID 0 array with a stripe size of 256 KB on the prepared disks (pdisk2 and
pdisk5):
6. Optimizes the RAID array hdisk1 on sissas2, which is also the primary controller:
# sissasraidmgr -T -l pdisk3 -o 1