Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvme mountpoint change after rebooting the server #45

Open
PsyanticY opened this issue Feb 22, 2019 · 1 comment
Open

nvme mountpoint change after rebooting the server #45

PsyanticY opened this issue Feb 22, 2019 · 1 comment

Comments

@PsyanticY
Copy link
Contributor

deploying and m5.large with an encrypted and non encrypted volume then rebooting the system cause the mountpoint to get swapped with the volume attaching point

[nix-shell:~/src/nixos-hardening/nix/nixops]$ nixops ssh-for-each -d nixos-hardened-image lsblk
test> NAME        MAJ:MIN RM SIZE RO TYPE  MOUNTPOINT
test> nvme0n1     259:0    0  30G  0 disk  
test> └─nvme0n1p1 259:2    0  30G  0 part  /
test> nvme1n1     259:1    0  50G  0 disk  /data2
test> nvme2n1     259:3    0  40G  0 disk  
test> └─nvme2n1   254:0    0  40G  0 crypt /data

[nix-shell:~/src/nixos-hardening/nix/nixops]$ nixops reboot -d nixos-hardened-image 
test> rebooting EC2 machine...
test> waiting for the machine to finish rebooting....[down]............................[up]
test> uploading key ‘ca.crt’...
test> uploading key ‘luks-nvme2n1’...

[nix-shell:~/src/nixos-hardening/nix/nixops]$ nixops ssh-for-each -d nixos-hardened-image lsblk
test> NAME        MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
test> nvme1n1     259:0    0  40G  0 disk 
test> nvme2n1     259:1    0  50G  0 disk 
test> nvme0n1     259:2    0  30G  0 disk 
test> └─nvme0n1p1 259:3    0  30G  0 part /

Notice how nvme1n1 was 50G then became 40G

@grahamc grahamc transferred this issue from NixOS/nixops Apr 20, 2020
@ibarrick
Copy link

@PsyanticY Did you ever figure this out? I had the same thing happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants