아티클 관련 제품: SparklingSoDA3.0
오류 메세지 혹은 현상
- Gluster 볼륨 disk를 확인하고자 하였지만, 확인되지 않습니다.
df -h | grep gluster
원인
Gluster Daemon의 상태를 확인합니다.
systemctl status glusterd ● glusterd.service - GlusterFS, a clustered file-system server Loaded: loaded (/usr/lib/systemd/system/glusterd.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2022-12-12 00:03:24 EST; 7s ago Docs: man:glusterd(8) Main PID: 11426 (glusterd) CGroup: /system.slice/glusterd.service ├─11426 /usr/sbin/glusterd -p /var/run/glusterd.pid --log-level INFO ├─11679 /usr/sbin/glusterfsd -s 192.168.50.177 --volfile-id gluster-vol-aiops.192.168.50.177.data-aiops -p /var/run/gluster/vols/gluster-vol-aiops/192.168.50.177-data-aiops.pid -S /var/run/gluster/f81078b0a0c24ecc.s... ├─11688 /usr/sbin/glusterfsd -s 192.168.50.177 --volfile-id gluster-vol-aiops.192.168.50.177.data-aiops -p /var/run/gluster/vols/gluster-vol-aiops/192.168.50.177-data-aiops.pid -S /var/run/gluster/f81078b0a0c24ecc.s... ├─11789 /usr/sbin/glusterfsd -s 192.168.50.177 --volfile-id gluster-vol-aiops-build.192.168.50.177.data-aiops-build -p /var/run/gluster/vols/gluster-vol-aiops-build/192.168.50.177-data-aiops-build.pid -S /var/run/gl... ├─11790 /usr/sbin/glusterfsd -s 192.168.50.177 --volfile-id gluster-vol-aiops-build.192.168.50.177.data-aiops-build -p /var/run/gluster/vols/gluster-vol-aiops-build/192.168.50.177-data-aiops-build.pid -S /var/run/gl... ├─11882 /usr/sbin/glusterfsd -s 192.168.50.177 --volfile-id gluster-vol-aiops-integrate.192.168.50.177.data-aiops-integrate -p /var/run/gluster/vols/gluster-vol-aiops-integrate/192.168.50.177-data-aiops-integrate.pi... ├─11883 /usr/sbin/glusterfsd -s 192.168.50.177 --volfile-id gluster-vol-aiops-integrate.192.168.50.177.data-aiops-integrate -p /var/run/gluster/vols/gluster-vol-aiops-integrate/192.168.50.177-data-aiops-integrate.pi... ├─11975 /usr/sbin/glusterfsd -s 192.168.50.177 --volfile-id gluster-vol-devai.192.168.50.177.data-devai -p /var/run/gluster/vols/gluster-vol-devai/192.168.50.177-data-devai.pid -S /var/run/gluster/92a1dcfaf7b62bb7.s... ├─11993 /usr/sbin/glusterfsd -s 192.168.50.177 --volfile-id gluster-vol-devai.192.168.50.177.data-devai -p /var/run/gluster/vols/gluster-vol-devai/192.168.50.177-data-devai.pid -S /var/run/gluster/92a1dcfaf7b62bb7.s... ├─12005 /usr/sbin/glusterfs -s localhost --volfile-id shd/gluster-vol-aiops -p /var/run/gluster/shd/gluster-vol-aiops/gluster-vol-aiops-shd.pid -l /var/log/glusterfs/glustershd.log -S /var/run/gluster/dea5fd227f8159... └─12008 /usr/sbin/glusterfs -s localhost --volfile-id shd/gluster-vol-aiops -p /var/run/gluster/shd/gluster-vol-aiops/gluster-vol-aiops-shd.pid -l /var/log/glusterfs/glustershd.log -S /var/run/gluster/dea5fd227f8159... Dec 12 00:03:20 nh-master systemd[1]: Starting GlusterFS, a clustered file-system server... Dec 12 00:03:24 nh-master systemd[1]: Started GlusterFS, a clustered file-system server.
데몬이 켜져 있는 경우, 서버 리부팅 여부를 확인해야 합니다.
서버를 재시작 하였을 때 gluster 데몬이 running이기 전에 마운트를 시도했다면,
위와 같은 현상이 나타날 수 있습니다.
문제 해결
- 마운트를 재시도 합니다.
/etc/fstab에 gluster mount 옵션이 작성되어 있을 것입니다.gluster 볼륨이 정상적으로 마운트 되었는지 확인합니다.cat /etc/fstab 192.168.50.177:/gluster-vol-devai /data/mnt/gluster/devai glusterfs defaults,_netdev 0 0 192.168.50.177:/gluster-vol-aiops /data/mnt/gluster/aiops glusterfs defaults,_netdev 0 0 192.168.50.177:/gluster-vol-aiops-build /data/mnt/gluster/aiops-build glusterfs defaults,_netdev 0 0 192.168.50.177:/gluster-vol-aiops-integrate /data/mnt/gluster/aiops-integrate glusterfs defaults,_netdev 0 0
위 옵션을 다시 읽어올 수 있도록 아래와 같이 수행합니다.mount -a
df -h | grep gluster 192.168.50.177:/gluster-vol-devai 99G 19G 81G 20% /data/mnt/gluster/devai 192.168.50.177:/gluster-vol-aiops 99G 19G 81G 20% /data/mnt/gluster/aiops 192.168.50.177:/gluster-vol-aiops-build 99G 19G 81G 20% /data/mnt/gluster/aiops-build 192.168.50.177:/gluster-vol-aiops-integrate 99G 19G 81G 20% /data/mnt/gluster/aiops-integrate
아티클이 유용했나요?
훌륭합니다!
피드백을 제공해 주셔서 감사합니다.
도움이 되지 못해 죄송합니다!
피드백을 제공해 주셔서 감사합니다.
피드백 전송
소중한 의견을 수렴하여 아티클을 개선하도록 노력하겠습니다.