can i mount unit of nas with acl and xattr?

hectorsaratoga

New Member
Jul 5, 2013
1
0
1
Hi!

Samba4 require ACL and XATTR. I can install it locally because I did this:

[proxmox01]
apt-get install acl attr
tune2fs -o user_xattr,acl /dev/sda1
tune2fs -o user_xattr,acl /dev/mapper/pve-data
tune2fs -o user_xattr,acl /dev/mapper/pve-root
nano /etc/fstab
<file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext3 errors=remount-ro,acl,user_xattr 0 1
/dev/pve/data /var/lib/vz ext3 defaults 0 1
UUID=c31f3f17-7b6c-4fc4-ac5e-e82f81a8a12f /boot ext3 defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0


mount -o remount,rw /
mount

Okay, I need to do it with a unit of a nas but it does not appear in the FSTAB. How I can mount with ACL and xattr a unit of a freenas?

root@PROXMOXSERVER01:~# cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext3 errors=remount-ro,acl,user_xattr 0 1
/dev/pve/data /var/lib/vz ext3 defaults 0 1
UUID=ffb2814f-d7c1-47cf-a3c4-f66c83d9ec1c /boot ext3 defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0


root@PROXMOXSERVER01:~# cat /proc/mounts
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,relatime,size=10240k,nr_inodes=747947,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=600232k,mode=755 0 0
/dev/mapper/pve-root / ext3 rw,relatime,errors=remount-ro,user_xattr,acl,barrier=0,data=ordered 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
tmpfs /run/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=1200460k 0 0
/dev/mapper/pve-data /var/lib/vz ext3 rw,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered 0 0
/dev/sda1 /boot ext3 rw,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered 0 0
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
/dev/fuse /etc/pve fuse rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other 0 0
none /sys/kernel/config configfs rw,relatime 0 0
beancounter /proc/vz/beancounter cgroup rw,relatime,blkio,name=beancounter 0 0
container /proc/vz/container cgroup rw,relatime,freezer,devices,name=container 0 0
fairsched /proc/vz/fairsched cgroup rw,relatime,cpuacct,cpu,cpuset,name=fairsched 0 0
172.16.10.225:/mnt/Backup /mnt/pve/NAS nfs rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=172.16.10.225,mountvers=3,mountport=966,mountproto=udp,local_lock=none,addr=172.16.10.225 0 0
172.16.10.226:/mnt/PROX01 /mnt/pve/PROX01 nfs rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=172.16.10.226,mountvers=3,mountport=892,mountproto=udp,local_lock=none,addr=172.16.10.226 0 0
172.16.10.226:/mnt/PROX02 /mnt/pve/PROX02 nfs rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=172.16.10.226,mountvers=3,mountport=892,mountproto=udp,local_lock=none,addr=172.16.10.226 0 0
/var/lib/vz/private/200 /var/lib/vz/root/200 simfs rw,relatime 0 0
proc /var/lib/vz/root/200/proc proc rw,relatime 0 0
sysfs /var/lib/vz/root/200/sys sysfs rw,relatime 0 0
none /var/lib/vz/root/200/dev devtmpfs rw,nosuid,noexec,relatime,size=1048576k,nr_inodes=262144,mode=755 0 0
none /var/lib/vz/root/200/dev/pts devpts rw,nosuid,noexec,relatime,mode=600,ptmxmode=000 0 0
none /var/lib/vz/root/200/proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
none /var/lib/vz/root/200/run tmpfs rw,nosuid,noexec,relatime,size=209716k,nr_inodes=262144,mode=755 0 0
none /var/lib/vz/root/200/run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k,nr_inodes=262144 0 0
none /var/lib/vz/root/200/run/shm tmpfs rw,relatime,size=1048576k,nr_inodes=262144 0 0
none /var/lib/vz/root/200/run/user tmpfs rw,nosuid,nodev,noexec,relatime,size=102400k,nr_inodes=262144,mode=755 0 0
/mnt/pve/NAS/private/120 /var/lib/vz/root/120 simfs rw,relatime 0 0
proc /var/lib/vz/root/120/proc proc rw,relatime 0 0
sysfs /var/lib/vz/root/120/sys sysfs rw,relatime 0 0
none /var/lib/vz/root/120/dev devtmpfs rw,nosuid,noexec,relatime,size=524288k,nr_inodes=131072,mode=755 0 0
none /var/lib/vz/root/120/dev/pts devpts rw,nosuid,noexec,relatime,mode=600,ptmxmode=000 0 0
none /var/lib/vz/root/120/proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
none /var/lib/vz/root/120/sys/fs/cgroup tmpfs rw,relatime,size=4k,nr_inodes=131072,mode=755 0 0
none /var/lib/vz/root/120/run tmpfs rw,nosuid,noexec,relatime,size=104860k,nr_inodes=131072,mode=755 0 0
none /var/lib/vz/root/120/run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k,nr_inodes=131072 0 0
none /var/lib/vz/root/120/run/shm tmpfs rw,relatime,size=524288k,nr_inodes=131072 0 0
none /var/lib/vz/root/120/run/user tmpfs rw,nosuid,nodev,noexec,relatime,size=102400k,nr_inodes=131072,mode=755 0 0
root@PROXMOXSERVER01:~#


i'm sorry for my poor english of google translator
thank you very much
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!