Problem with existing Zpool (Re-add it to VM)

Wildcat

New Member
Apr 8, 2017
10
0
1
45
Hello (Sorry for my english)

I have a proxmox server; i rarely touch in 2 years.
with XPENOBOOT image.
i move my server and i have some trouble with disk order (LVM PVE not found) at the boot.
I try many thing but at each boot i have trouble with this.. i make manualy : vgchange -ay and exit each time i reboot this.

I fix the rest of the disk order with my ZFS volume and my zpool are ok for now.
Now its ok but its failed to be add in my VM in the GUI.. i don't now why.
my vm cannot access to the Zpool (10TB)

zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
PoolRZ2 16.2T 5.91T 10.3T 36% 1.00x ONLINE -

how i can relink it to my vm ?

Thx
 
So what is failing? Did you have you VMconfigs? Is the zpool added as storage? Or you can't start the vm's? .... it is not really clear for me. I'am right when i say you have PVE installied with LVM, and then added some own ZFS-Pool?

Please post your "/etc/pve/storage.cfg" and one VMconfig. Post also your Systemversion "pveversion".
 
I have a LVM on SSD (64gb)
16 GB for Proxmox and 32 for data (Images / Template etc)
And i have a ZPoll of 6x3TB (10Tb) for data storage

Normaly i use the 10TB for a disk space on my VM with XPENOBOOT. But when the try to recreate the Zpool i remove it from the GUI.
After that i fix the Zpool but i cannot re-add the Zpool as a hard drive in Proxmox (Error 0 500)

There is my config :

lvm: SSD
vgname pve
shared
content images

dir: local
path /var/lib/vz
content images,iso,vztmpl,rootdir
maxfiles 0

dir: MEDIAS
path /PoolRZ2/PROXMOX
shared
content images,iso,vztmpl,rootdir,backup
maxfiles 1

zfspool: PoolRZ2
pool PoolRZ2
content images
 
2017-04-09 20_36_00-Proxmox Virtual Environment.png

Is it normal i don't see PoolRZ2 in this command ?

cat /proc/self/mounts
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,relatime,size=10240k,nr_inodes=1018595,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=817200k,mode=755 0 0
/dev/mapper/pve-root / ext3 rw,relatime,errors=remount-ro,user_xattr,acl,barrier=0,data=ordered 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
tmpfs /run/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=3102400k 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
/dev/mapper/pve-data /var/lib/vz ext3 rw,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered 0 0
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/dev/fuse /etc/pve fuse rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other 0 0
beancounter /proc/vz/beancounter cgroup rw,relatime,blkio,name=beancounter 0 0
container /proc/vz/container cgroup rw,relatime,freezer,devices,name=container 0 0
fairsched /proc/vz/fairsched cgroup rw,relatime,cpuacct,cpu,cpuset,name=fairsched 0 0
 
Last edited:
Ok I see the Zfs pool are not mounted by default.

How i can fix that ?

zfs get all
NAME PROPERTY VALUE SOURCE
PoolRZ2 type filesystem -
PoolRZ2 creation Fri Apr 10 10:07 2015 -
PoolRZ2 used 3.93T -
PoolRZ2 available 6.72T -
PoolRZ2 referenced 3.93T -
PoolRZ2 compressratio 1.00x -
PoolRZ2 mounted no -
PoolRZ2 quota none default
PoolRZ2 reservation none default
PoolRZ2 recordsize 128K default
PoolRZ2 mountpoint /PoolRZ2 local
PoolRZ2 sharenfs off default
PoolRZ2 checksum on default
PoolRZ2 compression off default
PoolRZ2 atime on default
PoolRZ2 devices on default
PoolRZ2 exec on default
PoolRZ2 setuid on default
PoolRZ2 readonly off default
PoolRZ2 zoned off default
PoolRZ2 snapdir hidden default
PoolRZ2 aclinherit restricted default
PoolRZ2 canmount on default
PoolRZ2 xattr on default
PoolRZ2 copies 1 default
PoolRZ2 version 5 -
PoolRZ2 utf8only off -
PoolRZ2 normalization none -
PoolRZ2 casesensitivity sensitive -
PoolRZ2 vscan off default
PoolRZ2 nbmand off default
PoolRZ2 sharesmb off default
PoolRZ2 refquota none default
PoolRZ2 refreservation none default
PoolRZ2 primarycache all default
PoolRZ2 secondarycache all default
PoolRZ2 usedbysnapshots 0 -
PoolRZ2 usedbydataset 3.93T -
PoolRZ2 usedbychildren 139M -
PoolRZ2 usedbyrefreservation 0 -
PoolRZ2 logbias latency default
PoolRZ2 dedup off default
PoolRZ2 mlslabel none default
PoolRZ2 sync standard default
PoolRZ2 refcompressratio 1.00x -
PoolRZ2 written 3.93T -
PoolRZ2 logicalused 3.93T -
PoolRZ2 logicalreferenced 3.93T -
PoolRZ2 snapdev hidden default
PoolRZ2 acltype off default
PoolRZ2 context none default
PoolRZ2 fscontext none default
PoolRZ2 defcontext none default
PoolRZ2 rootcontext none default
PoolRZ2 relatime off default
root@pve:~#
 
Ok ; I'm not sure but i think i have a idea on that going wrong in my config.
The DIR PoolRZ2 are normaly used for the mounting point of the ZPool.
But now its create a directory PROXMOX in it with : dump / images / private / template.

But now i cannot remount it in good path : cannot mount '/PoolRZ2': directory is not empty

*Edit : Ok i found a way to remount it manually
(Erase the folder i try to remount it) Its work.

I Found my image of 10,471373403136001 TB
/PoolRZ2/PROXMOX/images/100/vm-100-disk-1.qcow2

I must find a way to relocate it in my VM now and fix all of this for the next boot.


** Ok for now i have all my storage in this existing file : vm-100-disk-1.qcow2 (10.47TB)
In this path : /PoolRZ2/PROXMOX/images/100/vm-100-disk-1.qcow2
I would like to Re-Add it in my existing VM as a second hard-drive (AND NOT BE OVERWRITE ALL MY DATA are on this image)

2017-04-09 21_45_30-Proxmox Virtual Environment.png


And be sure at the next reboot all of changes are be dones.

Thx for your help :)
 
Last edited:
But now i cannot remount it in good path : cannot mount '/PoolRZ2': directory is not empty
Know this problem, but there is an switch....
Code:
dir: iso-images 
       path /v-machines/home/iso-images 
       maxfiles 10 
       shared 1 
       content vztmpl,iso 
       mkdir 0
 

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!