New Post has been published on ๋๋ง์ ์ธ์~!
New Post has been published on http://blog.seabow.pe.kr/?p=6763
RHEL6 ์ kdump ์์ raw ์ฌ์ฉ ํ๊ธฐ
RHEL ํ๊ฒฝ์์ kdump ๋ฅผ ์ฌ์ฉํ ๋ file system ์ด๋ path ๊ฐ ์๋ raw device ๋ฅผ ์ฌ์ฉ ํ ์๊ฐ ์๋ค.
๋ณดํต ์ด ๊ฒฝ์ฐ๋ raw ์ vmcore ๋ฅผ ๋ด์ ๋์๋ค๊ฐ ์์์ ์ธ ์ํฉ์ file ย ๋ก ์ ์ฅํ๊ธฐ ์ํจ์ผ๋ก ์๊ฐ๋๋ฉฐ ์ฌ์ฉ ๋ฐฉ๋ฒ์ ์๋์ ๊ฐ๋ค.
file : /etc/kdump.conf raw $(device name) ex) raw /dev/vda1
์ ์ค์ ์ ํ๊ณ ๊ผญ kdump ์ฉ initrd ํ์ผ์ ๊ฐฑ์ ํด ์ค์ผ ํ๋ค. ex) # rm -f /boot/initrd-xxxkdump.img # service kdump restart >> kdump ์ฉ initrd ๋ฅผ ์์ฑํจ.
๊ทธ๋ฆฌ๊ณ kdump ์๋น์ค๊ฐ ํ์ฑํ ๋์ด ์์ด์ผ ํจ. ( ๋น์ฐํ /etc/grub.conf ์ crashkernel=$(size) ๋ ์ค์ ๋์ด ์๋ค๋ ์ ์ฌ )
๊ทธ๋ผ? raw device ๋ก ์ค์ ๋์ด ์๋๋ฐ? vmcore file ๋ก๋ ์ด๋ป๊ฒ ๋ฐ์ ์ ์๋? ๋ฐฉ๋ฒ์ ๊ฐ๋จ ํ๋ค. # service kdump start ๋ฅผ ์ด์ฉํ์ฌ vmcore ๋ฅผ file ๋ก ์์ฑํ๋ ํจ์๋ฅผ ํธ์ถํด ์ฃผ๋ฉด ๋๋ค. /etc/init.d/kdump ๋ด์ฉ์ ์ฐพ์ ๋ณด๋ฉด ๋จ.
This work is licensed under a Creative Commons Attribution 4.0 International License.













