> fdisk /dev/sdh
Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS (MBR) disklabel with disk identifier 0x0860348c.
Command (m forhelp): g
Created a new GPT disklabel (GUID: 5227879A-B14D-B743-91C0-DB7170E5B463).
Command (m forhelp): n
Partition number (1-128, default 1):
First sector (2048-937703054, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P}(2048-937703054, default 937701375): +1M
Created a new partition 1 of type'Linux filesystem' and of size 1 MiB.
Command (m forhelp): t
Selected partition 1Partition type or alias(type L to list all): BIOS boot
Changed type of partition 'Linux filesystem' to 'BIOS boot'.
2: EFI System
1
2
3
4
5
6
7
8
9
10
11
12
Command (m forhelp): n
Partition number (2-128, default 2):
First sector (4096-937703054, default 4096):
Last sector, +/-sectors or +/-size{K,M,G,T,P}(4096-937703054, default 937701375): +1G
Created a new partition 2 of type'Linux filesystem' and of size 1 GiB.
Command (m forhelp): t
Partition number (1,2, default 2): 2Partition type or alias(type L to list all): EFI System
Changed type of partition 'Linux filesystem' to 'EFI System'.
3: Solaris /usr & Apple ZFS
1
2
3
4
5
6
7
8
9
10
11
12
Command (m forhelp): n
Partition number (3-128, default 3):
First sector (2101248-937703054, default 2101248):
Last sector, +/-sectors or +/-size{K,M,G,T,P}(2101248-937703054, default 937701375):
Created a new partition 3 of type'Linux filesystem' and of size 446.1 GiB.
Command (m forhelp): t
Partition number (1-3, default 3): 3Partition type or alias(type L to list all): Solaris /usr & Apple ZFS
Changed type of partition 'Linux filesystem' to 'Solaris /usr & Apple ZFS'.
最後にパーテーション情報を書き込む
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Command (m forhelp): p
Disk /dev/sdh: 447.13 GiB, 480103981056 bytes, 937703088 sectors
Disk model: INTEL SSDSC2KB48
Units: sectors of 1 * 512=512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 5227879A-B14D-B743-91C0-DB7170E5B463
Device Start End Sectors Size Type
/dev/sdh1 204840952048 1M BIOS boot
/dev/sdh2 409621012472097152 1G EFI System
/dev/sdh3 2101248937701375935600128 446.1G Solaris /usr & Apple ZFS
Command (m forhelp): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
> ls -lah /dev/disk/by-id/
total 0drwxr-xr-x 2 root root 900 Jan 18 17:31 .
drwxr-xr-x 9 root root 180 Jan 12 11:34 ..
lrwxrwxrwx 1 root root 10 Jan 18 17:06 ata-INTEL_SSDSC2KB480G8_BTYF834109XXXXXXXX-part3 -> ../../sdh3
lrwxrwxrwx 1 root root 10 Jan 18 17:31 ata-INTEL_SSDSC2KB480G8_BTYF83410DXXXXXXXX-part3 -> ../../sdi3
lrwxrwxrwx 1 root root 10 Jan 18 18:24 ata-TEAM_T253512GB_TPBF2409XXXXXXXXXXXX-part3 -> ../../sdf3
> zpool attach rpool /dev/disk/by-id/ata-TEAM_T253512GB_TPBF2409XXXXXXXXXXXX-part3 \
/dev/disk/by-id/ata-INTEL_SSDSC2KB480G8_BTYF834109XXXXXXXX-part3
応答完了後に、 zpool status rpool -v を確認すると複製が動作しているのがわかる
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
> zpool status rpool -v
pool: rpool
state: ONLINE
scan: resilvered 9.96M in 00:00:00 with 0 errors on Sat Jan 18 17:22:31 2025remove: Evacuation of /dev/disk/by-id/ata-TEAM_T253512GB_TPBF2409XXXXXXXXXXXX-part3 in progress since Sat Jan 18 17:45:27 2025 51.4G copied out of 131G at 435M/s, 39.11% done, 0h3m to go
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 000 mirror-1 ONLINE 000 ata-TEAM_T253512GB_TPBF2409XXXXXXXXXXXX-part3 ONLINE 000(removing) ata-INTEL_SSDSC2KB480G8_BTYF834109XXXXXXXX-part3 ONLINE 000errors: No known data errors
完了すると下記のように Disk が加入して、 TEAM と INTEL で Miror の状態になった
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
> zpool status rpool -v
pool: rpool
state: ONLINE
scan: resilvered 132G in 00:06:04 with 0 errors on Sat Jan 18 20:23:31 2025remove: Removal of vdev 2 copied 5.12M in 0h0m, completed on Sat Jan 18 19:15:43 2025 1.45M memory used for removed device mappings
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 000 mirror-1 ONLINE 000 ata-TEAM_T253512GB_TPBF2410XXXXXXXXXXXX-part3 ONLINE 000 ata-INTEL_SSDSC2KB480G8_BTYF834109XXXXXXXX-part3 ONLINE 000errors: No known data errors
> lsblk -o NAME,HCTL,MODEL,SERIAL
NAME HCTL MODEL SERIAL
sdd 6:0:0:0 TEAM T253512GB TPBF2410XXXXXXXXXXXX
sdf 14:0:0:0 TEAM T253512GB TPBF2409XXXXXXXXXXXX
sdh 8:0:0:0 INTEL SSDSC2KB480G8 BTYF834109XXXXXXXX
sdi 16:0:0:0 INTEL SSDSC2KB480G8 BTYF83410DXXXXXXXX
> proxmox-boot-tool format /dev/sdh2 --force
UUID=""SIZE="1073741824"FSTYPE=""PARTTYPE="c12a7328-f81f-11d2-ba4b-00a0c93ec93b"PKNAME="sdh"MOUNTPOINT=""Formatting '/dev/sdh2' as vfat..
mkfs.fat 4.2 (2021-01-31)Done.
> proxmox-boot-tool init /dev/sdh2 --force
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
UUID="0BB9-F406"SIZE="1073741824"FSTYPE="vfat"PARTTYPE="c12a7328-f81f-11d2-ba4b-00a0c93ec93b"PKNAME="sdh"MOUNTPOINT=""Mounting '/dev/sdh2' on '/var/tmp/espmounts/0BB9-F406'.
Installing systemd-boot..
Created "/var/tmp/espmounts/0BB9-F406/EFI/systemd".
Created "/var/tmp/espmounts/0BB9-F406/EFI/BOOT".
Created "/var/tmp/espmounts/0BB9-F406/loader".
Created "/var/tmp/espmounts/0BB9-F406/loader/entries".
Created "/var/tmp/espmounts/0BB9-F406/EFI/Linux".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/var/tmp/espmounts/0BB9-F406/EFI/systemd/systemd-bootx64.efi".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/var/tmp/espmounts/0BB9-F406/EFI/BOOT/BOOTX64.EFI".
Random seed file /var/tmp/espmounts/0BB9-F406/loader/random-seed successfully written (32 bytes).
Created EFI boot entry "Linux Boot Manager".
Configuring systemd-boot..
Unmounting '/dev/sdh2'.
Adding '/dev/sdh2' to list of synced ESPs..
Refreshing kernels and initrds..
Running hook script 'proxmox-auto-removal'..
Running hook script 'zz-proxmox-boot'..
Copying and configuring kernels on /dev/disk/by-uuid/0BB9-F406
Copying kernel and creating boot-entry for 6.8.12-4-pve
Copying kernel and creating boot-entry for 6.8.12-5-pve
Copying and configuring kernels on /dev/disk/by-uuid/89FD-A1F3
Copying kernel and creating boot-entry for 6.8.12-4-pve
Copying kernel and creating boot-entry for 6.8.12-5-pve
Copying and configuring kernels on /dev/disk/by-uuid/EE7E-A82E
Copying kernel and creating boot-entry for 6.8.12-4-pve
Copying kernel and creating boot-entry for 6.8.12-5-pve
proxmox-boot-tool init /dev/sdi2 --force
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
UUID="5043-6338"SIZE="1073741824"FSTYPE="vfat"PARTTYPE="c12a7328-f81f-11d2-ba4b-00a0c93ec93b"PKNAME="sdi"MOUNTPOINT=""Mounting '/dev/sdi2' on '/var/tmp/espmounts/5043-6338'.
Installing systemd-boot..
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/var/tmp/espmounts/5043-6338/EFI/systemd/systemd-bootx64.efi".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/var/tmp/espmounts/5043-6338/EFI/BOOT/BOOTX64.EFI".
Random seed file /var/tmp/espmounts/5043-6338/loader/random-seed successfully written (32 bytes).
Created EFI boot entry "Linux Boot Manager".
Configuring systemd-boot..
Unmounting '/dev/sdi2'.
Adding '/dev/sdi2' to list of synced ESPs..
Refreshing kernels and initrds..
Running hook script 'proxmox-auto-removal'..
Running hook script 'zz-proxmox-boot'..
Copying and configuring kernels on /dev/disk/by-uuid/093E-FDDE
Copying kernel and creating boot-entry for 6.8.12-4-pve
Copying kernel and creating boot-entry for 6.8.12-5-pve
Copying and configuring kernels on /dev/disk/by-uuid/5043-6338
Copying kernel and creating boot-entry for 6.8.12-4-pve
Copying kernel and creating boot-entry for 6.8.12-5-pve
> lsblk -o NAME,HCTL,MODEL,SERIAL
NAME HCTL MODEL SERIAL
sdd 6:0:0:0 TEAM T253512GB TPBF2410XXXXXXXXXXXX
sdf 14:0:0:0 TEAM T253512GB TPBF2409XXXXXXXXXXXX
> shred -v -n 1 -z /dev/sXX