GithubHelp home page GithubHelp logo

Comments (4)

Dimrok avatar Dimrok commented on May 22, 2024 1

I'm closing this issue.

infinit network create/update now (since 0.6.0) allows for setting an admin user (via --admin-rw). This admin user has permissions over every files, hence, can remove the whole content of a volume.

from infinit.

chris-crone avatar chris-crone commented on May 22, 2024

Hi @Fank! Thanks for your really detailed report.

When you run infinit volume delete, you just remove the descriptor for the volume. The --purge option is used to update or destroy objects that depend on the object that you're deleting. For example: if you purge a volume, you will remove drives that depend on it; if you purge a network, you will remove volumes and drives that depend on it; if you purge a silo then network that uses it is unlinked; etc.

The only way to remove the volume's data is to clear the silo or silos associated with it. Note that doing this will remove all data from all volumes which use the network associated with the silo.

$ infinit network delete fankserver/cluster --purge
$ infinit silo delete <your silo name> --clear-content

From here you can rebuild your infrastructure:

$ infinit silo create filesystem <your silo name>
$ infinit network create fankserver/cluster -S <your silo name>
$ infinit volume create fankserver/test -N fankserver/cluster

from infinit.

Fank avatar Fank commented on May 22, 2024

Thanks for the info,
but there should be a option to "purge" a volume with its content.
In my example i setup some silos initial and do not want to delete them because they contains multiple volumes.

from infinit.

chris-crone avatar chris-crone commented on May 22, 2024

Unfortunately we cannot provide an option to remove the contents of a volume because of how Infinit works. Our access control in the file system relies on encrypting blocks so that only the user who wrote them (or who have permissions to read/write) can read them. This means that it's not necessarily possible for a single user to traverse the entire file system tree and find all the blocks used for a volume.

The only workaround that I can think of for your case would be to make sure that you have a user who has read/write permissions on all files who can run rm -r * at the root of the volume.

from infinit.

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.