The BTRFS filesystem used for urbackup backups on /dev/sdd (/var/backups/urbackup) is remounted readonly even after a reboot. Urbackup can't create new files when backing up so the new backups are failing.
The btrfs check command reports lots of errors.
The dmesg command doesn't report anything special for /dev/sdd nor /dev/sdc so hopefully the hardware is still OK.
Uninstall then reinstall urbackup... I thought that the urbackup DB was also on the failed FS but apparently I have a /var/urbackup directory which has the DB and configuration files. However I had already done an uninstall so I had to reinstall. The ppa has disappeared probably during an Ubuntu upgrade so I had to add the repository back again:
- sudo add-apt-repository ppa:uroni/urbackup
- sudo apt-get install urbackup-server -y
This apt-get also pulled a lot of libraries and other packages, probably prerequisites. During install, I chose to "keep" my configuration instead of replacing it with the one coming from the package.
Install went fine but the configure step failed. I still have /etc/urbackup/backupfolder containing the location of the (readonly) directory on BTRFS: /var/backups/urbackup
So the chown is failing due to that directory being readonly for the moment:
Setting up urbackup-server (2.5.27.0-1ubuntu1~jammy) ...
chown: changing ownership of '/var/backups/urbackup': Read-only file system
dpkg: error processing package urbackup-server (--configure):
installed urbackup-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
urbackup-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
chown: changing ownership of '/var/backups/urbackup': Read-only file system
dpkg: error processing package urbackup-server (--configure):
installed urbackup-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
urbackup-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thus, remove urbackup-server package again and first work on the BTRFS issue:
sudo apt remove urbackup-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
augeas-lenses cpu-checker db-util db5.3-util debootstrap dmeventd extlinux guestfish guestfs-tools guestmount hfsplus ibverbs-providers icoutils ipxe-qemu ipxe-qemu-256k-compat-efi-roms kpartx ldmtool libafflib0v5 libaugeas0 libbfio1 libboost-iostreams1.74.0 libboost-thread1.74.0 libcacard0 libconfig9
libdate-manip-perl libdaxctl1 libdecor-0-0 libdecor-0-plugin-1-cairo libdevmapper-event1.02.1 libewf2 libfdt1 libgfapi0 libgfrpc0 libgfxdr0 libglusterfs0 libguestfs-hfsplus libguestfs-perl libguestfs-reiserfs libguestfs-tools libguestfs-xfs libguestfs0 libhfsp0 libhivex0 libibverbs1 libintl-perl libintl-xs-perl
libiscsi7 libldm-1.0-0 liblvm2cmd2.03 libndctl6 libpmem1 libpmemobj1 librados2 librbd1 librdmacm1 librpm9 librpmio9 libsdl2-2.0-0 libslirp0 libspice-server1 libstring-shellquote-perl libsys-virt-perl libtsk19 libusbredirparser1 libvhdi1 libvirglrenderer1 libvirt0 libvmdk1 libwin-hivex-perl libxss1 libyajl2
libyara8 lsscsi lvm2 msr-tools osinfo-db ovmf qemu-block-extra qemu-system-common qemu-system-data qemu-system-gui qemu-system-x86 qemu-utils rpm-common scrub seabios sleuthkit sqlite3 supermin thin-provisioning-tools virt-p2v zerofree
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
urbackup-server
0 upgraded, 0 newly installed, 1 to remove and 12 not upgraded.
1 not fully installed or removed.
After this operation, 25,1 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 151049 files and directories currently installed.)
Removing urbackup-server (2.5.27.0-1ubuntu1~jammy) ...
Processing triggers for man-db (2.10.2-1) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
augeas-lenses cpu-checker db-util db5.3-util debootstrap dmeventd extlinux guestfish guestfs-tools guestmount hfsplus ibverbs-providers icoutils ipxe-qemu ipxe-qemu-256k-compat-efi-roms kpartx ldmtool libafflib0v5 libaugeas0 libbfio1 libboost-iostreams1.74.0 libboost-thread1.74.0 libcacard0 libconfig9
libdate-manip-perl libdaxctl1 libdecor-0-0 libdecor-0-plugin-1-cairo libdevmapper-event1.02.1 libewf2 libfdt1 libgfapi0 libgfrpc0 libgfxdr0 libglusterfs0 libguestfs-hfsplus libguestfs-perl libguestfs-reiserfs libguestfs-tools libguestfs-xfs libguestfs0 libhfsp0 libhivex0 libibverbs1 libintl-perl libintl-xs-perl
libiscsi7 libldm-1.0-0 liblvm2cmd2.03 libndctl6 libpmem1 libpmemobj1 librados2 librbd1 librdmacm1 librpm9 librpmio9 libsdl2-2.0-0 libslirp0 libspice-server1 libstring-shellquote-perl libsys-virt-perl libtsk19 libusbredirparser1 libvhdi1 libvirglrenderer1 libvirt0 libvmdk1 libwin-hivex-perl libxss1 libyajl2
libyara8 lsscsi lvm2 msr-tools osinfo-db ovmf qemu-block-extra qemu-system-common qemu-system-data qemu-system-gui qemu-system-x86 qemu-utils rpm-common scrub seabios sleuthkit sqlite3 supermin thin-provisioning-tools virt-p2v zerofree
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
urbackup-server
0 upgraded, 0 newly installed, 1 to remove and 12 not upgraded.
1 not fully installed or removed.
After this operation, 25,1 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 151049 files and directories currently installed.)
Removing urbackup-server (2.5.27.0-1ubuntu1~jammy) ...
Processing triggers for man-db (2.10.2-1) ...
Aucun commentaire:
Enregistrer un commentaire