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

Server unreachable after using debian 11 script with raidz1 #49

Open
ghost opened this issue Jul 1, 2023 · 5 comments
Open

Server unreachable after using debian 11 script with raidz1 #49

ghost opened this issue Jul 1, 2023 · 5 comments

Comments

@ghost
Copy link

ghost commented Jul 1, 2023

I'm trying to install a 10x10TB hetzner with raidz1 zfs i figured out how to modify the script to do this the script runs without error but after the server reboots its unreachable via SSH and also cant ping the server. Any suggestions on how i could fix this? Thanks.

@Joshua2504
Copy link
Contributor

KVM Console, check if the server is back up. Probably not.

@ghost
Copy link
Author

ghost commented Jul 3, 2023

No activity on the KVM, I did get this error when running the script: modprobe: fatal module zfs not found in directory /lib/modules/6.3.7

@abionics
Copy link

No activity on the KVM, I did get this error when running the script: modprobe: fatal module zfs not found in directory /lib/modules/6.3.7

The same problem

@abionics
Copy link

abionics commented Jan 25, 2024

Finally I have found a setup that works for me, maybe it will be helpful:

  1. Debian 12
  2. Follow this steps grub-install: error: unknown filesystem #69 (comment), IMPORTANT to copy-paste code from step 4, not only add -o compatibility=grub2 \
  3. Optionally set RAIDZ/RAIDZ2/RAIDZ3 instead of MIRROR by changing shell script like here master...AXYZE9:zfs-hetzner-vm:master or just change:
# shellcheck disable=SC2086
zpool create \
...
  -O mountpoint=/boot -R $c_zfs_mount_dir -f \
-  $v_bpool_name $pools_mirror_option "${bpool_disks_partitions[@]}"
+  $v_bpool_name raidz "${bpool_disks_partitions[@]}"

# shellcheck disable=SC2086
echo -n "$v_passphrase" | zpool create \
...
  -O mountpoint=/ -R $c_zfs_mount_dir -f \
-  $v_rpool_name $pools_mirror_option "${rpool_disks_partitions[@]}"
+  $v_rpool_name raidz "${rpool_disks_partitions[@]}"
  1. Optionally run apt update after OS installation, in my case I have such error:

W: Failed to fetch https://deb.debian.org/debian/dists/bookworm/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch https://deb.debian.org/debian/dists/bookworm-updates/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch https://deb.debian.org/debian-security/dists/bookworm-security/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch https://deb.debian.org/debian/dists/bookworm-backports/InRelease Temporary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

I found this answer helpful, just echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

@congzhangzh
Copy link
Contributor

can you help to check this script works or not? https://github.com/congzhangzh/daily-scripts-4-us/blob/main/zfs-root-on-linux-4-debian/hetzner-debian12-zfs-setup.sh @abionics abionics

maybe you can do the test in the Virtual Box first :)

shubhank008 added a commit to shubhank008/zfs-hetzner-vm that referenced this issue Sep 17, 2024
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

3 participants