solaris 9 flarcreate 오류.

solaris 9 flarcreate 실행 오류.

flarcreate는 시스템의 이미지를 만들 수 있는 솔라리스 명령어다.  solaris 9에서 아래와 같은 오류가 발생했다.

# cd /
# flarcreate -n backup_system -S  -x /export  /export/dump/backup_system.flar
/usr/sbin/flarcreate[684]: syntax error at line 684 : `-m' unexpected

해당 파일을 살펴보니, ksh 스크립트로 작성된 것을 확인 할 수 있었고, 오류가 난 684번 줄은, 아래와 같다.

# vi /usr/sbin/flarcreate
# Make the tempdir unreadable for others
[[ ${MKDIR} -m 700 $TEMP_DIR ]] ||

이것을 주석처리하고, 아래 처럼 “[[“, “]]”를 제거 한다.

#[[ ${MKDIR} -m 700 $TEMP_DIR ]] ||
${MKDIR} -m 700 $TEMP_DIR  ||

이제, 명령을 다시 실행하면 잘 실행된다.

# flarcreate -n backup_system -S  -x /export/dump  /export/dump/backup_system.flar
Full Flash
Checking integrity...
Integrity OK.
WARNING:  fdo: Ignoring duplicate filter entry. Choosen entry will be: /export/dump -
Running precreation scripts...
Precreation scripts done.
Creating the archive...

답글 남기기

Your email address will not be published.