Giter VIP home page Giter VIP logo

invariantdisks's People

Contributors

cbreak-black avatar ilovezfs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ilovezfs brad-x

invariantdisks's Issues

by-serial links not deleted upon device removal

It returns here instead of removing the link:

https://github.com/cbreak-black/InvariantDisks/blob/master/InvariantDisks/IDSerialLinker.cpp#L123-L124

@cbreak-black's analysis: "I wasn't able to associate it with any device. Caching. That's what would be needed. Some mapping of devices to serials for the purpose of removability. Anyway, the issue with caching would be that it would be runtime only, but I could re-read the data from existing symlinks on startup. (Not that that'd be too relevant, considering I can just as well delete every symlink and start fresh)."

by-serial partitions

Short version, it would be nice if there was a :1 in the by-serial subdirectory:

ls -l /var/run/disk/*|grep disk30
lrwxr-xr-x  1 root  daemon  11  1 Dec 09:41 PCI0@0-XHC1@14-@e:0 -> /dev/disk30
lrwxr-xr-x  1 root  daemon  13  1 Dec 09:41 PCI0@0-XHC1@14-@e:1 -> /dev/disk30s1
lrwxr-xr-x  1 root  daemon  11  1 Dec 09:41 My_Book_114-WD-WMC1T207639 -> /dev/disk30

The disk in question is dual-labelled, with a protective MBR (type 0xEE) that Mac OS X sees with advanced format native 4k blocks, and with a GPT partition that vmware sees with 512 byte blocks (since VMWare Fusion shows raw disks as being 512 devices).

The result is that with

export ZPOOL_IMPORT_PATH=/var/run/disk/by-id:/var/run/disk/by-serial:/var/run/disk/by-path:/dev
zpool import -N pool

the by-path gets used, and it's not actually invariant... :(

   pool: black
     id: 3271856477414186805
  state: ONLINE
 action: The pool can be imported using its name or numeric identifier.
 config:

    black                                                             ONLINE
      raidz1-0                                                        ONLINE
        /var/run/disk/by-path/PCI0@0-XHC1@14-@d:1                     ONLINE
        /var/run/disk/by-path/PCI0@0-XHC1@14-@e:1                     ONLINE
        /var/run/disk/by-path/PCI0@0-XHC1@14-@11:1                    ONLINE
    cache
      /var/run/disk/by-id/media-D88B53A1-5C4E-8A4A-AE55-3052BF577C30
    logs
      disk39                                                          ONLINE

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.