![]() Recreate partition 4 with maximum size: sudo sgdisk -n4:0:0 -t4:BF00 $NEWDISK.Remove partition 4: sudo sgdisk -d4 $NEWDISK.Change GUID of replacement disk: sudo sgdisk -G $NEWDISK.Copy partition table from existing disk to replacement disk: sudo sgdisk -R$NEWDISK /dev/disk/by-id/ID-OF-EXISTING-DRIVE.Create partition table on replacement disk If that output is not empty, run sudo wipefs -a $NEWDISK. The new drive may already contain ZFS or mdadm signatures. Once both drives have been replaced, rpool has the new capacity.įirst, find the id of the replacement drive with ls -l /dev/disk/by-id and create a variable for it: Wait for resilver after replacement, then replace the second drive. Similar to replacing a failed drive, just that partition 4, the rpool partition, will be bigger. If you like, test by rebooting: sudo reboot, and confirm that pools are healthy after reboot with zpool status Increasing drive space And for good measure signed efi: sudo dpkg-reconfigure grub-efi-amd64-signed, this should finish without prompting you.Install GRUB to replacement disk: sudo dpkg-reconfigure grub-efi-amd64, keep defaults and when it comes to system partitions, use space bar to select first partition on both drives, e.g.Create EFI file system on second disk: sudo mkdosfs -F 32 -s 1 -n EFI $-part1.Verify grub can “see” the ZFS boot pool: sudo grub-probe /boot.Verify that line is in fstab: cat /etc/fstab.Sudo tee -a /etc/security/nf > /etc/fstab" # to store local time in bios, to resolve compatibility issue when dual boot windowsĮcho 'fs.file-max = 65535' | sudo tee -a /etc/nf Python3 openjdk-11-jdk clang ghc texlive-full \ Try booting up Zos now and check that all disks are properly recognized.Sudo apt install sysstat net-tools htop iftop wget tmux curl zsh \ ![]() Only the USB stick should have a Disklabel entry, every other disk should not. To check for success, you can run fdisk -l again. If you have any fdisk entries that look like /dev/nvme, you’ll need to do this too: for i in /dev/nvme* do wipefs -a $i doneįor each disk where there was something to be wiped, you’ll see a few messages that some bytes were erased at some location. To clear all disks, run this command: for i in /dev/sd* do wipefs -a $i done If that’s the case, change the command below to wipefs -af to force wiping even mounted disks, including the USB stick. ![]() On some distributions besides grml, you might also notice other disks listed in this output, which means they were auto mounted. ![]() You’ll see an error that this device is busy, which is fine since we don’t need to wipe the USB stick. Look for the entry matching the size of your USB stick. You can identify which disk is the USB hosting the live Linux with: df -h Take note of whether you see nvme in any of the outputs. To see what disks are connected, run (that’s an “l” for “lion”): fdisk -l You can run this command first to switch to the root account: sudo su root If you see a $ sign rather than a # on the terminal, you’re not root. Grml gives you a root command prompt by default, but other distros may not. Most of the commands below need to be run as root. Following this guide will clear everything from the disks in the system. Please use extreme caution with the commands below to avoid unintended data loss. Then plug the USB stick into the 3Node and select it as the boot device. However, some farmers report that grml won’t boot on their system.Īfter you download the live Linux iso file, burn it to a USB stick using a tool like dd or balenaEtcher. I like grml because it’s small version is only 400mb, whereas Ubuntu Server is 1.4gb. You can use a minimal live Linux distribution like grml or Ubuntu Server to boot the system to a command prompt and enter the commands below. The Linux shell commands may work on MacOS too-if you try it please let me know. I’ll explain a method that uses a live Linux distro for the job, and also link to a guide for accomplishing this within Windows. A note if you’re having trouble getting your disks recognized by Zos: some farmers have had success enabling AHCI mode for SATA in their BIOSĬlearing disks is necessary in order for Zero OS to make use of them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |