I hope to use sata hdd as secondly storage pool, so I followed this documentation.
But I faced many problems, and I missed.
First, I tried to make volume group, I run this command on dom0 terminal:
sudo vgcreate vg1 /dev/sdb1
But terminal replied error message:
Can't open /dev/sdb1 exclusively. Mounted filesystem?
My hdd (sdb) is sata connecting, so sdb should mount to dom0 directly, I don’t think it not through sys-usb.
I think cause of its issue is gpt filesystem on hdd, so I run this command:
sudo wipefs -a /deb/sdb1
But this command also failed, wipefs command can not run from dom0, so I cloned fedora-39-minimal-template(Called it lvm-template), and I installed lvm2 package on it.
After I made and run AppVM from lvm-template, and attached hdd to AppVM, I run wipefs command on AppVM.
I successed, detach hdd from AppVM, I tried to make volume group on dom0 terminal, but error was once more, error message said “sdb is not mounted at dom0”.
So I tried run vgcreate command on AppVM from lvm-template, it successed, volume group was made.
After I run lvcreate command on same AppVM, this is also success.
I detach hdd once more, I tried to recognize thinpool by dom0, so I run this command:
sudo lvcreate -L xxG -T vg1/mythinpool
(I hope to hide my hdd size, so I write xxG on this forum)
This command successed, so I followed to continuation of documentation.
But error came once more, error massage said “Device or resource is busy”, I could not register hdd to Qubes os as storage pool.
So I had doubts to hdd truly don’t mount to dom0, I tried to use qvm-block:
qvm-block attach dom0 dom0:sdb
I successed to mount hdd to dom0, but same error massage was repeated.
So I think reason of error is to recognize thinpool name by don’t dom0.
So I returned sdb:
qvm-block detach dom0 dom0:sdb
This command was success.
So I tried to register from firstly once more, I run vgcreate command on AppVM once more.
After I run this command on dom0 terminal once more:
sudo lvcreate -L xxG -T vg1/mythinpool
But gui notification of Qubes Devices said ‘sdb (my sata hdd) unmount from dom0’ this time, my sata hdd is not indicated by Qubes Devices, so I can not see and touch my sata hdd.
I try to check /dev by ‘ls -a /dev
’, sdb is existing, so Qubes os is recognizing my sata hdd.
I am despairing now.
I don’t understand method of mount my sata hdd to dom0 once more, and reason of failure vgcreate and lvcreate command on dom0.
What should I do?