markbaaijens / rpmusicserver

Transform a Raspberry Pi in a music server with LMS (Squeezebox), Samba, transcoder, etc.
GNU General Public License v3.0
5 stars 0 forks source link

Bug: Swapping usbbackup to usbdata does not work as expected #128

Open markbaaijens opened 2 years ago

markbaaijens commented 2 years ago

Within RPMS, a backup consists of copying all data from the usbdata- to the usbbackup-disk, so the backup-disk is a complete mirror of de data-disk. Then, it should be possible to swap them in the case the data-disk fails, just by renaming the label from usbbackup to usbdata https://github.com/markbaaijens/rpmusicserver/blob/develop/README.md#disaster-recovery

Steps to reproduce

Problem: swapping usbbackup to usbdata seems to works (web/disk-info shows a mounted disk) but no data is seen on /media/usbdata (by ssh). This is probably a rights issue. It should be investigated further.

Related: https://github.com/markbaaijens/rpmusicserver/issues/183

markbaaijens commented 1 year ago

Tested on a test-system/rpmsdev: it seems to work as intended, so it works flawlessly. First the rename of the backup-stick from usbbackup to usbdata: after a reboot al functions well, smb, transcoding, lms, etc. And then the original usbdata-stick from usbdata to usbbackup: a backup can be made without any trouble.

Maybe test in a (another) production system?