海康威视R1 开共享存储


不支持NFS,因为内核模块不完整,安装会报错

mount: /run/rpc_pipefs: unknown filesystem type 'rpc_pipefs'.

替代方案是,加samba共享用户,root脚本添加用户和配置

# 加用户
/tmp/histor_low/root/sys_user_mng.sh ADD share the.p4sswd
# 加目录
mkdir /drives/raid_a1/share
chown share: /drives/raid_a1/share

# 加配置
cat << EOF > /tmp/smb.conf.share
[BackupShare]
    path = /drives/raid_a1/share
    read only = no
    valid users = share
    browsable = yes
    writable = yes
    create mask = 0770
    directory mask = 0770
EOF

不需要reload配置

其实在 /tmp 下还有 smb.conf.externsmb.conf.nassmb.conf.static,感觉是预留了这个逻辑(没有看程序)。

这个共享我是给pve用的,为了管理方便,我在用户目录下绑定一个目录


mkdir -p /drives/raid_a1/Users/admin/pve-share/
mount --bind /drives/raid_a1/share/ /drives/raid_a1/Users/admin/pve-share/


Leave a Reply

Your email address will not be published. Required fields are marked *