大网数据广告活动
服务器运维问答

ZFS Creation Gives LVM Error

· 52CE 我爱测

Attempting to create a ZFS Pool on an SDD But Keep running into various errors. lsblk Output for the drive is: sdc 8:32 0 232.9G 0 disk ├─sdc1 8:33 0 232.9G 0 part │ ├─Evo250-vm--303--disk--1 251:0 0 10G 0 lvm │ ├─Evo250-vm--401-…

问题原文

原帖链接 · Omited · CC BY-SA 3.0

Attempting to create a ZFS Pool on an SDD But Keep running into various errors.

lsblk Output for the drive is:

sdc                           8:32   0 232.9G  0 disk 
├─sdc1                        8:33   0 232.9G  0 part 
│ ├─Evo250-vm--303--disk--1 251:0    0    10G  0 lvm  
│ ├─Evo250-vm--401--disk--1 251:1    0    32G  0 lvm  
│ ├─Evo250-vm--404--disk--1 251:2    0    32G  0 lvm  
│ ├─Evo250-vm--405--disk--1 251:3    0    32G  0 lvm  
│ ├─Evo250-vm--101--disk--1 251:4    0    10G  0 lvm  
│ ├─Evo250-vm--304--disk--1 251:5    0    10G  0 lvm  
│ ├─Evo250-vm--305--disk--1 251:6    0    10G  0 lvm  
│ ├─Evo250-vm--600--disk--1 251:7    0    10G  0 lvm  
│ ├─Evo250-vm--301--disk--1 251:8    0    10G  0 lvm  
│ ├─Evo250-vm--110--disk--1 251:9    0    20G  0 lvm  
│ ├─Evo250-vm--302--disk--1 251:10   0    10G  0 lvm  
│ ├─Evo250-vm--306--disk--1 251:11   0    10G  0 lvm  
│ └─Evo250-vm--308--disk--1 251:12   0    10G  0 lvm  
└─sdc9                        8:41   0     8M  0 part

Command I use for ZFS creation:

zpool create -f pool1 /dev/sdc

Error I receive:

the kernel failed to rescan the partition table: 16
cannot label 'sdc': try using parted(8) and then provide a specific slice: -1

If I try

zpool create -f pool1 /dev/sdc1

I get

cannot open '/dev/sdc1': Device or resource busy
cannot create 'pool1': one or more vdevs refer to the same device, or one of
the devices is part of an active md or lvm device

I have also tried

dd if=/dev/zero of=/dev/sdc bs=1M

With error

dd: error writing ‘/dev/sdc’: No space left on device
238476+0 records in
238475+0 records out
250059350016 bytes (250 GB) copied, 796.689 s, 314 MB/s

I am running Deiban 8.6 / Proxmox 4.4

I have also tried cfdisk /dev/sdc and tried partitioning into various types to no avail.

Any direction to get sdc into a pool would be greatly appreciated.

已采纳解答

原帖链接 · poige · CC BY-SA 3.0

Try using wipefs -a for the disk devices you'd rather surely want to have re-initialized; then reboot. BEWARE: incorrect use would severe reduce chances of data recovery.

As a matter of finding out what is actual run-time use of sdc1 you can invoke

sudo dmsetup ls --tree

that would give out current mappings of the device-mapper.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-03-26)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。