autorestart 参数
在aix 5系列版本中有一个参数可以帮你在突然断电或者意外关机的情况下自动重启,这个参数就是autorestart
通过执行 lsattr -D -l sys0
可以看到该参数的默认值,在aix中这个参数的默认为false
例如:
# lsattr -D -l sys0 | grep auto
autorestart true Automatically REBOOT system after a crash Flase
通过chdev命令可以修改
# chdev -l sys0 -a autorestart=true
sys0 changed
再执行 lsattr -El sys0 | grep auto 可以看到更改后的值
# lsattr -El sys0 | grep auto
autorestart true Automatically REBOOT system after a crash True
ps:
可能你会疑问 那reboot后是调用fastboot启动呢还是这个参数起作用,其实这个不用担心,reboot操作依然是调用fastboot来启动系统的