Planing replacement of disk

cglmicro

Member
Oct 12, 2020
101
11
23
51
Hi.

I'm running PBS on a server with 1 x NVME not in RAID (boot disk and where PBS is installed), and 4 x HDD in ZFS (contains all the backup).

The NVME is 50% wear out, and I'll need to replace it. The problem is that this server is in a datacenter, so I can't clone the OS to a new NVME.

Do you have a suggestion to a) export some config/settings, b) have the disk replaced, c) reinstall PBS, d) reconnect the ZPOOL, e) import settings, f) etc.

Code:
root@pbs103:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
udev                  7.8G     0  7.8G   0% /dev
tmpfs                 1.6G  1.2M  1.6G   1% /run
/dev/mapper/pbs-root  445G   33G  390G   8% /
tmpfs                 7.8G     0  7.8G   0% /dev/shm
tmpfs                 5.0M     0  5.0M   0% /run/lock
/dev/nvme0n1p2        511M  328K  511M   1% /boot/efi
rpool                  11T  8.2T  2.3T  79% /mnt/datastore/rpool
tmpfs                 1.6G     0  1.6G   0% /run/user/0

Code:
root@pbs103:~# fdisk -l
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: WDC CL SN720 SDAQNTW-512G-2000         
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 18FBD42A-C387-4DB4-B633-7B627E520454

Device           Start        End   Sectors   Size Type
/dev/nvme0n1p1      34       2047      2014  1007K BIOS boot
/dev/nvme0n1p2    2048    1050623   1048576   512M EFI System
/dev/nvme0n1p3 1050624 1000215182 999164559 476.4G Linux LVM


Disk /dev/mapper/pbs-swap: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/pbs-root: 452.44 GiB, 485805260800 bytes, 948838400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: HGST HUS726040AL
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 83A8ECAC-3654-A74F-B098-B03948E09936

Device          Start        End    Sectors  Size Type
/dev/sda1        2048 7814019071 7814017024  3.6T Solaris /usr & Apple ZFS
/dev/sda9  7814019072 7814035455      16384    8M Solaris reserved 1


Disk /dev/sdb: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: HGST HUS724040AL
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 2F15F248-94A5-1641-B3AF-083851F3F366

Device          Start        End    Sectors  Size Type
/dev/sdb1        2048 7814019071 7814017024  3.6T Solaris /usr & Apple ZFS
/dev/sdb9  7814019072 7814035455      16384    8M Solaris reserved 1


Disk /dev/sdc: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: HGST HUS726040AL
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 74FDFAB9-0273-2541-B685-69321C7BC337

Device          Start        End    Sectors  Size Type
/dev/sdc1        2048 7814019071 7814017024  3.6T Solaris /usr & Apple ZFS
/dev/sdc9  7814019072 7814035455      16384    8M Solaris reserved 1


Disk /dev/sdd: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: HGST HUS726040AL
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 846FE1B5-1E44-9740-BE76-84DF0EE78335

Device          Start        End    Sectors  Size Type
/dev/sdd1        2048 7814019071 7814017024  3.6T Solaris /usr & Apple ZFS
/dev/sdd9  7814019072 7814035455      16384    8M Solaris reserved 1

Thank you.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!