Create storage from disk with "Device mapper" usage

iamkarlson

New Member
May 24, 2020
1
0
1
35
Hi,
I've created a wrong storage from my disk and now I'm trying to create a directory storage. However, I can't do this because my disk got to the state when it's marked as "Device mapper". It has no partition or data or whatever. How can I create a directory from this disk?
 
Hi,
I've created a wrong storage from my disk and now I'm trying to create a directory storage. However, I can't do this because my disk got to the state when it's marked as "Device mapper". It has no partition or data or whatever. How can I create a directory from this disk?

Reinitialize it with GPT. If not possible via GUI use command line utility "parted".
 
hello
here is my lsblk output... it seems to be some data in sdb, and it's marked as ´Device Mapper´. So my question is how to completely clean the disk info and reuse it for zfs storage, as sdc. Thank you in advance

Code:
 lsblk
NAME                             MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                                8:0    0 232.9G  0 disk
├─sda1                             8:1    0  1007K  0 part
├─sda2                             8:2    0   512M  0 part
└─sda3                             8:3    0 232.4G  0 part
  ├─pve-swap                     253:5    0     8G  0 lvm  [SWAP]
  ├─pve-root                     253:6    0    58G  0 lvm  /
  ├─pve-data_tmeta               253:7    0   1.5G  0 lvm 
  │ └─pve-data                   253:9    0 147.4G  0 lvm 
  └─pve-data_tdata               253:8    0 147.4G  0 lvm 
    └─pve-data                   253:9    0 147.4G  0 lvm 
sdb                                8:16   0 931.5G  0 disk
├─lvm--thin-lvm--thin_tmeta      253:0    0   120M  0 lvm 
│ └─lvm--thin-lvm--thin-tpool    253:2    0 931.3G  0 lvm 
│   ├─lvm--thin-lvm--thin        253:3    0 931.3G  0 lvm 
│   └─lvm--thin-vm--101--disk--0 253:4    0    32G  0 lvm 
└─lvm--thin-lvm--thin_tdata      253:1    0 931.3G  0 lvm 
  └─lvm--thin-lvm--thin-tpool    253:2    0 931.3G  0 lvm 
    ├─lvm--thin-lvm--thin        253:3    0 931.3G  0 lvm 
    └─lvm--thin-vm--101--disk--0 253:4    0    32G  0 lvm 
sdc                                8:32   0 931.5G  0 disk