![如何将多个分区合并为一个虚拟驱动器?](https://linux22.com/image/83807/%E5%A6%82%E4%BD%95%E5%B0%86%E5%A4%9A%E4%B8%AA%E5%88%86%E5%8C%BA%E5%90%88%E5%B9%B6%E4%B8%BA%E4%B8%80%E4%B8%AA%E8%99%9A%E6%8B%9F%E9%A9%B1%E5%8A%A8%E5%99%A8%EF%BC%9F.png)
我有 3 个sda4
10 GB 分区;sda5
15 GB 和sda6
20 GB。如何在 debian8 下创建并挂载虚拟硬盘以将多个文件系统连接在一起?
答案1
pvcreate /dev/sda4
pvcreate /dev/sda5
pvcreate /dev/sda6
vgcreate bigvolgrp /dev/sda4 /dev/sda5 /dev/sda6
lvcreate -n bigvolume -L 45G bigvolgrp
mkdir /bigstore
mkfs -t ext3 /dev/bigvolgrp/bigvolume
mount /dev/bigvolgrp/bigvolume /bigstore
df -h /bigstore #to verify