Derek - Yes the DatabVoume and NFS directories are on the sharespace.
here is the output of mount on both:
Sharespace:
/ $ mount
/dev/root on /old type cramfs (ro)
proc on /old/proc type proc (rw,nodiratime)
/dev/md0 on / type ext3 (rw,noatime)
proc on /proc type proc (rw,nodiratime)
/proc/bus/usb/ on /proc/bus/usb type usbfs (rw)
/dev/pts on /dev/pts type devpts (rw)
trusteesfs on /trustees type trusteesfs (rw)
/dev/md2 on /DataVolume type ext3 (rw,noatime)
/dev/ram0 on /mnt/ram type tmpfs (rw)
/dev/md2 on /shares/Public type ext3 (rw,noatime)
/dev/md2 on /shares/Download type ext3 (rw,noatime)
/dev/md2 on /shares/netbackup type ext3 (rw,noatime)
/dev/md2 on /shares/testnfs type ext3 (rw,noatime)
/ $
on the rsnapshot media-server.local machine:
[media-server.localdomain ~]# mount
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/VolGroup02-lv_storage on /storage type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
192.168.1.20:/DataVolume/netbackup on /mnt/netbackup type nfs (rw,soft,intr,nfsvers=3,addr=192.168.1.20)
[media-server.localdomain ~]#
On the second question, i'm not sure. I do know that some of them - like jewab and torrent - are created by the device after formatting. I created Backup, to test setting up an nfs share without using the web interface and got the same result.
as to hard linking to a windows ntfs share, i was using rsnapshot before backing up to windows machine and mounting using cifs and it worked well. i ran out of space so I bought the sharespace....i did try using cifs to mount a share on the sharespace and i can create the mount point, but i got the same cross-device link error. someone suggested that nfs was better, so i tried that.
thanks again.
On Sat, Jan 14, 2012 at 3:22 AM, Derek Simkowiak <derek < at > simkowiak.net ([email]derek < at > simkowiak.net[/email])> wrote:
(Note: Please keep list traffic on the list. Someone with the same symptoms will google this someday and want to know what happened.)
Follow-up question: you gave the output of mount on media-server.localdomain...
[media-server.localdomain etc]# mount
[...snip...]
But then you showed the ls contents of /nfs and /DataVolume. Were those directories on the WD Sharespace?
Please provide the output of "mount" on both media-server.localdomain and also on the WD Sharespace NFS device (in the same email, for easy comparison).
I want to see this so I can understand the shell output you are pasting, and also to see if the WD Sharespace uses a Windows-based filesystem. (I don't think Windows filesystems like FAT32 or NTFS can handle hardlinks.)
When you use their web interface to create an nfs share it shows up under under DataVolume and nfs as well.
Can you please explain why the ls contents of /DataVolume and /nfs were different? /DataVolume had extra stuff like jewab, _torrent_, temp, etc.
Thanks,
Derek
On 01/13/2012 06:10 PM, Charles Stanton wrote: here it is:
[media-server.localdomain etc]# mount
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/VolGroup02-lv_storage on /storage type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
192.168.1.20:/nfs/netbackup on /mnt/netbackup type nfs (rw,soft,intr,nfsvers=3,addr=192.168.1.20)
[media-server.localdomain etc]#
I am not clear on how WD Sharespace implements nfs, but it appears that the actual directory is DataVolumenetbackup. but there is also an nfs directroy which shows the nfs shares. When you use their web interface to create an nfs share it shows up under under DataVolume and nfs as well.
Here is the ls output
/ $ cd nfs
/nfs $ ls
Download Public netbackup
/nfs $ cd /DataVolume/
and
/ $ cd DataVolume
/DataVolume $ ls
Public aquota.user netbackup
Download _torrent_ jewab temp
/DataVolume $
and here is the root directory listing
/ $ ls
CacheVolume dev lost+found proto twonky
Configuration etc mnt root usr
DataVolume exports.sarma nfs sbin var
ExtendVolume jewab old shares
bin lib opt tmp
boot linuxrc proc trustees
/ $
thanks
On Fri, Jan 13, 2012 at 8:47 PM, Derek Simkowiak <derek < at > simkowiak.net ([email]derek < at > simkowiak.net[/email])> wrote:
Regarding this:
2. df -i command results (it did not allow the -i switch so just did df):
/DataVolume/netbackup $ df /nfs/netbackup
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/md2 7685865852 1805995540 5879870312 23% /DataVolume
I am confused by /nfs/netbackup (in your command) vs. /DataVolume/netbackup (your working dir) vs. /DataVolume (your mountpoint for /nfs/netbackup???) vs. /mnt/netbackup (your mountpoint in the other commands).
Can you please post the output of "mount" and then explain those four directories?
Thanks,
Derek
On 01/13/2012 03:25 PM, Charles Stanton wrote: David, Thanks so much. Here are the results.
A. From machine (media-server) that runs rsnapshot:
1. linking works. the commands created foo and bar in the target directory (/mnt/netbackup).
2. the results of the df -i command:
[media-server.localdomain netbackup]# df -i /mnt/netbackup
Filesystem Inodes IUsed IFree IUse% Mounted on
192.168.1.20:/nfs/netbackup
976060416 65490 975994926 1% /mnt/netbackup
[media-server.localdomain netbackup]#
3. Results of the stat command:
[media-server.localdomain netbackup]# stat /mnt/netbackup/daily.[01]
File: `/mnt/netbackup/daily.0'
Size: 4096 Blocks: 8 IO Block: 32768 directory
Device: 17h/23d Inode: 780107778 Links: 3
Access: (0755/drwxr-xr-x) Uid: (65534/nfsnobody) Gid: (65534/nfsnobody)
Access: [url=tel:2012-01-12%2023]2012-01-12 23[/url]:16:37.000000000 -0500
Modify: [url=tel:2012-01-12%2023]2012-01-12 23[/url]:16:37.000000000 -0500
Change: [url=tel:2012-01-12%2023]2012-01-12 23[/url]:16:37.000000000 -0500
File: `/mnt/netbackup/daily.1'
Size: 4096 Blocks: 8 IO Block: 32768 directory
Device: 17h/23d Inode: 780107885 Links: 3
Access: (0755/drwxr-xr-x) Uid: (65534/nfsnobody) Gid: (65534/nfsnobody)
Access: [url=tel:2012-01-12%2023]2012-01-12 23[/url]:16:37.000000000 -0500
Modify: [url=tel:2012-01-12%2023]2012-01-12 23[/url]:16:37.000000000 -0500
Change: [url=tel:2012-01-13%2003]2012-01-13 03[/url]:25:38.000000000 -0500
[media-server.localdomain netbackup]#
Note that the daily.1 directory has no files in it, just directories, since it gets the cross device link errors.
B. Results of the same commands run from the shell of the target machine (WD Share Space)
1. linking works. i created boo and linked to hoo'
2. df -i command results (it did not allow the -i switch so just did df):
/DataVolume/netbackup $ df /nfs/netbackup
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/md2 7685865852 1805995540 5879870312 23% /DataVolume
3. Result of stat command:
/DataVolume/netbackup $ stat /nfs/netbackup/daily.[01]
File: "/DataVolume/netbackup/daily.0"
Size: 836463 Blocks: 836463 IO Block: 4096 directory
Device: d95e3h/836463d Inode: 836463 Links: 3
Access: (0755/drwxr-xr-x) Uid: (65534/nfsnobody) Gid: (65534/nfsnobody)
Access: Thu Jan 12 23:16:37 2012
Modify: Thu Jan 12 23:16:37 2012
Change: Thu Jan 12 23:16:37 2012
File: "/DataVolume/netbackup/daily.1"
Size: 836463 Blocks: 836463 IO Block: 4096 directory
Device: d95e3h/836463d Inode: 836463 Links: 3
Access: (0755/drwxr-xr-x) Uid: (65534/nfsnobody) Gid: (65534/nfsnobody)
Access: Thu Jan 12 23:16:37 2012
Modify: Thu Jan 12 23:16:37 2012
Change: Fri Jan 13 03:25:38 2012
Really appreciate the help! Charles
On Fri, Jan 13, 2012 at 11:56 AM, David Cantrell <david < at > cantrell.org.uk ([email]david < at > cantrell.org.uk[/email])> wrote:
On Fri, Jan 13, 2012 at 08:59:55AM -0500, Charles Stanton wrote:
the intial backup with rsnapshot works fine. on the next backup i get
errors 'invalid cross-device link" errors like this "/bin/cp: cannot create
link `/mnt/netbackup/daily.1/localhost/storage/sys-files/smb.conf.sarma':
Invalid cross-device link" and then it exits with this: " /bin/cp -al
/mnt/netbackup/daily.0 /mnt/netbackup/daily.1 failed (result 256, exit
status 1). Perhaps your cp does not support -al options?"
There seem to be quite a few people asking about this error on NFS
volumes in different places on t'interweb, with no useful-looking
solutions suggested.
Please can you do this:
cd /mnt/netbackup
touch foo
ln foo bar
and let us know if it successfully links *any* files at all. If it
doesn't then stop there, because that means that the underlying
filesystem won't work with rsnapshot. If it *does* work, then show us
the results of:
df -i /mnt/netbackup
to see if the device has run out of inodes
stat /mnt/netbackup/daily.[01]
to see if they're really the same device
and then, if you can get a shell on the NFS server, all of those again
on the appropriate directories.
--
header FROM_DAVID_CANTRELL From =~ /david.cantrell/i
describe FROM_DAVID_CANTRELL Message is from David Cantrell
score FROM_DAVID_CANTRELL 15.72 # This figure from experimentation
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss