|
|
HP-UX Reference > Ssasmgr(1M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEsasmgr — utility to manage HP-UX Serial Attached SCSI (SAS) Mass Storage I/O cards / HBAs SYNOPSISPath: /opt/sas/bin sasmgr [-h][-f] add -D device_file -q raid -q level=raid_level -q enc_bay=enc :bay[,enc :bay] [-q size=size] [-q rebuild_rate=rate] sasmgr [-h][-f] add -D device_file -q raid -q spare -q enc_bay=enc :bay sasmgr [-h][-f] bdr -D device_file -q lun={all | lun_dsf} sasmgr [-h] clear_stat -D device_file sasmgr [-h] clear_stat -D device_file -q all sasmgr [-h] clear_stat -D device_file -q phy={all | phy_id} sasmgr [-h] clear_stat -D device_file -q phy_in_port={all | phy_id} sasmgr [-h] clear_stat -D device_file -q target={all | sasaddr} sasmgr [-h][-f] delete -D device_file -q raid -q raid_vol={rvol_id | all} sasmgr [-h][-f] delete -D device_file -q raid -q spare sasmgr [-h][-f] disable -D device_file sasmgr [-h][-f] download -D device_file -q downloadfile=filename -q enc_bay=enc :bay sasmgr [-h][-f] download -D device_file -q downloadfile=filename -q ctrl=ctrl_device_file sasmgr [-h] enable -D device_file sasmgr [-h] get_info -D device_file sasmgr [-h] get_info -D device_file -q lun={all | lun_dsf} sasmgr [-h][-v] get_info -D device_file -q lun={all | lun_dsf} -q lun_locate sasmgr [-h] get_info -D device_file -q pci_id sasmgr [-h] get_info -D device_file -q phy={all | phy_id} sasmgr [-h] get_info -D device_file -q phy_in_port={all | phy_id} sasmgr [-h] get_info -D device_file -q raid sasmgr [-h] get_info -D device_file -q reg={all | offset} [-q reg_type={ pci_config | mmio }] sasmgr [-h] get_info -D device_file -q smp=file_name sasmgr [-h] get_info -D device_file -q smp_addr sasmgr [-h] get_info -D device_file -q target={all | sasaddr} sasmgr [-h] get_info -D device_file -q vpd sasmgr [-h] get_stat -D device_file sasmgr [-h] get_stat -D device_file -q phy={all | phy_id} sasmgr [-h] get_stat -D device_file -q phy_in_port={all | phy_id} sasmgr [-h] get_stat -D device_file -q target={all | sasaddr} sasmgr [-h][-f] replace_tgt -D device_file -q old_dev=lun_dsf -q new_tgt_hwpath=new_hw_path sasmgr [-h][-f] reset -D device_file sasmgr [-h] set_attr -D device_file -q lun=lun_dsf -q locate_led={on | off} sasmgr [-h][-f] set_attr -D device_file -q raid -q raid_vol =rvol_id -q state =vol_state sasmgr [-h][-f] set_attr -D device_file -q raid -q raid_vol =rvol_id -q rebuild_rate =rebuild_rate DESCRIPTIONsasmgr is a common diagnostic tool used for all Serial Attached SCSI (SAS) I/O cards / Host Bus Adapters (HBAs). sasmgr requires the use of a device file to indicate the interface over which the requested command needs to be performed. Optionssasmgr recognizes the following command-line options:
Commandssasmgr recognizes the following commands. A command is defined by a set of qualifiers. Qualifiers are specified with the -q option. All keywords are case-sensitive.
Security Restrictionssasmgr 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. EXAMPLESDisplay 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 :
Delete a RAID volume with volume ID 4 to the Core I/O card / HBA whose device file is /dev/sasd0 :
Delete the Core I/O card / HBA Spare on the HBA whose device file is /dev/sasd0 :
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 Change the rebuild rate to 20% for the RAID volume with volume id 3. sasmgr set_attr -D /dev/sasd0 -q raid -q raid_vol=3 -q rebuild_rate=20 |
|