[SOLVED] ZFS beginners question

maxprox

Renowned Member
Aug 23, 2011
423
58
93
Germany - Nordhessen
fair-comp.de
Hi,
I have a new Proxmox 4.2 ZFS machine with three local storages on three different physical hard disk drives
(local-zfs, local-zfs-hgst and local-zfs-wd).
till now I have three VMs (VMID 101, 202, 303 for example)
Two of the VMs (101,202) are new Linux installations, both each with two virtual Disks on two different local storages.
The third VM (303), also with tho virtual Disks, is a migration from a Proxmox 3.4 machine without ZFS, this was a standard LVM / ext4 installation => vzdump to an sshfs mount to the new Proxmox4.2 ZFS Server.

In addition I have the following questions in order to understand it:
In the Proxmox Web-UI "Storage View" I can see all of the Storages an all of the vm-disks, there is one more Storage, called "local".
But on the Linux shell I am very confused which are the right commands to view the vm-disks and its physical storage use (e.g. in GB)

The first two VMS, the new installations I can not see with the command e.g.
Code:
ls -alh  or  df -h
e.g. the directory /var/lib/vz/images is empty.
The third VM(303), I migrate on the Proxmox 3.4 with vzdump (I take for this scenario an sshfs mount to the new Server) and restore it with
Code:
qmrestore -storage local vzdump-qemu-107....vma.lzo 107
And this third VM I can see with the command
Code:
ls -alh and df -h

My questions:
Is it the wrong way I migrate this third VM?
What are the correct shell commands, and what can / should I read to find information about the storage use of the VMs out? And to better understanding.
(the zfs wiki entry I have already read)
 
the first question I just answered myself:
Is it the wrong way I migrate this third VM?
=> YES
My fault was the option "-storage local"
I've done it again with (I hope) the right option:
Code:
qmrestore -storage local-zfs vzdump-qemu-107....vma.lzo 207
=> "local-zfs"
Now it looks back at least all consistent.

But the remaining questions to understand still exist
 
Last edited:
for VMs, Proxmox uses ZFS zvols for the disks. this means they don't show up in any directory or the df output, but are only available as (block)device node in /dev/zvol/POOL/ZVOL (which you should only mess around with if you really know what you are doing). if you just want to get an overview about available images, used space and so on, you probably want "zfs list" (or "zfs list -t all" to include snapshots) or the information exposed via "pvesm" and the web interface
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!