[gentoo-user] Re: Rsync backup problem2
Paul <[EMAIL PROTECTED]> writes: > All files copy with no errors but symlinks always fail with the message: > symlink "/mnt/network/usr/lib/libgstinterfaces-0.8.so.0" -> > "libgstinterfaces-0.8.so.0.1.0" failed: Operation not supported > > I am wondering if this is a permissions problem. > My network usb server will not let me have a user called root so I have set > user paul with the 'can do anything' previlege. > The mount and rsync commands are using user root What file systems are involved? You get a similar message writing to NSFS or fat since unix like permisions are not supported there. -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: Rsync backup problem2
Paul Stear wrote: > I am mounting the network usb drive using cifs I'm not quite sure, but I think cifs doesn't support symlinks. -- Remy Remove underscore and suffix in reply address for a timely response. -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: Rsync backup problem2
Paul Stear <[EMAIL PROTECTED]> writes: > On Thursday 09 Mar 2006 15:36, Harry Putnam wrote: >> Paul <[EMAIL PROTECTED]> writes: >> > All files copy with no errors but symlinks always fail with the message: >> > symlink "/mnt/network/usr/lib/libgstinterfaces-0.8.so.0" -> >> > "libgstinterfaces-0.8.so.0.1.0" failed: Operation not supported >> > I am wondering if this is a permissions problem. >> > My network usb server will not let me have a user called root so I have >> > set user paul with the 'can do anything' previlege. >> > The mount and rsync commands are using user root The receiving fs does not support symlinks .. not the comments further along. [...] > I am mounting the network usb drive using cifs > The network storage unit is a LINKSYS Network Storage Link for USB 2.0 Disk > Drives. I don't know what file system is used but the discs had to be > formatted by the linksys setup program. I have just looked at some files on > the backup disc and the owner and permissions seem to be intact. Those would be fat32 or NSFS almost certainly I'd think. About permissions...: It may not be so easy to tell.. here is what a ls -l on a NSFS (winXP) mounted from gentoo looks like: -rwxrwSrwt 1 root root258 Oct 28 22:11 cdiag.txt cdiag.txt is a simple text file. I don't get an error here but when next mounted the permission I set with chmod have disappeared and -rwxrwSrwt is back Neither NSFS or fat32 support unix like permissions... not sure why I get no error maybe cifs mount suppresses them. About the symlink issue notice the similar output I get when attempting to rsync symlinks to an NSFS file system: Note too that mounted winXP fs does not support symlinks in unix fashion. Nor does it support unix like permissisons. Yours: >> > All files copy with no errors but symlinks always fail with the message: >> > symlink "/mnt/network/usr/lib/libgstinterfaces-0.8.so.0" -> >> > "libgstinterfaces-0.8.so.0.1.0" failed: Operation not supported Mine: ls -l test/ (wrapped for mail.. (these are synlinks)): lrwxrwxrwx 1 root root 38 Mar 9 11:58 db.192.168.1 -> /cvsb/reader/var/bind/pri/db.192.168.1 lrwxrwxrwx 1 root root 38 Mar 9 11:58 db.local.lan -> /cvsb/reader/var/bind/pri/db.local.lan Rsyncing from gentoo box to winXP: rsync -avv ./test/ /mnt/harvey-c/test/ rsync: symlink "/mnt/harvey-c/test/db.127.0.0" -> "/cvsb/reader/var/bind/pri/db.127.0.0" failed: Operation not supported (95) So that is the source of that problem. There are various ways to handle this investigate the different symlink flags in man rsync. One way is to have rsync copy the actual file the symlink is pointing too. > This is the error when copying the Mail directory > mkstemp > "/mnt/network/home/paul/Mail/Gimp/cur/.1133608028.9158.nxwHc:2,S.CDg1dQ" > failed: Not a directory This one is more insteresting You might change your command line to include another -v and an STDERR outlet to file like this: rsync -Cavv --delete --progress --exclude '*tmp*' --exclude '*Trash*' /usr /mnt/network 2>er.log That will kind of help see the errors seperated from general output. Inspect both tty output and contents of file er.log I kind of doubt if the extra -v will show much more about this error. It is a puzzler to me too. -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: Rsync backup problem2
Remy Blank <[EMAIL PROTECTED]> writes: > Paul Stear wrote: >> I am mounting the network usb drive using cifs > > I'm not quite sure, but I think cifs doesn't support symlinks. It can be done if the winbox has SFU (Services for Unix) installed I've heard, but really isn't the problem that the receiving fs does not support them? note or anyone interested: (Services for Unix is a free package from MS). -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: Rsync backup problem2
Harry Putnam <[EMAIL PROTECTED]> writes: Typo alert! > The receiving fs does not support symlinks .. not the comments ^^^ note -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: Rsync backup problem2
Paul Stear <[EMAIL PROTECTED]> writes: > Harry, > This problem has nothing to do with windows, in fact my XP machine isn't even > switched on. You say the fs was created by the the router and that you don't know what the fs is. Yet you also say it has nothing to do with windows. Your error output indicates it is almost certainly a windows based fs. Can you post the output of fdisk -l /dev/YourUSBdevice (minus the last number) (You'll need to su to root for this) You will need to plug the device directly into the gentoo box and figure out which sdX device it is then: fdisk -l /dev/sdX > 1. If I copy the actual file and in the future need to restore my > system from this full backup, what will be the implication of having > perhaps multiple copies of some files? 2. How do other gentoo'ers > achieve backup onto a windows machine? There are other gotchas that are even worse using windows based receiver fs. Some kind of file modification date snafu can cause massive re rsyncing of everything in the backup. It happend to me quite a while back so I've forgotten the details. You need to reformat the usb disks so all these problems disappear. > I will change the command line to include another -v and an STDERR to see if > this helps with the mail problem. I have noticed that some messages get > copied - in the case of one of my mail folders I have951 messages but only 15 > are in the backup, some folders are completely empty. > > I am a little confused if cifs does or does not support symlinks. Have you read man mount.cifs? It tells you there. > As a last resort is there any other way for me to to achieve a complete copy > of my gentoo system on this network usb storage link? Plug the USB devices into you gentoo box usb ports then: Reformat it to ext3 or some other linux friendly fs. Use fdisk or cfdisk to set up any partitions you might want use mkfs.ext3 or mfks.reiserfs (or some other favored fs) while device is umounted. Understand that all data will be lost during this format. -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: Rsync backup problem2
Paul Stear <[EMAIL PROTECTED]> writes: >> > Windows identifies the Network Storage Link as a windows NT 4.9 server >> >> > I am mounting the network usb drive using cifs >> > The network storage unit is a LINKSYS Network Storage Link for USB 2.0 >> > Disk Drives. >> > I have 2 discs attached to the server and the server setup program formatted > them as ext3 Sorry to keep pounding away at this but how can we be sure they are ext3 without an fdisk output or something similar. Those error messages about symlinks would indicate otherwise. Unless the error is comming from cifs which is possible sincy it does not support symlinks. [...] >> > This is the error when copying the Mail directory >> > mkstemp >> > "/mnt/network/home/paul/Mail/Gimp/cur/.1133608028.9158.nxwHc:2,S.CDg1dQ" >> > failed: Not a directory >> >> This one is more insteresting >> >> You might change your command line to include another -v and an STDERR >> outlet to file like this: >> >> rsync -Cavv --delete --progress --exclude '*tmp*' --exclude >> '*Trash*' /usr /mnt/network 2>er.log > attached is the er.log > Its strange, yesterday some mail files were copied but the file names had all > been truncated e.g. 1012B0~ instead of 1140956627.10049.kTtle:2,S > My last run of rsync on my Mail directory deleted all of the contents but did > not copy any file. > I am lost now Sorry to say I am too. As I feared the er.log was not all that helpfull but again it appears to me the fs is not allowing `chown' to run. More evidence the receiving fs does not support it. I don't really understand the relationship between what you call a server and the actual disks. How is it different from just having the disks on an USB port? Is it possible to connect these disks direct to your gentoo box? If so you will be able to identify them beyond any doubt. Further, you will be able to mount them under there native format type instead of cifs if they are ext3 and attempt the rsync in that setup to learn if cifs is the problem here. Once connected to you gentoo box an `fdisk -l' as root will show what filesystem is on them. I suggest you take this question in as succinct a format as you can to the rsync list. I suspect some of the experts there will recognize this right off the bat. It can be accessed thru gmane. http://www.gmane.org Or if you use a newsreader it can be accessed at `news.gmane.org' The newgroup you're after is: gmane.network.rsync.general When you first post to it, you will get back a message from gmane you'll need to reply to so your post will get put on the group. (that happens only once) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: Rsync backup problem2
On Thursday 09 Mar 2006 15:36, Harry Putnam wrote: > Paul <[EMAIL PROTECTED]> writes: > > All files copy with no errors but symlinks always fail with the message: > > symlink "/mnt/network/usr/lib/libgstinterfaces-0.8.so.0" -> > > "libgstinterfaces-0.8.so.0.1.0" failed: Operation not supported > > > > I am wondering if this is a permissions problem. > > My network usb server will not let me have a user called root so I have > > set user paul with the 'can do anything' previlege. > > The mount and rsync commands are using user root > > What file systems are involved? > You get a similar message writing to NSFS or fat since unix like > permisions are not supported there. Hello Harry, Thanks for your response. I am mounting the network usb drive using cifs The network storage unit is a LINKSYS Network Storage Link for USB 2.0 Disk Drives. I don't know what file system is used but the discs had to be formatted by the linksys setup program. I have just looked at some files on the backup disc and the owner and permissions seem to be intact. This is the error when copying the Mail directory mkstemp "/mnt/network/home/paul/Mail/Gimp/cur/.1133608028.9158.nxwHc:2,S.CDg1dQ" failed: Not a directory I'm sure I'm doing something stupid Paul -- This message has been sent using kmail with gentoo linux -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: Rsync backup problem2
On Thursday 09 Mar 2006 18:19, Harry Putnam wrote: > Remy Blank <[EMAIL PROTECTED]> writes: > > Paul Stear wrote: > >> I am mounting the network usb drive using cifs > > > > I'm not quite sure, but I think cifs doesn't support symlinks. > > It can be done if the winbox has SFU (Services for Unix) installed > I've heard, but really isn't the problem that the receiving fs does not > support them? > > note or anyone interested: > (Services for Unix is a free package from MS). Harry, This problem has nothing to do with windows, in fact my XP machine isn't even switched on. This is the ls -l on /mnt/network drwxrwxrwx 1 root root 0 Mar 9 14:03 usr I saw the info about coping the actual file instead of the symlink in man rsync. This raises a couple of questions. 1. If I copy the actual file and in the future need to restore my system from this full backup, what will be the implication of having perhaps multiple copies of some files? 2. How do other gentoo'ers achieve backup onto a windows machine? I will change the command line to include another -v and an STDERR to see if this helps with the mail problem. I have noticed that some messages get copied - in the case of one of my mail folders I have951 messages but only 15 are in the backup, some folders are completely empty. I am a little confused if cifs does or does not support symlinks. As a last resort is there any other way for me to to achieve a complete copy of my gentoo system on this network usb storage link? Paul -- This message has been sent using kmail with gentoo linux -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: Rsync backup problem2
On Friday 10 Mar 2006 14:42, Harry Putnam wrote: snip > > I don't really understand the relationship between what you call a > server and the actual disks. How is it different from just having the > disks on an USB port? The external USB discs have a USB connector that plugs into the Linksys network storage box, that in turn is connected to my network switch as are my linux and my windows boxes. I will disconnect one of the drives and connected it to my linux box's USB port and see if I can glean any more information. snip > > I suggest you take this question in as succinct a format as you can to > the rsync list. I suspect some of the experts there will recognize > this right off the bat. It can be accessed thru gmane. Thanks, I will post a question and let you know the answer. Paul -- This message has been sent using kmail with gentoo linux -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: Rsync backup problem2
2. How do other gentoo'ers achieve backup onto a windows machine? In my case, with dd and gzip. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: Rsync backup problem2
snip > The external USB discs have a USB connector that plugs into the Linksys > network storage box, that in turn is connected to my network switch as are > my linux and my windows boxes. snip I have connected one of the discs directly to the usb port. fdisk -l /dev/sda Disk /dev/sda: 200.0 GB, 200049647616 bytes 255 heads, 63 sectors/track, 24321 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 24299 195181686 83 Linux /dev/sda2 24300 24314 120487+ 83 Linux /dev/sda3 24315 24321 56227+ 82 Linux swap / Solaris I have also rsync'd with no errors (even my Mail folder) So my conclusions after all this is that the problem is with cifs or the way I mount the discs when they are connected via the network syslink box. I really want to have these discs networked so that both contents are available to both machines. So Question: What is the best method of copying files via the network and How should I mount the discs for error free operation? Paul -- This message has been sent using kmail with gentoo linux -- gentoo-user@gentoo.org mailing list