Created
December 10, 2020 04:37
-
-
Save grahamc/3e09c41e836dc71ee99f8b53c4fd5a2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ PATH=/nix/store/8b0sz4wwkwjibangp4502w10s5ww1kha-jq-1.6-bin/bin/:/nix/store/pxdzs3d8kp9fqmhyhrsyrf38jf1d54n9-cloud-utils-0.32/bin/:/nix/store/dd9y92sm80w7k5fhkwa0hqg8x9gv6n9k-extra-utils/bin | |
+ + jqlsblk -cf --json+ /nix/store/7j6v6ynx5bhggz6fg7i1x5ds4690w6ys-amazon-image-zfs.jq -O | |
--all | |
read -r line | |
+ echo '{"part_path":"/sys/block/sda/sda3/partition","disk_path":"/dev/sda"}' | |
+ jq -r .part_path | |
+ part_path=/sys/block/sda/sda3/partition | |
+ echo '{"part_path":"/sys/block/sda/sda3/partition","disk_path":"/dev/sda"}' | |
+ jq -r .disk_path | |
+ disk_path=/dev/sda | |
+ cat /sys/block/sda/sda3/partition | |
+ growpart /dev/sda 3 | |
CHANGED: partition=3 start=2000896 old: size=14774272 end=16775168 new: size=14777231 end=16778127 | |
+ read -r line | |
importing root ZFS pool "tank"... | |
waiting for device tank/system/root to appear... WARNING: Device /dev/sda2 not initialized in udev database even after waiting 10000000 microseconds. | |
WARNING: Device /dev/sda3 not initialized in udev database even after waiting 10000000 microseconds. | |
WARNING: Device /dev/sda2 not initialized in udev database even after waiting 10000000 microseconds. | |
WARNING: Device /dev/sda3 not initialized in udev database even after waiting 10000000 microseconds. | |
.................... | |
+ + zpoolawk list '{print $1}' -H | |
+ + + awkzpool '{print $1;}' | |
grep /dev | |
list -vLPH tank | |
+ grep ONLINE | |
+ vdev=/dev/sda3 | |
+ zpool online -e tank /dev/sda3 | |
mounting tank/system/root on /... | |
mounting tank/local/nix on /nix... | |
mounting tank/system/var on /var... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment