정보공유/Dell 제품

lustre running system - not reboot (or not shutdown)

CheekyKite 2018. 11. 6.

Lustre system을 구성하다 보면, luster drive 를 umount한 후에도 

남아 있는 luster 관련 module 때문에 시스템의 재부팅이나 종료가 되지 않아 

강제로 전원 버튼을 눌러 종료해야 하는 경우가 많은데요.

 

이 경우 lustre_rmmod 명령을 사용하면, 모든 lustre module 이 내려가면서 (remove)

이후 재부팅이나 종료가 정상적으로 진행 됩니다. 

참조링크: http://wiki.lustre.org/Starting_and_Stopping_LNet

 

아래와 같이 아예 reboot 명령을 변경하거나

shutdown_lustre 명령을 생성해 두는 것도 좋을것 같습니다. 

 


 

[root@dasandata:~]# rm /usr/sbin/reboot

[root@dasandata:~]#

[root@dasandata:~]# cat << EOF > /usr/sbin/reboot

#!/bin/bash

echo "### Lustre Umounting..."

umount -l /lustre

 

echo "### All Lustre Module Removing..."

lustre_rmmod

 

echo "### Shutdown -r now..."

shutdown -r now

EOF

[root@dasandata:~]#

 


 

[root@dasandata:~]# cat << EOF > /usr/sbin/shutdown_lustre

#!/bin/bash

echo "### Lustre Umounting..."

umount -l /lustre

 

echo "### All Lustre Module Removing..."

lustre_rmmod

 

echo "### Shutdown -h now..."

shutdown -h now

EOF

[root@dasandata:~]# 

[root@dasandata:~]# chmod u+x   /usr/sbin/shutdown_lustre

[root@dasandata:~]# 

 

 

 

댓글