Hello,
i have find very "dangerous" the HD replace procedure in a Simple two hd server installed with Zraid1.
I have this command lines, but it's dangerousse if HD change name after a reboot or in case of human error..
sgdisk -R /dev/sdnew /dev/sdGood
sgdisk -G /dev/sdnew
zpool replace pool sdGood sdNew2
grub-install /dev/sdNew
update-grub
update-initramfs -u
Have someone write a little script to do this work ?
Thanks!
i have find very "dangerous" the HD replace procedure in a Simple two hd server installed with Zraid1.
I have this command lines, but it's dangerousse if HD change name after a reboot or in case of human error..
sgdisk -R /dev/sdnew /dev/sdGood
sgdisk -G /dev/sdnew
zpool replace pool sdGood sdNew2
grub-install /dev/sdNew
update-grub
update-initramfs -u
Have someone write a little script to do this work ?
Thanks!