After installing an old server the following problem arose, arised, did arise?
whatever....
pvcreate /dev/sdb
Cannot use /dev/sdb: device is a multipath componentLet's asume linux is always right and have a look at the block device....
# lsblk /dev/sdb
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 4.9T 0 disk
└─361866da0754031002d01ba551b507e2e 253:2 0 4.9T 0 mpathHmmm, indeed something something mpath....
# multipath -l
361866da0754031002d01ba551b507e2e dm-2 DELL,PERC H730P Mini
size=4.9T features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=0 status=active
`- 0:2:1:0 sdb 8:16 active undef runningI don't know about no multipath? I'm sure as hell I don't have the money for
fancy hardware like that.... I'm sorry wilbur, i'll have to put you down...
# Flush the "multipath map" 🤷
# multipath -f 361866da0754031002d01ba551b507e2eLets try again.....
# vgcreate vg_ovirt /dev/sdb
Cannot use /dev/sdb: device is partitioned
Command requires all devices to be found.Arrgh, I allready wiped the GPT partition. I'll bet my left testicle that there
still is some MBR stuff hiding in the first sector....
# fdisk --compatibility=dos /dev/sdb
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): p
Disk /dev/sdb: 4.9 TiB, 5399176544256 bytes, 10545266688 sectors
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: 9080127E-F6EA-48C1-973C-C56BD7D9F78F
Command (m for help): M
The size of this disk is 4.9 TiB (5399176544256 bytes). DOS partition table format cannot be used on drive
s for volumes larger than 2199023255040 bytes for 512-byte sectors. Use GUID partition table format (GPT).
Entering protective/hybrid MBR disklabel.
Command (m for help): p
Disk /dev/sdb: 4.9 TiB, 5399176544256 bytes, 10545266688 sectors
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: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdb1 1 4294967295 4294967295 2T ee GPT
Partition 1 does not start on physical sector boundary.
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): w
Command (m for help): qI knew it!, now let's try again....
# vgcreate vg_ovirt /dev/sdb
WARNING: dos signature detected on /dev/sdb at offset 510. Wipe it? [y/n]: y
Wiping dos signature on /dev/sdb.
Physical volume "/dev/sdb" successfully created.
Volume group "vg_ovirt" successfully createdW00t!