Hi
A datacenter I use provides mountable nfs shares that are provided through a subnet, the only person having access to the nfs share is me.
If I do this:
mount -t nfs 192.168.53.21:/USERNAME /mnt/share/
then I get the share:
[root@hostname /mnt/share] #>ls -la total 12 drwxrwxrwx 2 nfsnobody nfsnobody 4096 Oct 9 18:04 . drwxr-xr-x 7 root root 4096 Oct 9 17:55 .. -rw-r--r-- 1 nfsnobody nfsnobody 0 Oct 9 18:01 test
I want to use this as a snapshot backup drive, so I need to have the permission on the backup the same as on the source, e.g.
rsync -avH /bin /mnt/share
Off course this fails:
rsync: chown "/mnt/share/bin/.zcat.WDISFU" failed: Operation not permitted (1)
How can I make this possible?
Jobst
On 10/22/12 6:21 PM, Jobst Schmalenbach wrote:
How can I make this possible?
nfs exports usually default to not allowing root write access. this si on the nfs server side, not the client.
Yeah, should have stated that in the original message ... I know.
I already asked the data center whether they can do the squash ... they can't. They have a deal with a supplier providing the infrastructure for the NFS system.
Jobst
On Mon, Oct 22, 2012 at 06:37:00PM -0700, John R Pierce (pierce@hogranch.com) wrote:
On 10/22/12 6:21 PM, Jobst Schmalenbach wrote:
How can I make this possible?
nfs exports usually default to not allowing root write access. this si on the nfs server side, not the client.
-- john r pierce N 37, W 122 santa cruz ca mid-left coast
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 10/22/2012 11:03 PM, Jobst Schmalenbach wrote:
I already asked the data center whether they can do the squash ... they can't. They have a deal with a supplier providing the infrastructure for the NFS system.
Create a sparse file on NFS and mount it as a loopback filesystem. Provided that the NFS isn't backed by NTFS, this should work just fine. Some output trimmed:
[root@vagabond home]# dd if=/dev/zero of=newfs bs=1 count=1
[root@vagabond home]# ls -l newfs -rw-r--r--. 1 root root 1000000000001 Oct 27 10:36 newfs
[root@vagabond home]# mkfs -t ext4 newfs mke2fs 1.42.3 (14-May-2012) newfs is not a block special device. Proceed anyway? (y,n) y
[root@vagabond home]# mount newfs /mnt/
[root@vagabond home]# df Filesystem 1K-blocks Used Available Use% /dev/loop0 961238684 204436 912206124 1% /mnt