[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NVME support

From: address@hidden
Subject: NVME support
Date: Mon, 9 Dec 2019 16:19:59 +0000 (UTC)

I'm on centos 7 using the following guesfish viersion.

version major: 1 minor: 40 release: 2 extra: rhel=7,release=5.el7_7.2,libvirt

My system has nvme SSDs. The OS recognizes it as follows. 
nvme0n1     259:0    0 894.3G  0 disk
├─nvme0n1p1 259:1    0   512M  0 part  /boot/efi
├─nvme0n1p2 259:2    0 878.4G  0 part
│ └─md0       9:0    0 878.3G  0 raid1 /
└─nvme0n1p3 259:3    0  64.3M  0 part

I want to resize the partition nvme0n1p2 to a smaller value (20 G).
virt tools and guestfish recognize the devices as follows.

[root@stg-cl1-slb01 ~]# virt-filesystems --long --parts --blkdevs -h -a ./dgx2-rhel-7.6 Name Type MBR Size Parent /dev/sda1 partition - 512M /dev/sda /dev/sda2 partition - 780G /dev/sda /dev/sda device - 800G -

run list-filesystems /dev/sda1: vfat /dev/md127: ext4

virt-resize gives me the following error.

[root@stg-cl1-slb01 ~]# virt-resize --shrink /dev/sda2 ./dgx2-rhel-7.6 ./newdisk.qcow2 [ 0.0] Examining ./dgx2-rhel-7.6 virt-resize: error: /dev/sda2: This partition has unknown content which might be damaged by shrinking it. If you want to shrink this partition, you need to use the ‘--resize-force’ option, but that could destroy any data on this partition. (This error came from ‘--shrink’ option on the command line.)

I've searched the archives and there have been a few similiar questions about nvme support but no definite answer.
Can someone please confirm. I am currently trying on ubuntu 18.04 as it has a later version of these tools.

thanks, Fred.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]