User Tools

Site Tools


aix:device_attribute

Devices attributes

To list the current attribute values for the rmt0 tape device, type the following:

lsattr -l rmt0 -E  or  lsattr -El rmt0

The system displays a message similar to the following:

mode          yes   Use DEVICE BUFFERS during writes     True
block_size    1024  BLOCK size (0=variable length)       True
extfm         yes   Use EXTENDED file marks              True
ret           no    RETENSION on tape change or reset    True
density_set_1 37    DENSITY setting #1                   True
density_set_2 36    DENSITY setting #2                   True
compress      yes   Use data COMPRESSION                 True
size_in_mb    12000 Size in Megabytes                    False
ret_error     no    RETURN error on tape change or reset True

To list the default attribute values for the rmt0 tape device, type the following:

# lsattr -l rmt0 -D

The system displays a message similar to the following:

mode          yes   Use DEVICE BUFFERS during writes     True
block_size    1024  BLOCK size (0=variable length)       True
extfm         yes   Use EXTENDED file marks              True
ret           no    RETENSION on tape change or reset    True
density_set_1 37    DENSITY setting #1                   True
density_set_2 36    DENSITY setting #2                   True
compress      yes   Use data COMPRESSION                 True
size_in_mb    12000 Size in Megabytes                    False
ret_error     no    RETURN error on tape change or reset True

To list the possible values of the login attribute for the tty0 TTY device, type the following:

# lsattr -l tty0 -a login -R

The system displays a message similar to the following:

enable
disable
share
delay

Put adapter defined at restart

You have different types of attributes:

  • False: cannot be changed
  • True: can be cahnge but sometimes a reboot is required
  • True+: can be dynamicaly changed using option -U
# lsattr -El hdisk1
PCM             PCM/friend/fcpother                                 Path Control Module              False
PR_key_value    none                                                Persistant Reserve Key Value     True+
algorithm       shortest_queue                                      Algorithm                        True+
clr_q           no                                                  Device CLEARS its Queue on error True
dist_err_pcnt   0                                                   Distributed Error Percentage     True
dist_tw_width   50                                                  Distributed Error Sample Time    True
hcheck_cmd      test_unit_rdy                                       Health Check Command             True+
hcheck_interval 60                                                  Health Check Interval            True+

Often error on FC adapter when not connected to SAN, you can disable it persistent on VIOS.

# chdev -dev fcsix -attr autoconfig=defined
# chdev -dev entx -attr autoconfig=defined  
# rmdev -dev fcsix -ucfg -recursive
# rmdev -dev entx -ucfg -recursive

On LPAR:

# chdev -l fcsix -a autoconfig=defined
# rmdev -l fcsix -R
aix/device_attribute.txt · Last modified: 2021/01/01 21:21 (external edit)