I am using CentOS 8 and added two nvme storage disks, which I want to configure in RAID1 mirror.
Following is lsblk
output:
[root@localhost ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.5T 0 disk
├─sda1 8:1 0 1G 0 part /boot/efi
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 1.5T 0 part
├─cl-root 253:0 0 1.5T 0 lvm /
└─cl-swap 253:1 0 32G 0 lvm [SWAP]
nvme0n1 259:0 0 5.1T 0 disk
nvme1n1 259:2 0 5.1T 0 disk
When I am trying to add a partition to /dev/nvme0n1
and /dev/nvme1n1
respectively through fdisk
, the partion being created in Linux filesystem
by default, when I try to change the partition type to fd
I get the following error:
Type of partition 1 is unchanged: "Linux filesystem"
Creating the partition process is going as following:
[root@localhost ~]# fdisk /dev/nvme0n1
Welcome to fdisk (util-linux 2.32.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition number (1-128, default 1):
First sector (34-5607509301657, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-5607509301657, default 5607509301657):
Created a new partition 1 of type 'Linux filesystem' and of size 5.1 TiB
How can I configure the added storage partition in raid autodetect type while it is being created on Linux filesystem
by default?
.
fd
? Is this type known to yourfdisk
? (answer L when it saysPartition type or alias (type L to list all):
).p
to print partition table information. It will sayDisklabel type: dos
for MBR orDisklabel type: gpt
for GPT.