ZFS on Linux: Which mountpoint option when mounting manually per script?Upgraded Ubuntu, all drives in one...

Is there a way to improve my grade after graduation?

…down the primrose path

ZFS on Linux: Which mountpoint option when mounting manually per script?

Is it uncompelling to continue the story with lower stakes?

Based on what criteria do you add/not add icons to labels within a toolbar?

Why did the US Airways Flight 1549 passengers stay on the wings?

Is the first page of a novel really that important?

Piece de Resistance - Introduction & Ace and A's

Why wasn't interlaced CRT scanning done back and forth?

Would this winged human/angel be able to fly?

Is space radiation a risk for space film photography, and how is this prevented?

Why is it to say 'paucis post diebus'?

What could prevent players from leaving an island?

Is there a general term for the items in a directory?

What do "unsettled funds" mean?

What are the limitations of the Hendersson-Hasselbalch equation?

What does Argus Filch specifically do?

Does a humanoid possessed by a ghost register as undead to a paladin's Divine Sense?

When using the Proficiency Dice optional rule, how should they be used in determining a character's Spell Save DC?

What is the reason behind water not falling from a bucket at the top of loop?

Is there a way to say "double + any number" in German?

what can you do with Format View

how to change dot to underline in multiple file-names?

Need reasons why a satellite network would not work



ZFS on Linux: Which mountpoint option when mounting manually per script?


Upgraded Ubuntu, all drives in one zpool marked unavailableZFS on Linux denied access when accessing child dataset on NFSAccess iSCSI block device, setup as ZFS volume on CentOS7 - won't automount on boot, hangs on rebootBroken ACLs when “zfs send”ing a snapshot from a Linux machine to SolarisHow to import a child of a broken zpool mirror on a different host?zfs mountpoint not using the datasetUnable to detect/mount zfs pool created on different machineRestoring data after zfs destroyDocker service starts before ZFSWait before zpool import on Ubuntu boot






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







3















I want to create a zpool with ZFS on Linux (7.13) on Ubuntu 18.04. The problem is that the pool will be created based on LUKS encrypted drives (not root, only external). These drives are decrypted and loaded during boot by a script which i created since they are pulling a key file from an external source.



To avoid any issues with timing where the system wants to mount the zpool before the drives are decrypted and loaded I would like to mount the pool also manually as part of the script.



Now I ask myself which option I should choose for the mountpoint at creating the pool: none or legacy



The man page does not really help what the real difference is:




If a file system's mount point is set to legacy ZFS makes no attempt to manage the file system, and the administrator is responsible for mounting and unmounting the file system. Because pools must be imported before a legacy mount can succeed, administrators should ensure that legacy mounts are only attempted after the zpool import process finishes at boot time. For example, on machines using systemd, the mount option




Does anybody know the real differences and how to achieve a manual mounting later by script the best way?










share|improve this question







New contributor



MelBourbon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




























    3















    I want to create a zpool with ZFS on Linux (7.13) on Ubuntu 18.04. The problem is that the pool will be created based on LUKS encrypted drives (not root, only external). These drives are decrypted and loaded during boot by a script which i created since they are pulling a key file from an external source.



    To avoid any issues with timing where the system wants to mount the zpool before the drives are decrypted and loaded I would like to mount the pool also manually as part of the script.



    Now I ask myself which option I should choose for the mountpoint at creating the pool: none or legacy



    The man page does not really help what the real difference is:




    If a file system's mount point is set to legacy ZFS makes no attempt to manage the file system, and the administrator is responsible for mounting and unmounting the file system. Because pools must be imported before a legacy mount can succeed, administrators should ensure that legacy mounts are only attempted after the zpool import process finishes at boot time. For example, on machines using systemd, the mount option




    Does anybody know the real differences and how to achieve a manual mounting later by script the best way?










    share|improve this question







    New contributor



    MelBourbon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      3












      3








      3








      I want to create a zpool with ZFS on Linux (7.13) on Ubuntu 18.04. The problem is that the pool will be created based on LUKS encrypted drives (not root, only external). These drives are decrypted and loaded during boot by a script which i created since they are pulling a key file from an external source.



      To avoid any issues with timing where the system wants to mount the zpool before the drives are decrypted and loaded I would like to mount the pool also manually as part of the script.



      Now I ask myself which option I should choose for the mountpoint at creating the pool: none or legacy



      The man page does not really help what the real difference is:




      If a file system's mount point is set to legacy ZFS makes no attempt to manage the file system, and the administrator is responsible for mounting and unmounting the file system. Because pools must be imported before a legacy mount can succeed, administrators should ensure that legacy mounts are only attempted after the zpool import process finishes at boot time. For example, on machines using systemd, the mount option




      Does anybody know the real differences and how to achieve a manual mounting later by script the best way?










      share|improve this question







      New contributor



      MelBourbon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I want to create a zpool with ZFS on Linux (7.13) on Ubuntu 18.04. The problem is that the pool will be created based on LUKS encrypted drives (not root, only external). These drives are decrypted and loaded during boot by a script which i created since they are pulling a key file from an external source.



      To avoid any issues with timing where the system wants to mount the zpool before the drives are decrypted and loaded I would like to mount the pool also manually as part of the script.



      Now I ask myself which option I should choose for the mountpoint at creating the pool: none or legacy



      The man page does not really help what the real difference is:




      If a file system's mount point is set to legacy ZFS makes no attempt to manage the file system, and the administrator is responsible for mounting and unmounting the file system. Because pools must be imported before a legacy mount can succeed, administrators should ensure that legacy mounts are only attempted after the zpool import process finishes at boot time. For example, on machines using systemd, the mount option




      Does anybody know the real differences and how to achieve a manual mounting later by script the best way?







      mount ubuntu-18.04 zfsonlinux






      share|improve this question







      New contributor



      MelBourbon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      MelBourbon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      MelBourbon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 10 hours ago









      MelBourbonMelBourbon

      161 bronze badge




      161 bronze badge




      New contributor



      MelBourbon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      MelBourbon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



























          2 Answers
          2






          active

          oldest

          votes


















          2














          I use zfs on luks with portable drive. I have never had problems with the standard mount points. Mounting doesn’t happen until after the pool is imported, and that won’t happen until after the luks volume is unlocked. So I think you may be over thinking this.



          Anyway, if you really want to, go with legacy for manual mounting.






          share|improve this answer


























          • Mh, I tried, but now zpool status gives no pools available after reboot and syslog shows cannot import 'pool01': no such pool or dataset

            – MelBourbon
            6 hours ago













          • So it's like I expected. At the time ZFS is importing the pools at system boot the LUKS drive is not ready and syslog is showing a error message. I need to manually import the pool with zpool import poolname a little bit after decrypting and loading of the drives to get it working.

            – MelBourbon
            5 hours ago











          • Not sure what to tell use. I have been using zfs on luks for external drives for archives for a while. I even have my notes handy with tall the commands I use mounting, closing, formatting/etc. It all pretty much 'just works'. Notes: gist.github.com/zoredache/31958af23baa090ac662546047b9db08

            – Zoredache
            3 hours ago



















          2














          I've been using ZFS pools on LUKS encrypted volumes for the better part of a decade. It works fine.



          There is no reason to mount the pool manually to attempt to defeat nonexistent timing problems. Just create your pool normally and enjoy.



          To avoid any problems in the future, when creating and managing the pool, use the names beginning with luks- in the /dev/mapper directory to refer to the devices. For example, the devices:



          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856 -> ../../dm-5
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175 -> ../../dm-4
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144 -> ../../dm-2
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R -> ../../dm-3


          correspond to:



            pool: srv
          state: ONLINE
          scan: scrub repaired 0B in 0h42m with 0 errors on Tue Jul 30 14:42:04 2019
          config:

          NAME STATE READ WRITE CKSUM
          srv ONLINE 0 0 0
          mirror-0 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175 ONLINE 0 0 0
          mirror-1 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R ONLINE 0 0 0


          This pool is created with:



          zpool create -o ashift=12 srv 
          mirror
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175
          mirror
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R





          share|improve this answer




























          • But my LUKS encrypted volumes will be decrypted by a manual script with a delay and not by the normal system boot sequence. Does your use case also cover this. Because so far it does not work for me.

            – MelBourbon
            5 hours ago






          • 1





            @MelBourbon In that case you should zpool import the pool in your manual script also.

            – Michael Hampton
            5 hours ago











          • Thanks, yes this was helping. The only issue I know face is that there is a short delay between the luks decrypting and the time where zpool import works. If I do it directly afterwards the system tells me that the pool is not existing. I need now to figure out how much delay.

            – MelBourbon
            5 hours ago











          • @MelBourbon That's very strange. I have never seen such a delay. Exactly what is your script doing?

            – Michael Hampton
            4 hours ago






          • 1





            @MelBourbon Very strange, you shouldn't need any delay there. As soon as cryptsetup returns, the device should be ready to use. Your Ubuntu system might have something else wrong.

            – Michael Hampton
            3 hours ago














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          MelBourbon is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f978010%2fzfs-on-linux-which-mountpoint-option-when-mounting-manually-per-script%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          I use zfs on luks with portable drive. I have never had problems with the standard mount points. Mounting doesn’t happen until after the pool is imported, and that won’t happen until after the luks volume is unlocked. So I think you may be over thinking this.



          Anyway, if you really want to, go with legacy for manual mounting.






          share|improve this answer


























          • Mh, I tried, but now zpool status gives no pools available after reboot and syslog shows cannot import 'pool01': no such pool or dataset

            – MelBourbon
            6 hours ago













          • So it's like I expected. At the time ZFS is importing the pools at system boot the LUKS drive is not ready and syslog is showing a error message. I need to manually import the pool with zpool import poolname a little bit after decrypting and loading of the drives to get it working.

            – MelBourbon
            5 hours ago











          • Not sure what to tell use. I have been using zfs on luks for external drives for archives for a while. I even have my notes handy with tall the commands I use mounting, closing, formatting/etc. It all pretty much 'just works'. Notes: gist.github.com/zoredache/31958af23baa090ac662546047b9db08

            – Zoredache
            3 hours ago
















          2














          I use zfs on luks with portable drive. I have never had problems with the standard mount points. Mounting doesn’t happen until after the pool is imported, and that won’t happen until after the luks volume is unlocked. So I think you may be over thinking this.



          Anyway, if you really want to, go with legacy for manual mounting.






          share|improve this answer


























          • Mh, I tried, but now zpool status gives no pools available after reboot and syslog shows cannot import 'pool01': no such pool or dataset

            – MelBourbon
            6 hours ago













          • So it's like I expected. At the time ZFS is importing the pools at system boot the LUKS drive is not ready and syslog is showing a error message. I need to manually import the pool with zpool import poolname a little bit after decrypting and loading of the drives to get it working.

            – MelBourbon
            5 hours ago











          • Not sure what to tell use. I have been using zfs on luks for external drives for archives for a while. I even have my notes handy with tall the commands I use mounting, closing, formatting/etc. It all pretty much 'just works'. Notes: gist.github.com/zoredache/31958af23baa090ac662546047b9db08

            – Zoredache
            3 hours ago














          2












          2








          2







          I use zfs on luks with portable drive. I have never had problems with the standard mount points. Mounting doesn’t happen until after the pool is imported, and that won’t happen until after the luks volume is unlocked. So I think you may be over thinking this.



          Anyway, if you really want to, go with legacy for manual mounting.






          share|improve this answer













          I use zfs on luks with portable drive. I have never had problems with the standard mount points. Mounting doesn’t happen until after the pool is imported, and that won’t happen until after the luks volume is unlocked. So I think you may be over thinking this.



          Anyway, if you really want to, go with legacy for manual mounting.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 9 hours ago









          ZoredacheZoredache

          113k31 gold badges234 silver badges382 bronze badges




          113k31 gold badges234 silver badges382 bronze badges
















          • Mh, I tried, but now zpool status gives no pools available after reboot and syslog shows cannot import 'pool01': no such pool or dataset

            – MelBourbon
            6 hours ago













          • So it's like I expected. At the time ZFS is importing the pools at system boot the LUKS drive is not ready and syslog is showing a error message. I need to manually import the pool with zpool import poolname a little bit after decrypting and loading of the drives to get it working.

            – MelBourbon
            5 hours ago











          • Not sure what to tell use. I have been using zfs on luks for external drives for archives for a while. I even have my notes handy with tall the commands I use mounting, closing, formatting/etc. It all pretty much 'just works'. Notes: gist.github.com/zoredache/31958af23baa090ac662546047b9db08

            – Zoredache
            3 hours ago



















          • Mh, I tried, but now zpool status gives no pools available after reboot and syslog shows cannot import 'pool01': no such pool or dataset

            – MelBourbon
            6 hours ago













          • So it's like I expected. At the time ZFS is importing the pools at system boot the LUKS drive is not ready and syslog is showing a error message. I need to manually import the pool with zpool import poolname a little bit after decrypting and loading of the drives to get it working.

            – MelBourbon
            5 hours ago











          • Not sure what to tell use. I have been using zfs on luks for external drives for archives for a while. I even have my notes handy with tall the commands I use mounting, closing, formatting/etc. It all pretty much 'just works'. Notes: gist.github.com/zoredache/31958af23baa090ac662546047b9db08

            – Zoredache
            3 hours ago

















          Mh, I tried, but now zpool status gives no pools available after reboot and syslog shows cannot import 'pool01': no such pool or dataset

          – MelBourbon
          6 hours ago







          Mh, I tried, but now zpool status gives no pools available after reboot and syslog shows cannot import 'pool01': no such pool or dataset

          – MelBourbon
          6 hours ago















          So it's like I expected. At the time ZFS is importing the pools at system boot the LUKS drive is not ready and syslog is showing a error message. I need to manually import the pool with zpool import poolname a little bit after decrypting and loading of the drives to get it working.

          – MelBourbon
          5 hours ago





          So it's like I expected. At the time ZFS is importing the pools at system boot the LUKS drive is not ready and syslog is showing a error message. I need to manually import the pool with zpool import poolname a little bit after decrypting and loading of the drives to get it working.

          – MelBourbon
          5 hours ago













          Not sure what to tell use. I have been using zfs on luks for external drives for archives for a while. I even have my notes handy with tall the commands I use mounting, closing, formatting/etc. It all pretty much 'just works'. Notes: gist.github.com/zoredache/31958af23baa090ac662546047b9db08

          – Zoredache
          3 hours ago





          Not sure what to tell use. I have been using zfs on luks for external drives for archives for a while. I even have my notes handy with tall the commands I use mounting, closing, formatting/etc. It all pretty much 'just works'. Notes: gist.github.com/zoredache/31958af23baa090ac662546047b9db08

          – Zoredache
          3 hours ago













          2














          I've been using ZFS pools on LUKS encrypted volumes for the better part of a decade. It works fine.



          There is no reason to mount the pool manually to attempt to defeat nonexistent timing problems. Just create your pool normally and enjoy.



          To avoid any problems in the future, when creating and managing the pool, use the names beginning with luks- in the /dev/mapper directory to refer to the devices. For example, the devices:



          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856 -> ../../dm-5
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175 -> ../../dm-4
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144 -> ../../dm-2
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R -> ../../dm-3


          correspond to:



            pool: srv
          state: ONLINE
          scan: scrub repaired 0B in 0h42m with 0 errors on Tue Jul 30 14:42:04 2019
          config:

          NAME STATE READ WRITE CKSUM
          srv ONLINE 0 0 0
          mirror-0 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175 ONLINE 0 0 0
          mirror-1 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R ONLINE 0 0 0


          This pool is created with:



          zpool create -o ashift=12 srv 
          mirror
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175
          mirror
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R





          share|improve this answer




























          • But my LUKS encrypted volumes will be decrypted by a manual script with a delay and not by the normal system boot sequence. Does your use case also cover this. Because so far it does not work for me.

            – MelBourbon
            5 hours ago






          • 1





            @MelBourbon In that case you should zpool import the pool in your manual script also.

            – Michael Hampton
            5 hours ago











          • Thanks, yes this was helping. The only issue I know face is that there is a short delay between the luks decrypting and the time where zpool import works. If I do it directly afterwards the system tells me that the pool is not existing. I need now to figure out how much delay.

            – MelBourbon
            5 hours ago











          • @MelBourbon That's very strange. I have never seen such a delay. Exactly what is your script doing?

            – Michael Hampton
            4 hours ago






          • 1





            @MelBourbon Very strange, you shouldn't need any delay there. As soon as cryptsetup returns, the device should be ready to use. Your Ubuntu system might have something else wrong.

            – Michael Hampton
            3 hours ago
















          2














          I've been using ZFS pools on LUKS encrypted volumes for the better part of a decade. It works fine.



          There is no reason to mount the pool manually to attempt to defeat nonexistent timing problems. Just create your pool normally and enjoy.



          To avoid any problems in the future, when creating and managing the pool, use the names beginning with luks- in the /dev/mapper directory to refer to the devices. For example, the devices:



          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856 -> ../../dm-5
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175 -> ../../dm-4
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144 -> ../../dm-2
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R -> ../../dm-3


          correspond to:



            pool: srv
          state: ONLINE
          scan: scrub repaired 0B in 0h42m with 0 errors on Tue Jul 30 14:42:04 2019
          config:

          NAME STATE READ WRITE CKSUM
          srv ONLINE 0 0 0
          mirror-0 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175 ONLINE 0 0 0
          mirror-1 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R ONLINE 0 0 0


          This pool is created with:



          zpool create -o ashift=12 srv 
          mirror
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175
          mirror
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R





          share|improve this answer




























          • But my LUKS encrypted volumes will be decrypted by a manual script with a delay and not by the normal system boot sequence. Does your use case also cover this. Because so far it does not work for me.

            – MelBourbon
            5 hours ago






          • 1





            @MelBourbon In that case you should zpool import the pool in your manual script also.

            – Michael Hampton
            5 hours ago











          • Thanks, yes this was helping. The only issue I know face is that there is a short delay between the luks decrypting and the time where zpool import works. If I do it directly afterwards the system tells me that the pool is not existing. I need now to figure out how much delay.

            – MelBourbon
            5 hours ago











          • @MelBourbon That's very strange. I have never seen such a delay. Exactly what is your script doing?

            – Michael Hampton
            4 hours ago






          • 1





            @MelBourbon Very strange, you shouldn't need any delay there. As soon as cryptsetup returns, the device should be ready to use. Your Ubuntu system might have something else wrong.

            – Michael Hampton
            3 hours ago














          2












          2








          2







          I've been using ZFS pools on LUKS encrypted volumes for the better part of a decade. It works fine.



          There is no reason to mount the pool manually to attempt to defeat nonexistent timing problems. Just create your pool normally and enjoy.



          To avoid any problems in the future, when creating and managing the pool, use the names beginning with luks- in the /dev/mapper directory to refer to the devices. For example, the devices:



          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856 -> ../../dm-5
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175 -> ../../dm-4
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144 -> ../../dm-2
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R -> ../../dm-3


          correspond to:



            pool: srv
          state: ONLINE
          scan: scrub repaired 0B in 0h42m with 0 errors on Tue Jul 30 14:42:04 2019
          config:

          NAME STATE READ WRITE CKSUM
          srv ONLINE 0 0 0
          mirror-0 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175 ONLINE 0 0 0
          mirror-1 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R ONLINE 0 0 0


          This pool is created with:



          zpool create -o ashift=12 srv 
          mirror
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175
          mirror
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R





          share|improve this answer















          I've been using ZFS pools on LUKS encrypted volumes for the better part of a decade. It works fine.



          There is no reason to mount the pool manually to attempt to defeat nonexistent timing problems. Just create your pool normally and enjoy.



          To avoid any problems in the future, when creating and managing the pool, use the names beginning with luks- in the /dev/mapper directory to refer to the devices. For example, the devices:



          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856 -> ../../dm-5
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175 -> ../../dm-4
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144 -> ../../dm-2
          lrwxrwxrwx. 1 root root 10 Jul 26 22:22 luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R -> ../../dm-3


          correspond to:



            pool: srv
          state: ONLINE
          scan: scrub repaired 0B in 0h42m with 0 errors on Tue Jul 30 14:42:04 2019
          config:

          NAME STATE READ WRITE CKSUM
          srv ONLINE 0 0 0
          mirror-0 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175 ONLINE 0 0 0
          mirror-1 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144 ONLINE 0 0 0
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R ONLINE 0 0 0


          This pool is created with:



          zpool create -o ashift=12 srv 
          mirror
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1046856
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1145175
          mirror
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WCC1P1165144
          luks-ata-WDC_WD2000FYYZ-01UL1B1_WD-WMC1P0DHH53R






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 5 hours ago

























          answered 5 hours ago









          Michael HamptonMichael Hampton

          183k29 gold badges343 silver badges675 bronze badges




          183k29 gold badges343 silver badges675 bronze badges
















          • But my LUKS encrypted volumes will be decrypted by a manual script with a delay and not by the normal system boot sequence. Does your use case also cover this. Because so far it does not work for me.

            – MelBourbon
            5 hours ago






          • 1





            @MelBourbon In that case you should zpool import the pool in your manual script also.

            – Michael Hampton
            5 hours ago











          • Thanks, yes this was helping. The only issue I know face is that there is a short delay between the luks decrypting and the time where zpool import works. If I do it directly afterwards the system tells me that the pool is not existing. I need now to figure out how much delay.

            – MelBourbon
            5 hours ago











          • @MelBourbon That's very strange. I have never seen such a delay. Exactly what is your script doing?

            – Michael Hampton
            4 hours ago






          • 1





            @MelBourbon Very strange, you shouldn't need any delay there. As soon as cryptsetup returns, the device should be ready to use. Your Ubuntu system might have something else wrong.

            – Michael Hampton
            3 hours ago



















          • But my LUKS encrypted volumes will be decrypted by a manual script with a delay and not by the normal system boot sequence. Does your use case also cover this. Because so far it does not work for me.

            – MelBourbon
            5 hours ago






          • 1





            @MelBourbon In that case you should zpool import the pool in your manual script also.

            – Michael Hampton
            5 hours ago











          • Thanks, yes this was helping. The only issue I know face is that there is a short delay between the luks decrypting and the time where zpool import works. If I do it directly afterwards the system tells me that the pool is not existing. I need now to figure out how much delay.

            – MelBourbon
            5 hours ago











          • @MelBourbon That's very strange. I have never seen such a delay. Exactly what is your script doing?

            – Michael Hampton
            4 hours ago






          • 1





            @MelBourbon Very strange, you shouldn't need any delay there. As soon as cryptsetup returns, the device should be ready to use. Your Ubuntu system might have something else wrong.

            – Michael Hampton
            3 hours ago

















          But my LUKS encrypted volumes will be decrypted by a manual script with a delay and not by the normal system boot sequence. Does your use case also cover this. Because so far it does not work for me.

          – MelBourbon
          5 hours ago





          But my LUKS encrypted volumes will be decrypted by a manual script with a delay and not by the normal system boot sequence. Does your use case also cover this. Because so far it does not work for me.

          – MelBourbon
          5 hours ago




          1




          1





          @MelBourbon In that case you should zpool import the pool in your manual script also.

          – Michael Hampton
          5 hours ago





          @MelBourbon In that case you should zpool import the pool in your manual script also.

          – Michael Hampton
          5 hours ago













          Thanks, yes this was helping. The only issue I know face is that there is a short delay between the luks decrypting and the time where zpool import works. If I do it directly afterwards the system tells me that the pool is not existing. I need now to figure out how much delay.

          – MelBourbon
          5 hours ago





          Thanks, yes this was helping. The only issue I know face is that there is a short delay between the luks decrypting and the time where zpool import works. If I do it directly afterwards the system tells me that the pool is not existing. I need now to figure out how much delay.

          – MelBourbon
          5 hours ago













          @MelBourbon That's very strange. I have never seen such a delay. Exactly what is your script doing?

          – Michael Hampton
          4 hours ago





          @MelBourbon That's very strange. I have never seen such a delay. Exactly what is your script doing?

          – Michael Hampton
          4 hours ago




          1




          1





          @MelBourbon Very strange, you shouldn't need any delay there. As soon as cryptsetup returns, the device should be ready to use. Your Ubuntu system might have something else wrong.

          – Michael Hampton
          3 hours ago





          @MelBourbon Very strange, you shouldn't need any delay there. As soon as cryptsetup returns, the device should be ready to use. Your Ubuntu system might have something else wrong.

          – Michael Hampton
          3 hours ago










          MelBourbon is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          MelBourbon is a new contributor. Be nice, and check out our Code of Conduct.













          MelBourbon is a new contributor. Be nice, and check out our Code of Conduct.












          MelBourbon is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f978010%2fzfs-on-linux-which-mountpoint-option-when-mounting-manually-per-script%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

          The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

          Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...