qemu-discuss
[Top][All Lists]
Advanced

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

Re: NVME support


From: address@hidden
Subject: Re: NVME support
Date: Mon, 9 Dec 2019 20:40:11 +0000 (UTC)

Debugging log attached from virt-resize.
Relevant snippets below.  Full log attached.

thanks,
Fred.

2 partitions found
calculate surplus: outsize=26843545600 required=838189711360 overhead=2326528 surplus=-811348492288
surplus before --expand or --shrink: -811348492288
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.)


/dev/sda1:
        partition data: 1 1048576-537919487 (536870912 bytes)
        partition sector data: 2048-1050623 (1048576 sectors)
        target partition sector data: 0-0 (1 sectors)
        bootable: true
        partition ID: C12A7328-F81F-11D2-BA4B-00A0C93EC93B
        content: filesystem vfat (536584192 bytes)
        label: EFI System Partition
        GUID: 3D4ABE8E-1567-4B88-B2F2-C93CDB133123
/dev/sda2:
        partition data: 2 537919488-838190759935 (837652840448 bytes)
        partition sector data: 1050624-1637091327 (1636040704 sectors)
        target partition sector data: 0-0 (1 sectors)
        bootable: false
        partition ID: A19D880F-05FC-4D3B-A006-743F0F84911E
        content: unknown data
        label:
        GUID: EAFD0330-896A-4AA3-8D20-36019B66921A

  virt-resize -v -x [...]
root@nvc-t2-227:~# guestfish

Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: 'help' for help on commands
      'man' to read the manual
      'quit' to quit the shell

><fs> version
major: 1
minor: 36
release: 13
extra:
><fs> q

root@nvc-t2-227:~# pwd
/root
root@nvc-t2-227:~# ls
dgx2-rhel-7.6  dgx2-rhel-7.6.orig  newdisk.qcow2
root@nvc-t2-227:~#




On Monday, December 9, 2019, 08:19:59 AM PST, address@hidden <address@hidden> wrote:


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.



Attachment: virt-resize debugging.txt
Description: Text document


reply via email to

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