GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Notices by Dean (dean@uwu.social)

  1. Embed this notice
    Dean (dean@uwu.social)'s status on Thursday, 30-May-2024 19:21:20 JST Dean Dean
    in reply to
    • :blobcathug:

    @Jain that's a good idea! Might look into this and see how feasible it is for us

    In conversation Thursday, 30-May-2024 19:21:20 JST from uwu.social permalink
  2. Embed this notice
    Dean (dean@uwu.social)'s status on Thursday, 30-May-2024 19:06:15 JST Dean Dean
    in reply to
    • :blobcathug:

    @Jain the 8TB is the raw volume size if we were to copy the ext4 partition over instead of rsyncing each file over. Sorry if that wasn't clear 🙏

    In conversation Thursday, 30-May-2024 19:06:15 JST from uwu.social permalink
  3. Embed this notice
    Dean (dean@uwu.social)'s status on Thursday, 30-May-2024 19:05:01 JST Dean Dean
    in reply to
    • :blobcathug:

    @Jain yeah we purged media before we started, I don't think it speeds up the file listing though because the hash directories get left behind AFAIK :(

    In conversation Thursday, 30-May-2024 19:05:01 JST from uwu.social permalink
  4. Embed this notice
    Dean (dean@uwu.social)'s status on Thursday, 30-May-2024 18:52:12 JST Dean Dean

    We're struggling to figure out a good way to migrate Mastodon media storage from one server to another... Mastodon stores files in millions of directories by hash (kinda like aaa/bbb/ccc/ddd) which means doing something simple like an initial rsync and then taking Mastodon down for a quick resync is impossible. We initially were going to go this route but after the initial file listing took more than 24h we cancelled it and gave up.

    So now we're looking at just copying the raw filesystem over, but if we want to do it without taking mastodon down for the entire sync we need to come up with a way of copying it and resyncing the changed blocks afterwards.

    One way could be to use overlayfs. Remount the old volume R/O, create a temporary upperdir and create an overlay between them. Then, copy the R/O image to it's new home, expand it or whatever, and apply the upperdir onto it. This way we only need to list the directories that actually had writes. Special care will need to be taken to ensure we delete any files that have overlayfs tombstones. IDK if anyone has ever done this before.

    Another way could be to use devmapper snapshots to create a new COW-backed volume, rsync the R/O underlying block device over and then apply the COW to the new volume with snapshot-merge. We tried testing this out and caused devmapper to die horribly and spit out kernel bug log lines, so we had to reboot and e2fsck for 2 hours.

    At this point it might be better to just take everything down for as long as it takes. I'm extremely annoyed at Mastodon's file structure making it impossible to move without major downtime. Their solution just seems to be "use S3 lol". It would probably take 24 hours (8TB at 1Gbps is roughly 17 hours). We could shrink it first since we don't use all the space, but resize2fs will take a while as well.

    If anyone has any tips or ideas for doing it with minimal downtime I'd like to hear them. Or if you're an uwu.social user and don't care about extended downtime I'd also like to hear your thoughts too.

    In conversation Thursday, 30-May-2024 18:52:12 JST from uwu.social permalink

    Attachments



  5. Embed this notice
    Dean (dean@uwu.social)'s status on Friday, 18-Aug-2023 22:43:36 JST Dean Dean

    box maxing

    In conversation Friday, 18-Aug-2023 22:43:36 JST from uwu.social permalink

    Attachments


    1. https://files.uwu.social/media_attachments/files/110/910/894/070/581/656/original/2a4b671ac7289b95.png
  6. Embed this notice
    Dean (dean@uwu.social)'s status on Tuesday, 11-Jul-2023 22:19:34 JST Dean Dean

    uwu.social was down for a bit because of a Hetzner billing issue causing my account to be blocked, support fixed it after I emailed them. Sorry about the wait!

    In conversation Tuesday, 11-Jul-2023 22:19:34 JST from uwu.social permalink

User actions

    Dean

    Dean

    uwu.social administrator
cool guy

    Tags
    • (None)

    Following 0

      Followers 0

        Groups 0

          Statistics

          User ID
          148195
          Member since
          11 Jul 2023
          Notices
          6
          Daily average
          0

          Feeds

          • Atom
          • Help
          • About
          • FAQ
          • TOS
          • Privacy
          • Source
          • Version
          • Contact

          GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

          Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.