Linux

如何將多個分區合併為一個虛擬驅動器?

  • February 18, 2016

我有 3sda4個 10 Gb 的分區;sda515 Gb 和sda620 Gb。debian8下如何創建和掛載虛擬硬碟將多個文件系統連接在一起?

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

引用自:https://unix.stackexchange.com/questions/264204