[SOLVED] /dev/sdb1 is apparently in use by the system

tatyrza

Renowned Member
Nov 15, 2015
23
2
68
Poland
Hello, I have brand new Proxmox server with subscription (latest 4.4 version). The system is on volume1 (hardware raid) as /dev/sda. Volume2 (hardware raid) /dev/sdb is empty. I want to place lvm volume on it, but I can't even format this drive. I can partition this drive in fdisk. Pvcreate returns error
"/dev/sdb1 is apparently in use by the system". Help me please!
 
Hello, I have brand new Proxmox server with subscription (latest 4.4 version). The system is on volume1 (hardware raid) as /dev/sda. Volume2 (hardware raid) /dev/sdb is empty. I want to place lvm volume on it, but I can't even format this drive. I can partition this drive in fdisk. Pvcreate returns error
"/dev/sdb1 is apparently in use by the system". Help me please!
Hi,
what is the output of
Code:
lsblk
Udo
 
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 279G 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 127M 0 part
└─sda3 8:3 0 278.8G 0 part
├─pve-root 251:0 0 69.5G 0 lvm /
├─pve-swap 251:3 0 8G 0 lvm [SWAP]
├─pve-data_tmeta 251:4 0 96M 0 lvm
│ └─pve-data-tpool 251:6 0 185.3G 0 lvm
│ ├─pve-data 251:7 0 185.3G 0 lvm
│ ├─pve-vm--100--disk--1 251:8 0 144G 0 lvm
│ ├─pve-vm--100--disk--2 251:9 0 144G 0 lvm
│ └─pve-vm--103--disk--1 251:10 0 72G 0 lvm
└─pve-data_tdata 251:5 0 185.3G 0 lvm
└─pve-data-tpool 251:6 0 185.3G 0 lvm
├─pve-data 251:7 0 185.3G 0 lvm
├─pve-vm--100--disk--1 251:8 0 144G 0 lvm
├─pve-vm--100--disk--2 251:9 0 144G 0 lvm
└─pve-vm--103--disk--1 251:10 0 72G 0 lvm
sdb 8:16 0 558.4G 0 disk
└─sdb1 8:17 0 558.4G 0 part
sdc 8:32 0 512G 0 disk
└─nasdata 251:11 0 512G 0 mpath
sdd 8:48 0 512G 0 disk
└─nasdata 251:11 0 512G 0 mpath
sr0 11:0 1 1024M 0 rom
 
Success! I've found the problem. It Was multipath. I had to add line
devnode "^(sd)[a-b]"
in blacklist section of multipath.conf then restart multipath daemon and thats it! Now /dev/sdb is fully available.
 

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!