Welcome! » Log In » Create A New Profile

cp -al command failing - cannot create hard link

Posted by Anonymous 
cp -al command failing - cannot create hard link
May 05, 2016 04:06AM
I've just got rsnapshot up and running on a QNAP TS-410 NAS. It's configured to backup files to a CIFS share on a second D-Link NAS which is mounted on QNAP. When I ran rsnapshot for the 1st time everything got backup up pretty much OK (there was a warning that I haven't investigated yet).

But on running it on day 2, I'm getting errors related to creating hard links:

# /share/MD0_DATA/.qpkg/Entware-ng/bin/rsnapshot daily
echo 5564 > /opt/var/run/rsnapshot.pid
/opt/bin/cp -al
    /mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.0
    /mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.1
/opt/bin/cp: cannot create hard link ‘/mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.1/nas-homes/share/homes/fred/Fred_Folder1/HDTV_SetTopBox.doc’ to ‘/mnt/rf/nd/0/04      0aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.0/nas-homes/share/homes/fred/Fred_Folder1/HDTV_SetTopBox.doc’: No such file or directory
/opt/bin/cp: cannot create hard link ‘/mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.1/nas-homes/share/homes/fred/Fred_Folder1/Motorola_T505.pdf’ to ‘/mnt/rf/nd/0/040      aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.0/nas-homes/share/homes/fred/Fred_Folder1/Motorola_T505.pdf’: No such file or directory
/opt/bin/cp: cannot create hard link ‘/mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.1/nas-homes/share/homes/fred/Fred_Folder1/tvpalm.txt’ to ‘/mnt/rf/nd/0/040aa9057f      c9a5f60e7348b346830549edacaee5/Backups/daily.0/nas-homes/share/homes/fred/Fred_Folder1/tvpalm.txt’: No such file or directory
/opt/bin/cp: cannot create hard link ‘/mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.1/nas-homes/share/homes/fred/Fred_Folder2/SunnyBoy_2015-12-16.GIF’ to ‘/mnt/rf/nd      /0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.0/nas-homes/share/homes/fred/Fred_Folder2/SunnyBoy_2015-12-16.GIF’: No such file or directory
/opt/bin/cp: cannot create hard link ‘/mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.1/nas-homes/share/homes/fred/TeamClashes.txt’ to ‘/mnt/rf/nd/0/040aa9057fc9a5f60e      7348b346830549edacaee5/Backups/daily.0/nas-homes/share/homes/fred/TeamClashes.txt’: No such file or directory

I ran "cp --help" and it says the "a" and "l" options are supported so I don't think it's an issue with cp. Can anyone advise how to start trouble-shooting this? Could it be something to do with the way the share is mounted - perhaps something odd about the CIFS share that doesn't allow hard links?

TIA,
Phill
cp -al command failing - cannot create hard link
May 05, 2016 04:11AM
BTW, I meant to add that the daily.1 directrory  and sub-directrories got created properly, but no hard links could be created in those directrories.

I also found that there some directories called cp_al1 and cp_al2 got created at the same level as daily.0 and daily.1. I'm not sure if this is normal or a symptom of the problem.

Regards,
Phill

On 5 May 2016 at 21:03, Phill Edwards <philledwards < at > gmail.com ([email]philledwards < at > gmail.com[/email])> wrote:
[quote]I&#39;ve just got rsnapshot up and running on a QNAP TS-410 NAS. It&#39;s configured to backup files to a CIFS share on a second D-Link NAS which is mounted on QNAP. When I ran rsnapshot for the 1st time everything got backup up pretty much OK (there was a warning that I haven&#39;t investigated yet).

But on running it on day 2, I&#39;m getting errors related to creating hard links:

# /share/MD0_DATA/.qpkg/Entware-ng/bin/rsnapshot daily
echo 5564 > /opt/var/run/rsnapshot.pid
/opt/bin/cp -al
    /mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.0
    /mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.1
/opt/bin/cp: cannot create hard link ‘/mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.1/nas-homes/share/homes/fred/Fred_Folder1/HDTV_SetTopBox.doc’ to ‘/mnt/rf/nd/0/04      0aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.0/nas-homes/share/homes/fred/Fred_Folder1/HDTV_SetTopBox.doc’: No such file or directory
/opt/bin/cp: cannot create hard link ‘/mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.1/nas-homes/share/homes/fred/Fred_Folder1/Motorola_T505.pdf’ to ‘/mnt/rf/nd/0/040      aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.0/nas-homes/share/homes/fred/Fred_Folder1/Motorola_T505.pdf’: No such file or directory
/opt/bin/cp: cannot create hard link ‘/mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.1/nas-homes/share/homes/fred/Fred_Folder1/tvpalm.txt’ to ‘/mnt/rf/nd/0/040aa9057f      c9a5f60e7348b346830549edacaee5/Backups/daily.0/nas-homes/share/homes/fred/Fred_Folder1/tvpalm.txt’: No such file or directory
/opt/bin/cp: cannot create hard link ‘/mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.1/nas-homes/share/homes/fred/Fred_Folder2/SunnyBoy_2015-12-16.GIF’ to ‘/mnt/rf/nd      /0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.0/nas-homes/share/homes/fred/Fred_Folder2/SunnyBoy_2015-12-16.GIF’: No such file or directory
/opt/bin/cp: cannot create hard link ‘/mnt/rf/nd/0/040aa9057fc9a5f60e7348b346830549edacaee5/Backups/daily.1/nas-homes/share/homes/fred/TeamClashes.txt’ to ‘/mnt/rf/nd/0/040aa9057fc9a5f60e      7348b346830549edacaee5/Backups/daily.0/nas-homes/share/homes/fred/TeamClashes.txt’: No such file or directory

I ran "cp --help" and it says the "a" and "l" options are supported so I don&#39;t think it&#39;s an issue with cp. Can anyone advise how to start trouble-shooting this? Could it be something to do with the way the share is mounted - perhaps something odd about the CIFS share that doesn&#39;t allow hard links?

TIA,
Phill

[/quote]
cp -al command failing - cannot create hard link
May 05, 2016 06:17AM
Hallo, Phill,

Du meintest am 05.05.16:

[quote]I've just got rsnapshot up and running on a QNAP TS-410 NAS. It's
configured to backup files to a CIFS share on a second D-Link NAS
which is mounted on QNAP.
[/quote]
What file system? "cifs" is a network system, no disc system.

[quote]When I ran rsnapshot for the 1st time
everything got backup up pretty much OK (there was a warning that I
haven't investigated yet).
[/quote]
[quote]But on running it on day 2, I'm getting errors related to creating
hard links:
[/quote]
Are you root on both systems?

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
cp -al command failing - cannot create hard link
May 06, 2016 03:38AM
On Thu, May 5, 2016 at 8:56 AM, Helmut Hullen <Hullen < at > t-online.de> wrote:
[quote]Hallo, Phill,

Du meintest am 05.05.16:

[quote]I've just got rsnapshot up and running on a QNAP TS-410 NAS. It's
configured to backup files to a CIFS share on a second D-Link NAS
which is mounted on QNAP.
[/quote]
What file system? "cifs" is a network system, no disc system.

[quote]When I ran rsnapshot for the 1st time
everything got backup up pretty much OK (there was a warning that I
haven't investigated yet).
[/quote]
[quote]But on running it on day 2, I'm getting errors related to creating
hard links:
[/quote]
Are you root on both systems?

Viele Gruesse!
Helmut
[/quote]
CIFS..... is not your friend for anything reliant on hardlinks. If the
NAS supports NFS, use that instead.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Sorry, only registered users may post in this forum.

Click here to login