Beiträge von AndrewZ
-
-
Is it possible to disable IPv6 for Docker completely and/or for individual containers?
-
Thanks again for help.
I have successfully brought my shared folders back to life. I manually replaced UUIDs in config.xml to match new mergerfs volume UUID.
Then with Samba/CIFS I had to disable-save-enable all the shares in order to make them accessible, that restored my normal shares, but something is still wrong with the personal user shares - they are not accessible yet
I'll need to check if something has changed with this between v4 and v5.
Edit: fixed by changing user's home folders with usermod, again to match new mergerfs volume path.
-
Thanks a lot for this, now I have my UnionFS volume created without errors,
Now I see that all of my Shared Folders have Device "n/a". What will be the best way to fix that? Should I manually change the UUID of mergerfs to the old value [that will match existing Shared Folders config] or I will need to change the UUIDs in the Shared Folders configuration (in the config file)?
-
Code
Alles anzeigen# sudo omv-salt deploy run omvextras vault.lan: ---------- ID: omvextrasbaserepo Function: pkgrepo.managed Name: deb https://openmediavault-plugin-developers.github.io/packages/debian usul main Result: True Comment: Package repo 'deb https://openmediavault-plugin-developers.github.io/packages/debian usul main' already configured Started: 01:54:08.073536 Duration: 250.967 ms Changes: ---------- ID: deb https://openmediavault-plugin-developers.github.io/packages/debian usul-testing main Function: pkgrepo.absent Result: True Comment: Package repo deb https://openmediavault-plugin-developers.github.io/packages/debian usul-testing main is absent Started: 01:54:08.324855 Duration: 117.577 ms Changes: ---------- ID: deb https://openmediavault-plugin-developers.github.io/packages/debian usul-extras main Function: pkgrepo.absent Result: True Comment: Package repo deb https://openmediavault-plugin-developers.github.io/packages/debian usul-extras main is absent Started: 01:54:08.442758 Duration: 117.272 ms Changes: ---------- ID: deb [arch=amd64] https://download.docker.com/linux/debian buster stable Function: pkgrepo.managed Result: True Comment: Package repo 'deb [arch=amd64] https://download.docker.com/linux/debian buster stable' already configured Started: 01:54:08.560359 Duration: 282.809 ms Changes: ---------- ID: deb http://linux.teamviewer.com/deb stable main Function: pkgrepo.managed Result: True Comment: Package repo 'deb http://linux.teamviewer.com/deb stable main' already configured Started: 01:54:08.843494 Duration: 230.477 ms Changes: ---------- ID: configure_apt_pref_omvextras Function: file.managed Name: /etc/apt/preferences.d/omvextras.pref Result: True Comment: File /etc/apt/preferences.d/omvextras.pref is in the correct state Started: 01:54:09.077432 Duration: 94.261 ms Changes: ---------- ID: refresh_database_apt Function: module.run Result: True Comment: pkg.refresh_db: Success Started: 01:54:09.173362 Duration: 17883.302 ms Changes: ---------- pkg.refresh_db: ---------- http://httpredir.debian.org/debian stretch-backports InRelease: True http://linux.teamviewer.com/deb stable InRelease: None http://packages.openmediavault.org/public usul InRelease: None https://deb.debian.org/debian buster InRelease: None https://deb.debian.org/debian buster-updates InRelease: True https://deb.debian.org/debian-security buster/updates InRelease: None https://download.docker.com/linux/debian buster InRelease: None https://openmediavault-plugin-developers.github.io/packages/debian usul InRelease: None Summary for vault.lan ------------ Succeeded: 7 (changed=1) Failed: 0 ------------ Total states run: 7 Total run time: 18.977 s # apt-cache policy mergerfs mergerfs: Installed: 2.24.2-4 Candidate: 2.24.2-4 Version table: 2.32.4~debian-buster 500 500 https://openmediavault-plugin-developers.github.io/packages/debian usul/main amd64 Packages *** 2.24.2-4 990 990 https://deb.debian.org/debian buster/main amd64 Packages 100 /var/lib/dpkg/status
-
Code
Alles anzeigen# dpkg -l | grep -E "openme|omv|merger" ii mergerfs 2.24.2-4 amd64 another FUSE union filesystem ii omvextras-common 5.0 all Shared files/libraries between various OpenMediaVault plugins. ii omvextras-unionbackend 5.0.2 all union filesystems backend plugin for openmediavault ii openmediavault 5.6.12-1 all openmediavault - The open network attached storage solution ii openmediavault-backup 5.2.4 all backup plugin for OpenMediaVault. ii openmediavault-diskstats 5.1.1-1 all openmediavault disk monitoring plugin ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive ii openmediavault-nut 5.2.2-1 all openmediavault Network UPS Tools (NUT) plugin ii openmediavault-omvextrasorg 5.6.2 all OMV-Extras.org Package Repositories for OpenMediaVault ii openmediavault-remotemount 5.0.3 all Remote mount plugin for OpenMediaVault. ic openmediavault-resetperms 3.3 all Reset Permissions ii openmediavault-snapraid 5.0.7 all snapraid plugin for OpenMediaVault. ii openmediavault-symlinks 5.0 all OpenMediaVault symlinks plugin ii openmediavault-unionfilesystems 5.1.2 all Union filesystems plugin for OpenMediaVault. ii openmediavault-usbbackup 5.0.9-1 all openmediavault USB/eSATA backup plugin ic openmediavault-wol 3.4.2 all OpenMediaVault WOL plugin
-
Upgraded from 4 to 5 and cannot re-create my UnionFS volume.
I see the disks, can select them, assign the name, save, but clicking Apply gives the following error messages. Sorry for formatting - this is the copy/paste from the GUI.
Please advise how to solve this.
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color fstab 2>&1' with exit code '1': vault.lan: ---------- ID: create_filesystem_mountpoint_5c569e65-d6a7-4b4a-a304-a032c8e85fe1 Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_5c569e65-d6a7-4b4a-a304-a032c8e85fe1 for file /etc/fstab was charged by text Started: 01:10:33.677749 Duration: 2.081 ms Changes: ---------- ID: mount_filesystem_mountpoint_5c569e65-d6a7-4b4a-a304-a032c8e85fe1 Function: mount.mounted Name: /srv/dev-disk-by-uuid-0e156792-6c83-43a5-a51b-3666b304691e Result: True Comment: Target was already mounted Started: 01:10:33.681626 Duration: 123.569 ms Changes: ---------- umount: Forced remount because options (user_xattr) changed ---------- ID: create_filesystem_mountpoint_59450995-0503-4a19-9254-5051c5007d0b Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_59450995-0503-4a19-9254-5051c5007d0b for file /etc/fstab was charged by text Started: 01:10:33.805677 Duration: 2.812 ms Changes: ---------- ID: mount_filesystem_mountpoint_59450995-0503-4a19-9254-5051c5007d0b Function: mount.mounted Name: /srv/dev-disk-by-uuid-6e5d7238-abad-4fd6-b828-01cfa55e9211 Result: True Comment: Target was already mounted Started: 01:10:33.808826 Duration: 101.24 ms Changes: ---------- umount: Forced remount because options (user_xattr) changed ---------- ID: create_filesystem_mountpoint_2a0aa622-3d01-4800-a37c-88628dd32365 Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_2a0aa622-3d01-4800-a37c-88628dd32365 for file /etc/fstab was charged by text Started: 01:10:33.910467 Duration: 2.55 ms Changes: ---------- ID: mount_filesystem_mountpoint_2a0aa622-3d01-4800-a37c-88628dd32365 Function: mount.mounted Name: /srv/dev-disk-by-uuid-c48ec9be-fea7-4e66-a325-2cb7de03c642 Result: True Comment: Target was already mounted Started: 01:10:33.913343 Duration: 103.227 ms Changes: ---------- umount: Forced remount because options (user_xattr) changed ---------- ID: create_filesystem_mountpoint_fa252a2b-4e77-472f-85e9-c3776bf7bcfe Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_fa252a2b-4e77-472f-85e9-c3776bf7bcfe for file /etc/fstab was charged by text Started: 01:10:34.017056 Duration: 2.397 ms Changes: ---------- ID: mount_filesystem_mountpoint_fa252a2b-4e77-472f-85e9-c3776bf7bcfe Function: mount.mounted Name: /srv/dev-disk-by-uuid-dbfc907f-5308-4a90-8b63-c546edd0ca49 Result: True Comment: Target was already mounted Started: 01:10:34.019778 Duration: 105.493 ms Changes: ---------- umount: Forced remount because options (user_xattr) changed ---------- ID: create_unionfilesystem_mountpoint_c9ab6243-cb16-4015-9ce8-58a49a1ab186 Function: file.accumulated Result: True Comment: Accumulator create_unionfilesystem_mountpoint_c9ab6243-cb16-4015-9ce8-58a49a1ab186 for file /etc/fstab was charged by text Started: 01:10:34.125756 Duration: 2.905 ms Changes: ---------- ID: mount_filesystem_mountpoint_c9ab6243-cb16-4015-9ce8-58a49a1ab186 Function: mount.mounted Name: /srv/d83be250-bfd7-4116-aba0-57f980dd61bc Result: False Comment: fuse: unknown option `cache.files=off' Started: 01:10:34.129006 Duration: 108.408 ms Changes: ---------- ID: append_fstab_entries Function: file.blockreplace Name: /etc/fstab Result: True Comment: Changes were made Started: 01:10:34.241234 Duration: 14.366 ms Changes: ---------- diff: --- +++ @@ -15,4 +15,5 @@ /dev/disk/by-uuid/6e5d7238-abad-4fd6-b828-01cfa55e9211 /srv/dev-disk-by-uuid-6e5d7238-abad-4fd6-b828-01cfa55e9211 ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 /dev/disk/by-uuid/c48ec9be-fea7-4e66-a325-2cb7de03c642 /srv/dev-disk-by-uuid-c48ec9be-fea7-4e66-a325-2cb7de03c642 ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 /dev/disk/by-uuid/dbfc907f-5308-4a90-8b63-c546edd0ca49 /srv/dev-disk-by-uuid-dbfc907f-5308-4a90-8b63-c546edd0ca49 ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 +/srv/dev-disk-by-uuid-6e5d7238-abad-4fd6-b828-01cfa55e9211:/srv/dev-disk-by-uuid-c48ec9be-fea7-4e66-a325-2cb7de03c642:/srv/dev-disk-by-uuid-dbfc907f-5308-4a90-8b63-c546edd0ca49 /srv/d83be250-bfd7-4116-aba0-57f980dd61bc fuse.mergerfs defaults,allow_other,cache.files=off,use_ino,category.create=epmfs,minfreespace=4G,fsname=vol1:d83be250-bfd7-4116-aba0-57f980dd61bc,x-systemd.requires=/srv/dev-disk-by-uuid-6e5d7238-abad-4fd6-b828-01cfa55e9211,x-systemd.requires=/srv/dev-disk-by-uuid-c48ec9be-fea7-4e66-a325-2cb7de03c642,x-systemd.requires=/srv/dev-disk-by-uuid-dbfc907f-5308-4a90-8b63-c546edd0ca49 0 0 # <<< [openmediavault] Summary for vault.lan ------------- Succeeded: 10 (changed=5) Failed: 1 ------------- Total states run: 11 Total run time: 569.048 ms -
Did you trying clearing your browser cache before deleting the config?
Yes, tried different browsers, private/incognito mode.
in my understanding, the problem is related to the fact that the disks have changed UUIDs
One more problem left - I 'lost' my UnionFS. I'll probably need to start another thread on this.
-
Fixed by deleting all the disk entries from the configuration file. Not sure that was the right way, but at least I see all the disks now and have them mounted.
-
Upgraded from 4 to 5 and cannot see my File Systems in the GUI: Storage - File Systems page is in endless "Loading..." state. At the same time I still see my disks in /etc/fstab.
How can I recover them?
-
fixed a minute ago using the steps from this post - Cannot login to OMV 5.5.6 via Web GUI
-
I've upgraded from 4 to 5 using this great script.
At the very end (I guess so) I've got an error related to grub - for whatever reason the old non-existent drive was still referenced somewhere in the configuration. Do I need to (re-)run some scripts after reboot in order to finalize the upgrade process?
Creating config file /etc/php/7.3/cgi/php.ini with new version
Setting up php7.3-fpm (7.3.29-1~deb10u1) ...
Creating config file /etc/php/7.3/fpm/php.ini with new version
Created symlink /etc/systemd/system/multi-user.target.wants/php7.3-fpm.service -> /lib/systemd/system/php7.3-fpm.service.
Setting up php-pam (1.0.3-1+deb10u1) ...
Setting up grub2-common (2.02+dfsg1-20+deb10u4) ...
Setting up libgfchangelog0:amd64 (5.5-3) ...
Setting up grub-pc-bin (2.02+dfsg1-20+deb10u4) ...
Setting up grub-pc (2.02+dfsg1-20+deb10u4) ...
/dev/disk/by-id/ata-WDC_WD2503ABYX-01WERA0_WD-WMAYR0116834 does not exist, so cannot grub-install to it!
You must correct your GRUB install devices before proceeding:
DEBIAN_FRONTEND=dialog dpkg --configure grub-pc
dpkg --configure -a
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 1
Setting up libgfapi0:amd64 (5.5-3) ...
Setting up php-fpm (2:7.3+69) ...
Setting up php-cgi (2:7.3+69) ...
Setting up libglusterfs-dev (5.5-3) ...
Setting up glusterfs-common (5.5-3) ...
Installing new version of config file /etc/logrotate.d/glusterfs-common ...
Adding group `gluster' (GID 122) ...
Done.
Setting up glusterfs-client (5.5-3) ...
Setting up liblvm2cmd2.03:amd64 (2.03.02-3) ...
Setting up dmeventd (2:1.02.155-3) ...
dm-event.service is a disabled or a static unit not running, not starting it.
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for systemd (241-7~deb10u7) ...
Errors were encountered while processing:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
dh-python e2fslibs libbind9-140 libcomerr2 libdbus-glib-1-2 libdns162
libevent-2.0-5 libfile-copy-recursive-perl libicu57 libisc160 libisccc140
libisccfg140 liblvm2app2.2 liblvm2cmd2.02 liblwres141 libntfs-3g871 libonig4
libperl5.24 libpython3.5-minimal libpython3.5-stdlib liburcu4
php-symfony-polyfill-apcu python3-distutils python3-lib2to3 python3.5
python3.5-minimal update-inetd
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up grub-pc (2.02+dfsg1-20+deb10u4) ...
/dev/disk/by-id/ata-WDC_WD2503ABYX-01WERA0_WD-WMAYR0116834 does not exist, so cannot grub-install to it!
You must correct your GRUB install devices before proceeding:
DEBIAN_FRONTEND=dialog dpkg --configure grub-pc
dpkg --configure -a
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
run-parts: /root/openmediavault-upgrade-4.7/run.d/80-apt-dist-upgrade exited with return code 100
root@vault:~/openmediavault-upgrade-4.7#
-
Upgraded from 4 to 5 and cannot login in web admin anymore. Different browsers, private/incognito mode as well.
`omv-firstaid` does not help. What can I try?
from /var/log/auth.log :
-
Make sure it is supported by NUT.
-
What are you trying to match?
My understanding was that the backup script name [in /var/lib/openmediavault/usbbackup.d/] is based on the drive UUID, this is what I see in your script:
Code# your drive drive="854fe912-9f08-423d-9bc8-26a404cae6d0" # run backup script /usr/sbin/omv-run -e -s 'USB Backup (device=${drive})' -a 'From: USB Backup <root>' /var/lib/openmediavault/usbbackup.d/sync-${drive}"
I thought that 854fe912-9f08-423d-9bc8-26a404cae6d0 in this example is the UUID of the USB drive, this id is used as a part of the backup script name. With this wrong assumption I was trying to find a match between my disk UUID and my backup script name.
After some digging I found that it is not a disk UUID but a job uuid found in ${OMV_CONFIG_FILE}. Now I can either mimic some code from usbbackup script or just hardcode this id it in my own script.
-
It is the UUID of the drive reported by blkid.
I've started from checking with blkid and ls -l /dev/disk/*/* - I see no match on my system
-
I'm going to use USB Backup plugin to regularly backup data to 4TB WD HDD installed in Ugreen USB3 enclosure. Here is some information about it:
ID 174c:55aa ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
I have a few questions around that.
1. My enclosure has a pre-set to spin-down a disk after some inactivity period (few minutes). Should I leave it as it is or try to change this behavior?
2. I want the sync happen not only on the disk plug-in, but also on a schedule if the drive remains plugged in.
For #2 I found the old example from ryecoaaron : USB Backup Settings - Just Stopped Working
Will give it a try but need to clarify something first. This script is using some id to refer to the external disk partition. I'm not sure which particular id I should use.
I'm checking on my system and see some id as a part of the script name:
Code# ll /var/lib/openmediavault/usbbackup.d total 8 -rwxr-xr-x 1 root root 1636 May 22 10:53 openmediavault-usbbackup-9be5d73708b375775c28a72exxxxxxxx -rwxr-xr-x 1 root root 1061 May 22 10:53 rsync-54dfab8e-e9d1-4b36-a9d7-d3afxxxxxxxx
However, I was not able to correlate this id with any other id on my system, like UUID, etc. How this id is generated?
-
cron @3:00am every fourth day
Is it possible to set something like that from OMV GUI? It should be */4 as a day, but I guess that is not available in the GUI.
-
What am I doing wrong?
It looks like you're ignoring the warning that is supposed to be there:
Code$ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
You should configure your network setting in the Web GUI.
If you want to do this manually you can try to edit /etc/network/interfaces, here is an example: -
4.0.4 is in the repo now.
all looks good after this update, thank you @ryecoaaron