Formatting xfs volumes on ubuntu 16.04 is extremely slow in our Virtualbox hypervisor, but not vms running inside Nutanix.
Virtualbox
100 GB => seconds
2TB => seconds
Nutanix (HyperConverged)
100 GB => 4 minutes
2TB => 30+ minutes
parted -l -s | grep "Error: * unrecognised disk label"
Error: /dev/sdg: unrecognised disk label
parted /dev/sdg mklabel gpt
Information: You may need to update /etc/fstab.
parted -- /dev/sdg mkpart primary xfs 1 -1
Information: You may need to update /etc/fstab.
time mkfs.xfs /dev/sdg1
meta-data=/dev/sdg1 isize=512 agcount=4, agsize=6553472 blks
= sectsz=4096 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=0
data = bsize=4096 blocks=26213888, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=12799, version=2
= sectsz=4096 sunit=1 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
real 4m7.653s
user 0m0.004s
sys 0m0.028s
Why does it take so long in one hypervisor to format a drive with mkfs, whereas on the other it is nearly instant?