Help! I can't re-create a ZFS pool

JellyMonster

New Member
Dec 12, 2020
6
1
3
32
I'm having a nightmare today. I lost a drive in my RAID0 pool (2x 4TB drive and 1x 8TB drive), which of course means I lost everything. I'm not going down to a single drive so the impact is less when this happens again (unfortunately I can't afford more drives for RAID5/6 atm).

But when I try and create a new ZFS, I get this error:

()

# /sbin/zpool create -o ashift=12 data /dev/sdc

mountpoint '/data' exists and is not empty

use '-m' option to provide a different default

TASK ERROR: command '/sbin/zpool create -o 'ashift=12' data /dev/sdc' failed: exit code 1

But I can't find an existing data mountpoint anywhere. Does anyone have any ideas?
 
Do you have a Directory Storage configured on the pool?

The zpool create command complains that there already is a non empty directory at the path where it wants to mount the pool.

If you do have a directory storage configure on /data (the path where the pool is imported to) make sure to add the following lines to the storage in the /etc/pve/storage.cfg file:
Code:
is_mountpoint 1
mkdir 0

This tells PVE that it should only activate the directory once something is mounted there and that it is not responsible to create that directory.

Then you will have to see if there is still anything of interest in that directory and clean it up so that it is empty and the pool can be mounted.
 

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!