HP AH226A HP 8 Internal Port SAS Controller and HP Multi-Port Internal SAS Con - Page 57

Using sasmgr: Common Command Examples, Displaying General Statistics and Information

Page 57 highlights

This command is typically intended for replacing a bad drive. This operation must not be used while there are outstanding I/O requests to the lun_dsf or to any LUNs under the new_hw_path. If the -f option is not specified, sasmgr displays a warning message before proceeding. Otherwise, it suppresses the warning message and executes the command. NOTE: This command does not allow a persistent device file or the new style hardware path to be specified with the old_dev and new_tgt_hwpath qualifiers. For persistent device files, please use the io_redirect_dsf command. See the io_redirect_dsf(1M) manpage for more information. reset set_attr Resets the controller and performs a complete re-initialization. This is a destructive operation. Some I/Os may be aborted by this command. If the -f option is not specified, sasmgr displays a warning message before continuing the command. Otherwise, it suppresses the warning message and executes the command. The following qualifiers must be specified with the set_attr command: • lun • locate_led Turns the locate LED for the specified LUN on or off. If it is a RAID device LUN, then this command turns the LOCATE LED for all the physical disks that are part of the RAID volume on or off. • raid • state • raid_vol Use this set of qualifiers 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 continuing the command. Otherwise, it suppresses the warning message and executes the command. • raid • raid_vol • rebuild_rate Use this set of qualifiers 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 continuing the command. Otherwise, it suppresses the warning message and executes the command. Using sasmgr: Common Command Examples This section contains examples of sasmgr commands which are useful when troubleshooting problems with the Host Bus Adapter. Displaying General Statistics and Information The following command will display all PHY statistics of the controller with the device file /dev/sasd0: # sasmgr get_info -D /dev/sasd0 -q phy=all Tue Dec 12 02:44:31 2006 Info for PHY ID : 0 Using sasmgr: Common Command Examples 57

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72

This command is typically intended for replacing a bad drive. This operation
must not be used while there are outstanding I/O requests to the
lun_dsf
or
to any LUNs under the
new_hw_path
. If the
-f
option is not specified,
sasmgr
displays a warning message before proceeding. Otherwise, it suppresses the
warning message and executes the command.
NOTE:
This command does not allow a persistent device file or the new style
hardware path to be specified with the
old_dev
and
new_tgt_hwpath
qualifiers. For persistent device files, please use the
io_redirect_dsf
command. See the
io_redirect_dsf(1M)
manpage for more information.
reset
Resets the controller and performs a complete re-initialization. This is a
destructive operation. Some I/Os may be aborted by this command. If the
-f
option is not specified,
sasmgr
displays a warning message before continuing
the command. Otherwise, it suppresses the warning message and executes
the command.
set_attr
The following qualifiers must be specified with the
set_attr
command:
lun
locate_led
Turns the locate LED for the specified LUN on or off. If it is a RAID device
LUN, then this command turns the LOCATE LED for all the physical disks
that are part of the RAID volume on or off.
raid
state
raid_vol
Use this set of qualifiers 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
continuing the command. Otherwise, it suppresses the warning message and
executes the command.
raid
raid_vol
rebuild_rate
Use this set of qualifiers 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 continuing the
command. Otherwise, it suppresses the warning message and executes the
command.
Using sasmgr: Common Command Examples
This section contains examples of
sasmgr
commands which are useful when troubleshooting
problems with the Host Bus Adapter.
Displaying General Statistics and Information
The following command will display all PHY statistics of the controller with the device file
/dev/sasd0:
#
sasmgr get_info -D /dev/sasd0 -q phy=all
Tue Dec 12 02:44:31 2006
Info for PHY ID
: 0
Using sasmgr: Common Command Examples
57