Failed when I created Directory Storage

Leonardo Ramirez

Active Member
Jun 11, 2018
39
2
28
45
Hi, I have a disk free in my server (dev/sdb), and I use web interface, menu DISKS->Directory create:Directory, and choose disk /dev/sdb, filesystem ext4, name local-pve4, and press button CREATE.

And I got an error message:

# /sbin/sgdisk -n1 -t1:8300 /dev/sdb
The operation has completed successfully.
# /sbin/mkfs -t ext4 /dev/sdb1
mke2fs 1.44.5 (15-Dec-2018)
Creating filesystem with 244190385 4k blocks and 61054976 inodes
Filesystem UUID: 7f1fd1d6-ec4b-49ef-aacc-4d95c3e91d8f
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848

Allocating group tables: 0/7453 done
Writing inode tables: 0/7453 done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: 0/7453 done

# /sbin/blkid /dev/sdb1 -o export
TASK ERROR: command '/sbin/blkid /dev/sdb1 -o export' failed: exit code 2


Any idea why I cannot created mount that disk.

thanks,
 
Are you sure that the disk was really clean before? Please backup first, then adapt, double check and try the following:
Code:
umount /dev/sdb1
wipefs -a /dev/sdb
dd if=/dev/zero of=/dev/sdb bs=1M count=200
pvesh create nodes/<your_node>/disks/directory --device /dev/sdb --name local-pve4
 

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!