HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)

s
sasmgr(1M) sasmgr(1M)
set_attr
One of the following sets of qualifiers must be specified with the
set_attr command:
lun
locate_led
This set of qualifiers is used to turn on or turn off the locate LED for the specified lun. If it
is a RAID device lun, then this command turns on or turns off the LOCATE LED for all the
physical disks that are part of the RAID volume.
raid
state
raid_vol
This set of qualifiers is used to change the state of the volume based on the value specified
by the state qualifier and the volume specified by
raid_vol.
If the
-f option is not specified,
sasmgr displays a warning message before proceeding
with the operation. Otherwise, it suppresses the warning message and continues executing
the command.
raid
raid_vol
rebuild_rate
This set of qualifiers is used to change the rebuild rate of the volume specified by
raid_vol based on the rate specified by the rebuild_rate .
If the -f option is not specified, sasmgr displays a warning message before proceeding
with the operation. Otherwise, it suppresses the warning message and continues executing
the command.
Security Restrictions
sasmgr requires either superuser privilege or DEVOPS, DACREAD, and DACWRITE privileges for RAID
configurations. See privileges(5) for more information about privileged access on systems that support
fine-grained privileges.
EXAMPLES
Display all PHY statistics of the SAS I/O card / HBA whose device file is /dev/sasd0:
sasmgr get_info -D /dev/sasd0 -q phy=all
Display all RAID volume information of the Core I/O card / HBA whose device file is dev/sasd0:
sasmgr get_info -D /dev/sasd0 -q raid
Clear statistics for a port with PHY ID 1 of the SAS I/O card / HBA whose device file is /dev/sasd0:
sasmgr clear_stat -D /dev/sasd0 -q phy_in_port=1
Forcefully issue disable request to the SAS I/O card / HBA whose device file is /dev/sasd0:
sasmgr -f disable -D /dev/sasd0
Add a RAID volume with size 34000 (MB), level 1 (RAID1), and enc_bay 1:4,1:5 to the Core I/O card / HBA
whose device file is /dev/sasd0:
sasmgr add -D /dev/sasd0 -q raid -q level=1 -q size=34000
-q enc_bay=1:4,1:5
Add a spare disk to the Core I/O card / HBA whose device file is /dev/sasd0 :
sasmgr add -D /dev/sasd0 -q raid -q spare -q enc_bay=1:4,1:5
Delete a RAID volume with volume ID 4 to the Core I/O card / HBA whose device file is /dev/sasd0 :
sasmgr delete -D /dev/sasd0 -q raid -q raid_vol=4
Delete the Core I/O card / HBA Spare on the HBA whose device file is /dev/sasd0 :
sasmgr delete -D /dev/sasd0 -q raid -q spare
Change the state to ACTIVE for the RAID volume with volume id 3.
sasmgr set_attr -D /dev/sasd0 -q raid -q raid_vol=3
-q state=ACTIVE
294 Hewlett-Packard Company 5 HP-UX 11i Version 2: December 2007 Update