我已使用 LVM 对驱动器进行分区,为根目录和存储创建单独的逻辑卷 (LV)。每当我尝试执行存储 LV 上的某些内容时,我都会收到错误Permission denied
。
如果我在根 LV 上移动并执行相同的操作,它会按预期工作。我检查了两个 LV 的设置,似乎没有任何明显的差异。我一定是忽略了什么。
$ sudo lvdisplay
--- Logical volume ---
LV Path /dev/vgubuntu/root
LV Name root
VG Name vgubuntu
LV UUID NxdCBB-MS1U-vu2Y-iyH6-Tqij-OF1P-ZqqBn8
LV Write Access read/write
LV Creation host, time ubuntu, 2023-05-26 16:30:19 +0100
LV Status available
# open 1
LV Size 500.00 GiB
Current LE 128000
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
<Redacted>
--- Logical volume ---
LV Path /dev/vgubuntu/Storage
LV Name Storage
VG Name vgubuntu
LV UUID Jy2viP-GC1B-JyQH-mSvf-k337-A30r-f4xqI8
LV Write Access read/write
LV Creation host, time OQC-LT-70, 2023-06-19 10:23:51 +0100
LV Status available
# open 1
LV Size 1.36 TiB
Current LE 357350
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
我该如何解决这个问题?