GithubHelp home page GithubHelp logo

Comments (6)

zdykstra avatar zdykstra commented on August 25, 2024 1

I'll update my installed copy of pyzfscmds and give it a try tonight. Thanks!

from zedenv.

johnramsden avatar johnramsden commented on August 25, 2024

Hi there. Thanks for the feedback.

That is strange it's listing from the wrong pool.

Just to get a bit of information about what is happening during activation, can you activate void again with the --verbose flag. Don't forget to activate your regular boot environment after.

from zedenv.

zdykstra avatar zdykstra commented on August 25, 2024

I recreated each step with --verbose. Below is the output, slightly sanitized due to znapzend backup information.

# ./zfs-bootenv/bin/zedenv create --verbose test-1
Creating Boot Environment:

Getting properties of boot/ROOT/test-1 for clones [{'snapshot': 'boot/ROOT/void@2018-05-30-22-065587', 'properties': ['mountpoint=/', 'org.znapzend:recursive=off', 'org.znapzend:dst_b_plan=1months=>1days,1years=>1weeks', 'org.znapzend:zend_delay=0', 'org.znapzend:post_znap_cmd=off', 'org.znapzend:tsformat=%Y-%m-%d-%H%M%S', 'org.znapzend:mbuffer_size=512M', 'org.znapzend:dst_a_plan=1months=>1days,1years=>1weeks', 'org.znapzend:dst_a=storage/backups/menegroth/boot/ROOT/void', 'org.znapzend:pre_znap_cmd=off', 'org.znapzend:enabled=on', 'org.znapzend:src_plan=1days=>1hours,1months=>1days', 'org.znapzend:dst_b=root@xxx:storage/backups/menegroth', 'org.znapzend:mbuffer=/usr/bin/mbuffer', 'canmount=off'], 'datasetchild': ''}]

-bash-4.4# ./zfs-bootenv/bin/zedenv activate --verbose test-1
Activating Boot Environment: test-1

Boot environment test-1 exists'

Mount dataset for customization

Mounted boot/ROOT/test-1 to /tmp/tmpyta6epge

Unmounted boot/ROOT/test-1 from /tmp/tmpyta6epge

Disabled automount for boot/ROOT/void

Promoted boot/ROOT/test-1.

# ./zfs-bootenv/bin/zedenv list --verbose
Listing Boot Environments:

Name    Active   Mountpoint   Creation              
void    N        /            Wed-May-9-19:54-2018  
test-1  R        -            Wed-May-30-22:02-2018 

The system was then rebooted into test-1.

# ./zfs-bootenv/bin/zedenv list --verbose
Listing Boot Environments:

Name    Active   Mountpoint                                 Creation              
void             /storage/backups/menegroth/boot/ROOT/void  Wed-May-9-19:54-2018  
test-1  NR       /                                          Wed-May-30-22:02-2018 

# ./zfs-bootenv/bin/zedenv activate void --verbose
Activating Boot Environment: void

Boot environment void exists'

Unmounting /storage/backups/menegroth/boot/ROOT/void.

Mount dataset for customization

Mounted boot/ROOT/void to /tmp/tmpct0scck0

Unmounted boot/ROOT/void from /tmp/tmpct0scck0

Disabled automount for boot/ROOT/test-1

Promoted boot/ROOT/void.

# df -h | grep void
#

Let me know if there's any additional information I can provide for you.

from zedenv.

johnramsden avatar johnramsden commented on August 25, 2024

So I was able to reproduce it.

The problem occurs in pyzfscmds, I just pushed up a fix johnramsden/pyzfscmds@b20a964

In /proc/mounts it was finding:

storage/backups/menegroth/boot/ROOT/void /storage/backups/menegroth/boot/ROOT/void zfs rw,... 0 0

and thinking it found the dataset boot/ROOT/void. Now it will check for a match from the line start.


Can you make sure that fixes it for you, you'll need to update pyzfscmds.

from zedenv.

zdykstra avatar zdykstra commented on August 25, 2024

Worked like a charm! I was able to activate a new environment, boot into it and then get the correct listing from zedenv list.

from zedenv.

johnramsden avatar johnramsden commented on August 25, 2024

Awesome! Thanks for your help tracking down the bug.

from zedenv.

Related Issues (18)

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.