시스템 시작 시 ltfs 드라이브 마운트 Mac OS X

시스템 시작 시 ltfs 드라이브 마운트 Mac OS X

Mac OS X Server 10.6.8
LTO 5 드라이브: IBM System Storage TS2250 테이프 드라이브
HBA: ATTO's ExpressSAS H680

HBA와 LTO를 Mac에 설치했고 테이프 미디어를 포맷하고 마운트할 수 있습니다. 시스템 시작 시 테이프 미디어를 마운트하고 싶습니다. LaunchAgent를 만들었습니다.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"  "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.pilotware.ltfs_mount</string>
    <key>ProgramArguments</key>
    <array>
            <string>/usr/local/bin/ltfs</string>
            <string>/mnt/ltfs</string>
            <string>-o</string>
            <string>devname=0</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>


그러나 시스템을 다시 시작할 때마다 시스템 로그에 마운트된 것으로 표시되어도 테이프 미디어가 마운트되지 않습니다.

9/19/12 3:15:32 PM  com.pilotware.ltfs_mount[321]   LTFS9015W Setting the locale to 'en_US.UTF-8'. If this is wrong, please set the LANG environment variable before starting ltfs.
9/19/12 3:15:32 PM  com.pilotware.ltfs_mount[321]   LTFS14000I LTFS starting, LTFS version 1.2.5 (201202290), log level 2
9/19/12 3:15:32 PM  com.pilotware.ltfs_mount[321]   LTFS14058I LTFS Format Specification version 2.0.0
9/19/12 3:15:32 PM  com.pilotware.ltfs_mount[321]   LTFS14063I Sync type is "time", Sync time is 300 sec
9/19/12 3:15:32 PM  com.pilotware.ltfs_mount[321]   LTFS12158I Opening a device through iokit driver (0)
9/19/12 3:15:32 PM  com.pilotware.ltfs_mount[321]   LTFS12118I Drive identification is 'ULT3580-HH5     '
9/19/12 3:15:32 PM  com.pilotware.ltfs_mount[321]   LTFS12162I Vendor ID is IBM     
9/19/12 3:15:32 PM  com.pilotware.ltfs_mount[321]   LTFS12159I Firmware revision is BBNF
9/19/12 3:15:32 PM  com.pilotware.ltfs_mount[321]   LTFS12160I Drive serial is 1068062747
9/19/12 3:15:32 PM  com.pilotware.ltfs_mount[321]   LTFS17160I Maximum device block size is 1048576
9/19/12 3:15:32 PM  com.pilotware.ltfs_mount[321]   LTFS11005I Mounting the volume
9/19/12 3:15:32 PM  com.pilotware.ltfs_mount[321]   LTFS12015I Attempting to load the medium
9/19/12 3:15:52 PM  com.pilotware.ltfs_mount[321]   LTFS11031I Volume mounted successfully


'mount'를 실행하면 마운트가 나열되지 않습니다. /usr/local/bin/ltfs /mnt/ltfs -o devname=0 명령을 수동으로 실행하면 테이프 미디어가 마운트되고, mount:
ltfs on /mnt/ltfs(osxfusefs, nodev, nosuid, synchronous, mount by pw )

명령을 bash 스크립트로 캡슐화하고 LaunchAgent가 스크립트를 실행하도록 시도했지만 아무 소용이 없었습니다. 더 많은 옵션도 추가했습니다. /usr/local/bin/ltfs /mnt/ltfs -o devname=0 -o gid=20 -o uid=501 -o work_directory=/tmp/ltfs

Mac인지 잘 모르겠습니다. OS X(launchd가 실행될 때 /private/etc/security/audit_control 및 /etc/security/audit_class가 열리는 것을 보았지만 수동으로 열 때는 그렇지 않음), ltfs(1.2.5) 또는 FUSE(IBM은 OSXFUSE 2.3.8을 사용함) .
아이러니하게도 bash 명령을 Automator 앱에 던지고 시스템 환경 설정을 통해 사용자 로그인 항목으로 실행하면 테이프 미디어가 마운트됩니다.

LaunchAgent의 권한이 정확합니다. LaunchDaemons 및 User LaunchAgents를 사용해 보았습니다. 심지어 /etc/security/audit_control을 편집하여 정책 argv를 제거하고 naflags를 제거했습니다.

이해가 안 돼요. 도움을 주시면 감사하겠습니다.

답변1

추가해야 할 사항:

<string>-f</string>

작업을 포그라운드로 실행하고 올바르게 실행하려면 FUSE용 LaunchAgent의 ProgramArguments 배열에 추가하세요.

관련 정보