Giter Club home page Giter Club logo

Comments (6)

johnramsden avatar johnramsden commented on September 2, 2024 1

I do use Docker on ZFS, and use a separate data set mounted to /var/lib/docker to keep my BE root tidy, and to keep my data seperate. You might want to do that if you want to keep things tidy.

For easy cleanup you can also delete them with:

docker system prune -a

Keep in mind this will prune various things you may not want pruned, which the prompt will warn you about.

from alez.

dmp1ce avatar dmp1ce commented on September 2, 2024

I guess many datasets are created but I don't understand why, how or when they are created. Can you give me some insight as to the reason for all these default datasets? Can some of them be removed?

david@bar:~$ zfs list -r zroot/ROOT | head
NAME                                                                                                                       USED  AVAIL     REFER  MOUNTPOINT
zroot/ROOT                                                                                                                 217G   186G      176K  none
zroot/ROOT@syncoid_bar_2020-09-28:23:59:01                                                                                   0B      -      176K  -
zroot/ROOT/default                                                                                                         217G   186G      135G  /
zroot/ROOT/default@syncoid_bar_2020-09-28:23:59:06                                                                        1.37G      -      135G  -
zroot/ROOT/default/0004106facc034e1d2d75d4372f4b7f28e1aba770e715b48d0ed1dd9221f70c9                                        212K   186G      532M  legacy
zroot/ROOT/default/0004106facc034e1d2d75d4372f4b7f28e1aba770e715b48d0ed1dd9221f70c9@620970535                                8K      -      532M  -
zroot/ROOT/default/00114407428dc8fc68806430cc3ee24790273c29f21feed222b40676d52af064                                        196K   186G      322M  legacy
zroot/ROOT/default/00114407428dc8fc68806430cc3ee24790273c29f21feed222b40676d52af064@11882290                                 8K      -      322M  -
zroot/ROOT/default/005ebedcb2476c7be47742af3d206ab55c1edbfa74adf318f7d62f0b35ad2580                                        964K   186G      201M  legacy

from alez.

dmp1ce avatar dmp1ce commented on September 2, 2024

I'm trying to research this myself and I found the zectl tool and this issue: johnramsden/zectl#16

Here is my output with zectl list:

david@bar:~$ zectl list
Name     Active  Mountpoint  Creation          
default  NR      /                 2018-12-20 19:36  
david@bar:~$ zectl version
0.1.2

I'm not sure if I can even use zectl with my setup. I didn't see a migration path or issue for using zectl for old setups.

from alez.

dmp1ce avatar dmp1ce commented on September 2, 2024

Docker is making all of these zroot/ROOT/default/xxxxxxxxx datasets, so my issue has nothing to do with ALEX. For anyone else coming across this, see this question on StackOverflow. https://stackoverflow.com/questions/52387244/how-to-clean-up-docker-zfs-legacy-shares

from alez.

danboid avatar danboid commented on September 2, 2024

Thanks for explaining your issue David! I can't say I've used docker with ZFS yet myself.

from alez.

dmp1ce avatar dmp1ce commented on September 2, 2024

Thank you! I decided to move all the datasets into /docker. I had about 600 datasets to move though, so I had to write a short bash script to do it. docker system prune without the -a was also helpful. Removed about 1000 or so unnecessary ZFS datasets.

from alez.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.