3.5. initramfs 파일 시스템에서 다중 경로 설정
initramfs
파일 시스템에서 다중 경로를 설정할 수 있습니다. 부팅 후 initramfs
파일 시스템이 종료될 때까지 다중 경로를 원하는 장치를 사용하지 않는 경우 이를 설정할 필요가 없습니다.
사전 요구 사항
- 시스템에 DM 다중 경로를 구성했습니다.
절차
다음 명령을 실행하여 다중 경로 구성 파일을 사용하여
initramfs
파일 시스템을 다시 빌드합니다.dracut --force --add multipath
# dracut --force --add multipath
Copy to Clipboard Copied! Toggle word wrap Toggle overflow initramfs
파일 시스템에서 다중 경로를 실행하고 다중 경로 구성 파일을 변경하는 경우 변경 사항을 적용하려면initramfs
파일 시스템을 다시 빌드해야 합니다. 루트 장치에서 다중 경로를 사용하는 경우dracut
명령을 실행하면initramfs
에 multipath 모듈이 자동으로 추가됩니다.선택 사항: initramfs에서 실행 중 다중 경로가 필요하지만 다중 경로 루트 장치를 설정하지 않은 경우 다음을 실행합니다.
echo add_dracutmodules+=\"multipath\" > /etc/dracut.conf.d/multipath.conf dracut --force
# echo add_dracutmodules+=\"multipath\" > /etc/dracut.conf.d/multipath.conf # dracut --force
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
dracut
명령에는 다중 경로가 더 이상 필요하지 않은 경우에도 initramfs
에 다중 경로가 포함됩니다. 다중 경로 포함을 중지하려면 다음을 실행합니다.
rm /etc/dracut.conf.d/multipath.conf dracut --force
# rm /etc/dracut.conf.d/multipath.conf
# dracut --force