02-01-2023, 12:19 AM | #1 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Linux OpenSUSE with btrfs: Supported?
Should Calibre work 'properly' using Linux OpenSUSE with btrfs?
|
02-01-2023, 02:48 AM | #2 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
02-01-2023, 12:34 PM | #3 |
Addict
Posts: 287
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
|
I'm not sure about OpenSUSE or anything it might do differently, but if it helps at all, I run Calibre with zero issues on Arch Linux using multiple btrfs filesystems. My root partition is btrfs, and so is my home partition – Calibre is installed to the root partition (through my package manager) and my Calibre Library is stored in my home partition.
If you start doing strange things like restoring a snapshot while Calibre is open and running, then I could easily imagine strangeness, in exactly the same way that I would expect strangeness if Calibre was running and I went and started messing about with files in the library directory. But as long as you're restoring a proper snapshot of the entire Calibre library directory, and Calibre is not open at the time, then I can't see how btrfs could otherwise cause problems. |
02-01-2023, 02:59 PM | #4 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
A Calibre user of one of my plugins has been having an impossible time getting APSW to connect (ATTACH) to multiple Libraries sequentially. She uses OpenSUSE with btrfs, and has had no problems with Calibre until now with this very specific issue. APSW is spectacularly unhelpful as to why it gets an OpenError; debugging log shown nothing worthwhile.
The connection for attachment is supposed to look like this, but always throws an exception, OpenError, just after the "Attaching to New Source Library:" message, where the APSW SQL "ATTACH DATABASE 's:/calibre/calibrelibrarycodes/metadata.db' AS 'SOURCE' ;" is executed by APSW. Code:
ATTACH DATABASE 's:/calibre/calibrelibrarycodes/metadata.db' AS 'SOURCE' ; length of path: 42 Attaching to New Source Library: s:/calibre/calibrelibrarycodes/metadata.db Now Attached to New Source Library: s:/calibre/calibrelibrarycodes/metadata.db PRAGMA SOURCE.busy_timeout = 4000; Finished: apsw_attach_to_source I don't use Linux except for my Raspberry Pi Manjaro/Arch Calibre server. DaltonST |
02-01-2023, 07:00 PM | #5 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What's with the s:/ prefix on those paths?
|
02-01-2023, 09:16 PM | #6 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
That was the example debug log from my testing to ensure it still works on my Windows 11 system, not the OpenSUSE btrfs path of the user's latest log that I just got: */home/susan/calibre/testlibrary
She defragged btrfs, and nothing changed. |
01-14-2024, 11:03 PM | #7 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Jan 2024
Device: Sage / rm2
|
If this comes up again, ask the user if they disabled copy-on-write for their database. There is really bad advice out there about btrfs and databases. Users commonly (and incorrectly) do
Code:
chattr +C /path/to/database I have been using Calibre on a multi-disk btrfs system for years, and the only problems have been self-made. Aside from the time I believed it would be wise to convert my Kobo's filesystem to btrfs, the worst experiences came from disabling CoW for things like databases and VMs. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
USB connection issues - Linux OpenSUSE, Onyx Note Pro | rhizomatic | Onyx Boox | 11 | 07-01-2022 11:44 AM |
Libra btrfs and my kobo | shoelesshunter | Kobo Developer's Corner | 3 | 07-27-2020 12:08 PM |
devices supported by mainstream linux distros (future proofing) | Sgt.Stubby | Which one should I buy? | 9 | 12-17-2013 04:34 PM |
OpenSuSE 12.3 and Huawei P6 | navy_seabear | Devices | 3 | 09-30-2013 02:41 PM |
libprs500 on openSuse 10.3? | mauibay | Calibre | 25 | 01-12-2008 08:21 PM |