SSD7502 clone RAID with dd

Post Reply
zemerdon
Site Admin
Posts: 310
Joined: Mon Jan 23, 2023 8:13 pm

SSD7502 clone RAID with dd

Post by zemerdon »

files used:
ubuntu-22.04.1-desktop-amd64.iso



Preparation
burn ubuntu-22.04.1-desktop-amd64.iso to USB
copy and extract HighPoint_NVMe_Ubuntu_22.04.1_Server_x86_64_v1.4.7_2022_09_29.tar.gz onto USB

Preparation notes:
If using another linux distribution you may need to install linux headers. (sudo apt install linux-headers-$(uname -r)
If using another linux distribution you may need to install zfs-dkms if working with zfs, as ubuntu server has this preloaded.

dd clone RAID HDD
Boot ubuntu 22.04.1 USB.

append the following to the ubuntu live boot entry (I had to add i915 because of my second GPU) then F10 to boot.

Code: Select all

modprobe.blacklist=i915,nvme
drop to terminal, login is "ubuntu" no password.

import ZFS for image storage (skip this step if you're using attached storage).

Code: Select all

zpool import -fa
Install drivers for Highpoint RAID

Code: Select all

bash /media/cdrom/hptdd/preinst.sh
check hptblock10n0p shows up with

Code: Select all

lsblk -fs
or

Code: Select all

fdisk -l
clone the RAID drive

Code: Select all

sudo dd if=/dev/hptblock10n0p of=/zfs-raidz3/hptblock10n0p.img bs=4M status=progress
restore dd image to HDD
Boot ubuntu 22.04.1 USB.

append the following to the ubuntu live boot entry (I had to add i915 because of my second GPU) then F10 to boot.

Code: Select all

modprobe.blacklist=i915,nvme
import ZFS for image storage (skip this step if you're using attached storage).

Code: Select all

zpool import -fa
check hptblock10n0p shows up with

Code: Select all

lsblk -fs
or

Code: Select all

fdisk -l
restore the image

Code: Select all

sudo dd if=/zfs-raidz3/hptblock10n0p.img of=/dev/hptblock10n0p bs=4M status=progress
reboot and remove USB when prompted.

once in the GRUB menu, select advanced options and select failsafe.

once in the terminal issue the following command to ensure all VM/LXC boot naturally.

Code: Select all

zpool import -fa
reboot and boot normally.

mount dd image to recover specific data

Code: Select all

losetup --find --show --partscan hptblock10n0p.img

Code: Select all

cat /proc/partitions

 259        6     975872 loop0p1
 259        7   31250432 loop0p2
 259        8  944454656 loop0p3

Code: Select all

mount /dev/loop0p3  /media/cdrom/
Post Reply