Hi there,
I'm new to OMV and this is my first post .
I'm trying to set OMV up as a home server in a way that OMV to be a CIFS server and also the destination of home backups (4 machines with windows of my family) using Urbackup, and at the same time that OMV do backup itself to another server (of name lacie-5big-n2) also at home network with NFS (this has also CIFS, FTP, ..).
I want to say to all of you that I love OMV's first impression, its web interface is very comfortable once you get used to the idea of "its concepts", the plugins are great and I feel very nice with shellinabox ... thank you very much for all this software to all of you.
Right now I have OMV (last version 4.1.5-1 and up-to-date) on a Virtual Box host until I make sure it works with out problems, then I will move or reintall it on a physical machine.
I have read a lot in the forum about how to back up OMV and I find it too confusing, complicated and not very mature, I'm going to try anyway. I'm very sensitive to the backup issue because I've had bad experiences before.
After all that I make the decissión to backup :
1 - For the system stuff, to shutdown the server to backup it from time to time with clonezilla to a nfs share in my backup-server.
2 - Also for the system stuff, to backup if before any update with System : Backup plugin, as this does not need to shutdown the server.
3 - To backup data content on my backup-server using rsnapshot and in the future to the cloud with rclone or duplicati.
---
So far:
Point 1 went Ok, although I haven't restored it yet.
When I do (System : Backup) on the NFS share, I receive this error:
{
Error #0:
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; omv-mkconf backup 2>&1': sending incremental file list
rsync: rsync_xal_set: lsetxattr(""/srv/c6bc1cda-7d0b-4763-9ec6-e06adbeaec2e/de-omv4vm/omvbackup/usr/bin/fping"","security.capability") failed: Operation not supported (95)
rsync: rsync_xal_set: lsetxattr(""/srv/c6bc1cda-7d0b-4763-9ec6-e06adbeaec2e/de-omv4vm/omvbackup/usr/bin/fping6"","security.capability") failed: Operation not supported (95)
rsync: rsync_xal_set: lsetxattr(""/srv/c6bc1cda-7d0b-4763-9ec6-e06adbeaec2e/de-omv4vm/omvbackup/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-ptp-helper"","security.capability") failed: Operation not supported (95)
var/cache/openmediavault/archives/
var/cache/openmediavault/archives/Packages
var/lib/samba/private/msg.sock/
var/lib/systemd/timers/stamp-anacron.timer
var/lib/systemd/timers/stamp-phpsessionclean.timer
sent 2,395,934 bytes received 11,405 bytes 3,144.79 bytes/sec
total size is 3,562,656,480 speedup is 1,479.91
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2] in /usr/share/openmediavault/engined/rpc/backup.inc:72
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(536): OMVRpcServiceBackup->{closure}('/tmp/bgstatushx...', '/tmp/bgoutputTv...')
#1 /usr/share/openmediavault/engined/rpc/backup.inc(74): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: OMVRpcServiceBackup->doBackup(NULL, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('doBackup', NULL, Array)
#5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Backup', 'doBackup', NULL, Array, 1)
#6 {main}
}
Alles anzeigen
NFS is mounted with the Storage : Remote Mount plugin and also shared.
I tried to mount it with NFS v4 and NFS v3 without any changes, the server supports both versions. However, clonezilla only works well with NFS v3:
root@omv4vm:~# rpcinfo -p lacie-5big-n2 | grep nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
root@omv4vm:~#
More info my /etc/fstab:
root@omv4vm:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=50f9f0e0-27fe-486d-933c-2be4d4c04d25 / ext4 noatime,nodiratime,errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
# 20180502 lblanco comentado para poner un USB y evitar desgaste, plugin flashmemoryflashmemory
#UUID=9ff5acde-f243-427e-a972-8dbaaaa69840 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
tmpfs /tmp tmpfs defaults 0 0
# >>> [openmediavault]
/dev/disk/by-label/Backup /srv/dev-disk-by-label-Backup ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
/dev/disk/by-label/AlmacenE4 /srv/dev-disk-by-label-AlmacenE4 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
lacie-5big-n2:/shares/BackupEspacio /srv/c6bc1cda-7d0b-4763-9ec6-e06adbeaec2e nfs4 rsize=8192,wsize=8192,timeo=14,intr,nofail 0 0
# <<< [openmediavault]
root@omv4vm:~#
root@omv4vm:~#
Alles anzeigen
I found out that the command generating the error is:
rsync -aAXvxx /bin /boot /dev /etc /export /home /initrd.img /initrd.img.old /lib /lib64 /lost+found /media /mnt /opt /proc /root /run /sbin /sharedfolders /srv /sys /tmp /usr /var /vmlinuz /vmlinuz.old /srv/c6bc1cda-7d0b-4763-9ec6-e06adbeaec2e/de-omv4vm/omvbackup/ --delete --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/tmp --exclude=/run --exclude=/mnt --exclude=/media --exclude=/lost+found --exclude=/export --exclude=/home/ftp --exclude=/srv
and the related option is: -X, --xattrs preserve extended attributes
Backup does not finish right because theses files
grub.dd
grub_parts.dd
packages
uuids
are not in destination direstory. I made a local try to (srv/dev-disk-by-label-Backup) before.
The error is strange as it have already copied arround 90.000 files !!
Retrying the backup, it copies some files (or at least report directories), but it gives the error again in the same 3 files:
/usr/bin/fping
/usr/bin/fping6
/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-ptp-helper
And I can not find anything special about this files (i mean attributes). Lets see:
root@omv4vm:~#
root@omv4vm:~# ls -l /usr/bin/fping*
-rwxr-xr-x 1 root root 39232 Jan 11 2017 /usr/bin/fping
-rwxr-xr-x 1 root root 39232 Jan 11 2017 /usr/bin/fping6
root@omv4vm:~#
root@omv4vm:~# getfattr -d /usr/bin/fping*
root@omv4vm:~# getfattr /usr/bin/fping*
root@omv4vm:~#
root@omv4vm:~# ls -l /srv/c6bc1cda-7d0b-4763-9ec6-e06adbeaec2e/de-omv4vm/omvbackup/usr/bin/fping*
-rwxr-xr-x 1 root root 39232 Jan 11 2017 /srv/c6bc1cda-7d0b-4763-9ec6-e06adbeaec2e/de-omv4vm/omvbackup/usr/bin/fping
-rwxr-xr-x 1 root root 39232 Jan 11 2017 /srv/c6bc1cda-7d0b-4763-9ec6-e06adbeaec2e/de-omv4vm/omvbackup/usr/bin/fping6
root@omv4vm:~#
root@omv4vm:~#
root@omv4vm:~# getfattr -d /srv/dev-disk-by-label-Backup/Backup-4-server/omvbackup/usr/bin/fping*
root@omv4vm:~# getfattr /srv/dev-disk-by-label-Backup/Backup-4-server/omvbackup/usr/bin/fping*
root@omv4vm:~#
Alles anzeigen
Why is this failing to copy attributes? I chose an NFS destination because it is a Linux protocol and the machines are also Linux. I intend to back up the data to this NFS server with rsnapshot as well, would it be better to use a CIFS? I don't think so because it doesn't support hard links, or at least I think so.
What are attributes used for ?
Any help or workarround is welcome !!