Backup interrotto per spazio insufficiente

Argomenti inerenti backup e sincronizzazione (locale, remota e in cloud)
babu65
Utente
Utente
Messaggi: 9
Iscritto il: martedì 6 marzo 2018, 9:06

Backup interrotto per spazio insufficiente

Messaggio da babu65 »

Buongiorno a tutti, cercherò di illustrare il più chiaramente possibile la situazione.
Possiedo da poco una nuova NAS Synology DS918+ con 4 HHD da 2 TB cad uno in RAID 10, in essa vi sono dati per un totale di 1,14 TB. Ho collegato alla mia rete la vecchia NAS WD My Book Live Duo RAID 0 per un totale di 4 TB.
Entrambe con IP statico rispettivamente:
NAS Synology IP 192.168.1.97
NAS WD IP 192.168.1.98
Volendo utilizzare la vecchia NAS WD come unità di backup in rete, dopo aver ripristinato il setup di fabbrica della stessa e averla messa in RAID 0 ho provveduto da terminale SSH a renderla un server rsync come segue:
1 tramite editor vi ho portato il valore RSYNC_ENABLE da false a true come di seguito:

vi /etc/default/rsync

# defaults file for rsync daemon mode

# start rsync in daemon mode from init.d script?
# only allowed values are "true", "false", and "inetd"
# Use "inetd" if you want to start the rsyncd from inetd,
# all this does is prevent the init.d script from printing a message
# about not starting rsyncd (you still need to modify inetd's config yourself).
RSYNC_ENABLE=true

# which file should be used as the configuration file for rsync.
# This file is used instead of the default /etc/rsyncd.conf
# Warning: This option has no effect if the daemon is accessed
# using a remote shell. When using a different file for
# rsync you might want to symlink /etc/rsyncd.conf to
# that file.
# RSYNC_CONFIG_FILE=

# what extra options to give rsync --daemon?
# that excludes the --daemon; that's always done in the init.d script
# Possibilities are:
# --address=192.168.1.98
port=22
RSYNC_OPTS=''
2 Creato configuration file come di seguito:
MyBookLiveDuo:~# vi /etc/rsyncd.conf
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsync.log

[rsync]
path = /backup/rsync
uid = root
gid = share
read only = no
list = yes
auth users = root
secrets file = /etc/rsyncd.secrets
3 creato file password come segue:
vi /etc/rsyncd.secrets
root:password
4 impostati I permessi sui file create come segue:
chmod 664 /etc/rsyncd.conf
chmod 600 /etc/rsyncd.secret

5 creato link startup come segue:
cd /etc/rc2.d
ln -s ../init.d/rsync S91rsync
reboot

quindi la vecchia NAS WD ha effettuato regolarmene il reboot

A questo punto tramite Hyper backup ho impostato il seguente Backup:
Indirizzo IP: 192.168.1.98
Nome utente: root
Cartella condivisa: /backup
Directory: backup2
A questo punto dopo aver impostato la pianificazione giornaliera avvio il primo backup ma dopo aver effettuato il controllo delle dimensioni del file d’origine si avvia l’avanzamento backup il quale si arresta per insufficienza di spazio raggiungendo a volte circa 870 MB a volte 1.x GB
A questo punto vistosi quanto fin qui esposto è evidente che in verità lo spazio sulla vecchia NAS WD è più che sufficiente, in quanto a fronte di 1,14 TB di dati da backupare la vecchia NAS dispone di ben 4 TB di spazio.
Sapreste indicarmi le possibili cause di questo arresto backup per insufficienza di spazio apparentemente ingiustificato?

Grazie fin d’ora.
DS918 +
babu65
Utente
Utente
Messaggi: 9
Iscritto il: martedì 6 marzo 2018, 9:06

Re: Backup interrotto per spazio insufficiente

Messaggio da babu65 »

Riporto anche file log dei backup interrotti
Backup
Livello,Data e ora,Utente,Evento
Error,2018/03/06 12:22:56,SYSTEM,[Network][rsync Server 4] Failed to backup data.
Error,2018/03/06 12:22:52,SYSTEM,[Network][rsync Server 4] Exception occurred while backing up data. (Capacity at destination is insufficient.)
DS918 +
Avatar utente
fullspeed
Utente
Utente
Messaggi: 1027
Iscritto il: lunedì 21 settembre 2015, 16:18
Località: Ad Sextum Lapidem

Re: Backup interrotto per spazio insufficiente

Messaggio da fullspeed »

babu65 ha scritto:A questo punto vistosi quanto fin qui esposto è evidente che in verità lo spazio sulla vecchia NAS WD è più che sufficiente, in quanto a fronte di 1,14 TB di dati da backupare la vecchia NAS dispone di ben 4 TB di spazio.
ho riletto "quanto fin qui esposto" ma non ho trovato nessun riferimento a comandi DSM o di sistema che evidenzino che il NAS dispone effettivamente di 4TB di spazio libero, o comunque spazio sufficiente ad ospitare il backup.
"If two people always agree, one of them is useless. If they always disagree, both are useless." (Mark Twain)
  • UPS: APC Back-UPS 700VA (BX700UI)
  • ISP: Pianeta Fibra FTTH (1000M/1000M); IP: Public
  • Switch/Router PPPoE: Asus RT-AX53U (OpenWrt 22.03.5)
  • NAS: DS220+ (DSM 7.1.1-42962 Update 5); 6GB; R1(2x Toshiba N300 4TB); 2x 1Gb/s
  • NAS: DS215j (DSM 6.2.4-25556 Update 7); 512MB; R1(2x HGST DeskStar NAS 3TB); 1x 1Gb/s
  • CLI: Ubuntu Linux 22.04 LTS & 20.04 LTS; Apple Macbook Air (macOS Catalina); Microsoft Windows 10
    Altro: WETEK Hub (LibreElec 9.2.7, Kodi 18.9 Leia), Amazon Fire TV Stick, Yamaha RX-V481, Denon DRA-N4
  • EXP: E5 - NET8 PC:W4,M4,L8
babu65
Utente
Utente
Messaggi: 9
Iscritto il: martedì 6 marzo 2018, 9:06

Re: Backup interrotto per spazio insufficiente

Messaggio da babu65 »

login as: root
root@192.168.1.98's password:
Linux MyBookLiveDuo 2.6.32.11-svn70860 #1 Thu May 17 13:32:51 PDT 2012 ppc
Disclaimer: SSH provides access to the network device and all its
content, only users with advanced computer networking and Linux experience
should enable it. Failure to understand the Linux command line interface
can result in rendering your network device inoperable, as well as allowing
unauthorized users access to your network. If you enable SSH, do not share
the root password with anyone you do not want to have direct access to all
the content on your network device.

MyBookLiveDuo:~# df
MyBookLiveDuo:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 1968336 1949180 0 100% /
tmpfs 5120 0 5120 0% /lib/init/rw
udev 10240 1216 9024 12% /dev
tmpfs 5120 0 5120 0% /dev/shm
tmpfs 102400 4160 98240 5% /tmp
ramlog-tmpfs 20480 5952 14528 30% /var/log
/dev/md3 3882698688 2134912 3880563776 1% /DataVolume
DS918 +
Avatar utente
fullspeed
Utente
Utente
Messaggi: 1027
Iscritto il: lunedì 21 settembre 2015, 16:18
Località: Ad Sextum Lapidem

Re: Backup interrotto per spazio insufficiente

Messaggio da fullspeed »

babu65 ha scritto: MyBookLiveDuo:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 1968336 1949180 0 100% /
...
/dev/md3 3882698688 2134912 3880563776 1% /DataVolume
esattamente come sospettavo.

i 4TB sono disponibili sotto /DataVolume

ma tu hai definito come backup la cartella /backup

che sta sotto /

ed infatti / (che cuba 2GB scarsi) è piena al 100%
"If two people always agree, one of them is useless. If they always disagree, both are useless." (Mark Twain)
  • UPS: APC Back-UPS 700VA (BX700UI)
  • ISP: Pianeta Fibra FTTH (1000M/1000M); IP: Public
  • Switch/Router PPPoE: Asus RT-AX53U (OpenWrt 22.03.5)
  • NAS: DS220+ (DSM 7.1.1-42962 Update 5); 6GB; R1(2x Toshiba N300 4TB); 2x 1Gb/s
  • NAS: DS215j (DSM 6.2.4-25556 Update 7); 512MB; R1(2x HGST DeskStar NAS 3TB); 1x 1Gb/s
  • CLI: Ubuntu Linux 22.04 LTS & 20.04 LTS; Apple Macbook Air (macOS Catalina); Microsoft Windows 10
    Altro: WETEK Hub (LibreElec 9.2.7, Kodi 18.9 Leia), Amazon Fire TV Stick, Yamaha RX-V481, Denon DRA-N4
  • EXP: E5 - NET8 PC:W4,M4,L8
babu65
Utente
Utente
Messaggi: 9
Iscritto il: martedì 6 marzo 2018, 9:06

Re: Backup interrotto per spazio insufficiente

Messaggio da babu65 »

Grazie fullspeed,
mi stai salvando da un annegamento in un bicchiere d’acqua :shock:
Ergo impostando /DataVolume il backup verrà portato a compimento.
Giusto?
P.S. ho fatto come sopra e l’avanzamento backup ha gia raggiunto i 4 GB
DS918 +
Avatar utente
fullspeed
Utente
Utente
Messaggi: 1027
Iscritto il: lunedì 21 settembre 2015, 16:18
Località: Ad Sextum Lapidem

Re: Backup interrotto per spazio insufficiente

Messaggio da fullspeed »

babu65 ha scritto:Grazie fullspeed,
mi stai salvando da un annegamento in un bicchiere d’acqua :shock:
Ergo impostando /DataVolume il backup verrà portato a compimento.
Giusto?
giusto, finché i dati da salvare saranno inferiori a 4TB
babu65 ha scritto:P.S. ho fatto come sopra e l’avanzamento backup ha gia raggiunto i 4 GB
significa che stai facendo la cosa giusta.

ricordati di cancellare la "vecchia" cartella /backup ... non è bene che / sia pieno al 100%
"If two people always agree, one of them is useless. If they always disagree, both are useless." (Mark Twain)
  • UPS: APC Back-UPS 700VA (BX700UI)
  • ISP: Pianeta Fibra FTTH (1000M/1000M); IP: Public
  • Switch/Router PPPoE: Asus RT-AX53U (OpenWrt 22.03.5)
  • NAS: DS220+ (DSM 7.1.1-42962 Update 5); 6GB; R1(2x Toshiba N300 4TB); 2x 1Gb/s
  • NAS: DS215j (DSM 6.2.4-25556 Update 7); 512MB; R1(2x HGST DeskStar NAS 3TB); 1x 1Gb/s
  • CLI: Ubuntu Linux 22.04 LTS & 20.04 LTS; Apple Macbook Air (macOS Catalina); Microsoft Windows 10
    Altro: WETEK Hub (LibreElec 9.2.7, Kodi 18.9 Leia), Amazon Fire TV Stick, Yamaha RX-V481, Denon DRA-N4
  • EXP: E5 - NET8 PC:W4,M4,L8
babu65
Utente
Utente
Messaggi: 9
Iscritto il: martedì 6 marzo 2018, 9:06

Re: Backup interrotto per spazio insufficiente

Messaggio da babu65 »

Grazie, seguirò sicuramente il tuo ultimo consigliO.

Come avrai certamente capito, le mie conoscenze Linux sono veramente scarse, approfittando della tua cortesia vorrei porti questi ultimi quesiti:

1 da terminale SSH digitando i classici comandi non vedo alcuna cartella DataVolume. Come la visualizzo da terminale?
2 sia da terminale SSH che da Windows come potrò visualizzare il file di Backup una volta terminato.
DS918 +
Avatar utente
fullspeed
Utente
Utente
Messaggi: 1027
Iscritto il: lunedì 21 settembre 2015, 16:18
Località: Ad Sextum Lapidem

Re: Backup interrotto per spazio insufficiente

Messaggio da fullspeed »

babu65 ha scritto:1 da terminale SSH digitando i classici comandi non vedo alcuna cartella DataVolume. Come la visualizzo da terminale?
e quali sarebbero questi "classici comandi" che hai digitato?
babu65 ha scritto:2 sia da terminale SSH che da Windows come potrò visualizzare il file di Backup una volta terminato.
da terminale SSH con il "classico comando" ls e da Windows come share remota dopo che l'hai esportata sul WD My Book Live Duo. come fare ad esportarla non lo so perché io conosco il NAS Synology.
"If two people always agree, one of them is useless. If they always disagree, both are useless." (Mark Twain)
  • UPS: APC Back-UPS 700VA (BX700UI)
  • ISP: Pianeta Fibra FTTH (1000M/1000M); IP: Public
  • Switch/Router PPPoE: Asus RT-AX53U (OpenWrt 22.03.5)
  • NAS: DS220+ (DSM 7.1.1-42962 Update 5); 6GB; R1(2x Toshiba N300 4TB); 2x 1Gb/s
  • NAS: DS215j (DSM 6.2.4-25556 Update 7); 512MB; R1(2x HGST DeskStar NAS 3TB); 1x 1Gb/s
  • CLI: Ubuntu Linux 22.04 LTS & 20.04 LTS; Apple Macbook Air (macOS Catalina); Microsoft Windows 10
    Altro: WETEK Hub (LibreElec 9.2.7, Kodi 18.9 Leia), Amazon Fire TV Stick, Yamaha RX-V481, Denon DRA-N4
  • EXP: E5 - NET8 PC:W4,M4,L8
babu65
Utente
Utente
Messaggi: 9
Iscritto il: martedì 6 marzo 2018, 9:06

Re: Backup interrotto per spazio insufficiente

Messaggio da babu65 »

e quali sarebbero questi "classici comandi" che hai digitato?
MyBookLiveDuo:/# ls -al
total 352
drwxr-xr-x 29 root root 4096 Mar 6 09:32 .
drwxr-xr-x 29 root root 4096 Mar 6 09:32 ..
drwxrwxrwx 10 root www-data 65536 Mar 5 08:51 CacheVolume
drwxr-xr-x 7 root root 65536 Mar 6 06:31 DataVolume
drwxrwxrwx 6 root root 4096 Mar 6 02:10 WMAserver_1
drwxr-xr-x 6 root root 4096 Mar 6 00:30 backup2.hbk
drwxr-xr-x 6 root root 4096 Mar 6 01:16 backupII.hbk
drwxr-xr-x 6 root root 4096 Mar 6 06:27 backupmain.hbk
drwxr-xr-x 2 root root 4096 May 7 2015 bin
drwxr-xr-x 3 root root 4096 Aug 11 2015 boot
drwxr-xr-x 2 root root 4096 May 7 2015 debootstrap
drwxr-xr-x 13 root root 2700 Mar 6 08:02 dev
drwxr-xr-x 79 root root 4096 Mar 6 07:30 etc
drwxr-xr-x 3 root root 4096 May 7 2015 home
lrwxrwxrwx 1 root root 24 May 7 2015 led_color -> /usr/local/nas/led_color
drwxr-xr-x 11 root root 4096 May 7 2015 lib
drwx------ 2 root root 16384 May 7 2015 lost+found
drwxr-xr-x 2 root root 4096 May 7 2015 media
drwxrwxr-x 7 root share 65536 Mar 5 08:50 nfs
drwxr-xr-x 2 root root 4096 May 7 2015 opt
dr-xr-xr-x 116 root root 0 Dec 31 1969 proc
drwxr-xr-x 6 root root 4096 Mar 4 19:49 root
drwxr-xr-x 2 root root 4096 May 7 2015 sbin
drwxr-xr-x 2 root root 4096 May 7 2015 selinux
drwxrwxr-x 7 root share 65536 Mar 5 08:50 shares
drwxr-xr-x 2 root root 4096 May 7 2015 srv
drwxr-xr-x 12 root root 0 Dec 31 1969 sys
drwxrwxrwt 14 root root 1340 Mar 6 10:53 tmp
drwxr-xr-x 14 root root 4096 May 7 2015 usr
drwxr-xr-x 14 root root 4096 Aug 11 2015 var

visionando le dir sopra riportate mi risulta che i dati dei quali sta facendo backup siano dentro a WMAserver_1
DS918 +
Rispondi

Torna a “Backup&Restore, RSync, TimeBackup”