各位先进好,原来使用 120G,全规在 /home 下, 不过空间快不够,所以加了一块硬盘,参考了几个站,不过到了 vgs 或 pvs 这一步就不行了,麻烦帮看下,谢谢
https://blog.csdn.net/weixin_34911749/a … /116733526
https://hackmd.io/@guan-idea/B1OYFWD_s
https://ithelp.ithome.com.tw/m/articles/10296467
sda 是 linux 原来的,sdd 是要加入的, sdb & sdc & nvme 是 windows 的
[william@ArchLinux ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 100G 0 part /home
│ /
└─sda2 8:2 0 11.8G 0 part [SWAP]
sdb 8:16 0 465.8G 0 disk
├─sdb1 8:17 0 319.3G 0 part
└─sdb2 8:18 0 146.5G 0 part
sdc 8:32 0 953.9G 0 disk
├─sdc1 8:33 0 100M 0 part
├─sdc2 8:34 0 16M 0 part
├─sdc3 8:35 0 953G 0 part
└─sdc4 8:36 0 815M 0 part
sdd 8:48 0 931.5G 0 disk
nvme0n1 259:0 0 1.9T 0 disk
├─nvme0n1p1 259:1 0 100M 0 part
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 1.9T 0 part
└─nvme0n1p4 259:4 0 815M 0 part
[william@ArchLinux ~]$ sudo pvcreate /dev/sdd (创建成功)
Physical volume "/dev/sdd" successfully created.
[william@ArchLinux ~]$ sudo lvdisplay (不会出现)
[william@ArchLinux ~]$ lvdisplay (报错,用 root 登入也一样)
File descriptor 20 (/home/william/.cache/mesa_shader_cache_db/part0/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 21 (/home/william/.cache/mesa_shader_cache_db/part0/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 22 (/home/william/.cache/mesa_shader_cache_db/part1/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 23 (/home/william/.cache/mesa_shader_cache_db/part1/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 24 (/home/william/.cache/mesa_shader_cache_db/part2/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 25 (/home/william/.cache/mesa_shader_cache_db/part2/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 26 (/home/william/.cache/mesa_shader_cache_db/part3/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 27 (/home/william/.cache/mesa_shader_cache_db/part3/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 28 (/home/william/.cache/mesa_shader_cache_db/part4/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 29 (/home/william/.cache/mesa_shader_cache_db/part4/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 30 (/home/william/.cache/mesa_shader_cache_db/part5/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 31 (/home/william/.cache/mesa_shader_cache_db/part5/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 32 (/home/william/.cache/mesa_shader_cache_db/part6/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 33 (/home/william/.cache/mesa_shader_cache_db/part6/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 34 (/home/william/.cache/mesa_shader_cache_db/part7/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 35 (/home/william/.cache/mesa_shader_cache_db/part7/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 36 (/home/william/.cache/mesa_shader_cache_db/part8/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 37 (/home/william/.cache/mesa_shader_cache_db/part8/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 38 (/home/william/.cache/mesa_shader_cache_db/part9/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 39 (/home/william/.cache/mesa_shader_cache_db/part9/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 40 (/home/william/.cache/mesa_shader_cache_db/part10/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 41 (/home/william/.cache/mesa_shader_cache_db/part10/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 42 (/home/william/.cache/mesa_shader_cache_db/part11/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 43 (/home/william/.cache/mesa_shader_cache_db/part11/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 44 (/home/william/.cache/mesa_shader_cache_db/part12/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 45 (/home/william/.cache/mesa_shader_cache_db/part12/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 46 (/home/william/.cache/mesa_shader_cache_db/part13/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 47 (/home/william/.cache/mesa_shader_cache_db/part13/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 48 (/home/william/.cache/mesa_shader_cache_db/part14/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 49 (/home/william/.cache/mesa_shader_cache_db/part14/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 50 (/home/william/.cache/mesa_shader_cache_db/part15/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 51 (/home/william/.cache/mesa_shader_cache_db/part15/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 52 (/home/william/.cache/mesa_shader_cache_db/part16/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 53 (/home/william/.cache/mesa_shader_cache_db/part16/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 54 (/home/william/.cache/mesa_shader_cache_db/part17/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 55 (/home/william/.cache/mesa_shader_cache_db/part17/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 56 (/home/william/.cache/mesa_shader_cache_db/part18/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 57 (/home/william/.cache/mesa_shader_cache_db/part18/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 58 (/home/william/.cache/mesa_shader_cache_db/part19/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 59 (/home/william/.cache/mesa_shader_cache_db/part19/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 60 (/home/william/.cache/mesa_shader_cache_db/part20/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 61 (/home/william/.cache/mesa_shader_cache_db/part20/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 62 (/home/william/.cache/mesa_shader_cache_db/part21/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 63 (/home/william/.cache/mesa_shader_cache_db/part21/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 64 (/home/william/.cache/mesa_shader_cache_db/part22/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 65 (/home/william/.cache/mesa_shader_cache_db/part22/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 66 (/home/william/.cache/mesa_shader_cache_db/part23/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 67 (/home/william/.cache/mesa_shader_cache_db/part23/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 68 (/home/william/.cache/mesa_shader_cache_db/part24/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 69 (/home/william/.cache/mesa_shader_cache_db/part24/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 70 (/home/william/.cache/mesa_shader_cache_db/part25/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 71 (/home/william/.cache/mesa_shader_cache_db/part25/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 72 (/home/william/.cache/mesa_shader_cache_db/part26/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 73 (/home/william/.cache/mesa_shader_cache_db/part26/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 74 (/home/william/.cache/mesa_shader_cache_db/part27/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 75 (/home/william/.cache/mesa_shader_cache_db/part27/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 76 (/home/william/.cache/mesa_shader_cache_db/part28/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 77 (/home/william/.cache/mesa_shader_cache_db/part28/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 78 (/home/william/.cache/mesa_shader_cache_db/part29/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 79 (/home/william/.cache/mesa_shader_cache_db/part29/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 80 (/home/william/.cache/mesa_shader_cache_db/part30/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 81 (/home/william/.cache/mesa_shader_cache_db/part30/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 82 (/home/william/.cache/mesa_shader_cache_db/part31/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 83 (/home/william/.cache/mesa_shader_cache_db/part31/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 84 (/home/william/.cache/mesa_shader_cache_db/part32/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 85 (/home/william/.cache/mesa_shader_cache_db/part32/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 86 (/home/william/.cache/mesa_shader_cache_db/part33/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 87 (/home/william/.cache/mesa_shader_cache_db/part33/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 88 (/home/william/.cache/mesa_shader_cache_db/part34/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 89 (/home/william/.cache/mesa_shader_cache_db/part34/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 90 (/home/william/.cache/mesa_shader_cache_db/part35/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 91 (/home/william/.cache/mesa_shader_cache_db/part35/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 92 (/home/william/.cache/mesa_shader_cache_db/part36/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 93 (/home/william/.cache/mesa_shader_cache_db/part36/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 94 (/home/william/.cache/mesa_shader_cache_db/part37/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 95 (/home/william/.cache/mesa_shader_cache_db/part37/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 96 (/home/william/.cache/mesa_shader_cache_db/part38/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 97 (/home/william/.cache/mesa_shader_cache_db/part38/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 98 (/home/william/.cache/mesa_shader_cache_db/part39/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 99 (/home/william/.cache/mesa_shader_cache_db/part39/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 100 (/home/william/.cache/mesa_shader_cache_db/part40/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 101 (/home/william/.cache/mesa_shader_cache_db/part40/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 102 (/home/william/.cache/mesa_shader_cache_db/part41/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 103 (/home/william/.cache/mesa_shader_cache_db/part41/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 104 (/home/william/.cache/mesa_shader_cache_db/part42/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 105 (/home/william/.cache/mesa_shader_cache_db/part42/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 106 (/home/william/.cache/mesa_shader_cache_db/part43/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 107 (/home/william/.cache/mesa_shader_cache_db/part43/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 108 (/home/william/.cache/mesa_shader_cache_db/part44/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 109 (/home/william/.cache/mesa_shader_cache_db/part44/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 110 (/home/william/.cache/mesa_shader_cache_db/part45/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 111 (/home/william/.cache/mesa_shader_cache_db/part45/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 112 (/home/william/.cache/mesa_shader_cache_db/part46/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 113 (/home/william/.cache/mesa_shader_cache_db/part46/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 114 (/home/william/.cache/mesa_shader_cache_db/part47/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 115 (/home/william/.cache/mesa_shader_cache_db/part47/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 116 (/home/william/.cache/mesa_shader_cache_db/part48/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 117 (/home/william/.cache/mesa_shader_cache_db/part48/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 118 (/home/william/.cache/mesa_shader_cache_db/part49/mesa_cache.db) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
File descriptor 119 (/home/william/.cache/mesa_shader_cache_db/part49/mesa_cache.idx) leaked on lvdisplay invocation. Parent PID 118868: /bin/bash
WARNING: Running as a non-root user. Functionality may be unavailable.
/run/lock/lvm/P_global:aux: open failed: 拒絕不符權限的操作
离线
你用的是 btrfs 文件系统吗?
你原来的硬盘没有用 LVM 管理,所以并不能直接用 LVM 扩充。
离线
你用的是 btrfs 文件系统吗?
你原来的硬盘没有用 LVM 管理,所以并不能直接用 LVM 扩充。
哈!不太确定是用啥文件,之前也是看网站作的,请问要咋看??
查了下,我是 ext4 的
最近编辑记录 xyz987 (2024-10-03 00:19:27)
离线
ext4 不支持多盘啦。你这个 /home 这么小、新加的盘那么大,不如直接整个地复制过去算了?
离线
我同样遇到扩充硬盘问题,现在用fdisk格式化了第二个硬盘,但是看属性是需要root权限,并且桌面上无法复制文件进去。
离线