- OS : CentOS7
- raw 디스크 추가
# raw /dev/raw/rawN /dev/vg/lv
- raw 디스크 해제
# raw /dev/raw/rawN 0 0
- 재부팅시 raw 디스크 세팅 유지
# vi /etc/udev/rules.d/60-raw.rules
# Enter raw device bindings here. # # An example would be: # ACTION=="add", KERNEL=="sda", RUN+="/bin/raw /dev/raw/raw1 %N" # to bind /dev/raw/raw1 to /dev/sda, or # ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/bin/raw /dev/raw/raw2 %M %m" # to bind /dev/raw/raw2 to the device with major 8, minor 1. # raw 설정 ACTION=="add", KERNEL=="xvdc", RUN+="/bin/raw /dev/raw/raw1 %N" # permission 설정 ACTION=="add", KERNEL=="raw1", OWNER=="oracle", GROUP=="oinstall", MODE=="0660" |
# udevadm control --reload-rules && udevadm trigger
[참고]https://redkite777.tistory.com/entry/%EB%A6%AC%EB%88%85%EC%8A%A4RawDevice-%EC%84%A4%EC%A0%95
https://unix.stackexchange.com/questions/39370/how-to-reload-udev-rules-without-reboot
'Linux > Linux Server' 카테고리의 다른 글
FreeRadius OTP 인증 서버 만들기 (0) | 2019.03.21 |
---|---|
백업관리 (0) | 2017.09.06 |
스케줄링 관리 (0) | 2017.09.05 |
사용자 그룹 관리 (0) | 2017.09.05 |
부팅과정 (0) | 2017.09.04 |