Build a home server - part 6
Configure LVM
We need a physical device to tie to volume group:
Create a Volume Group:
Create a logical volume for testing Flashcache:
Format the Logical Volume:
Part 7 - Configure Flashcache
We need a physical device to tie to volume group:
root@ohlala:~# ls /dev/md*
/dev/md0 /dev/md1 /dev/md2
/dev/md:
0 1 2
root@ohlala:~# pvcreate /dev/md2
Physical volume "/dev/md2" successfully created
Create a Volume Group:
root@ohlala:~# vgcreate --verbose data /dev/md2
Wiping cache of LVM-capable devices
Wiping cache of LVM-capable devices
Adding physical volume '/dev/md2' to volume group 'data'
Creating directory "/etc/lvm/archive"
Archiving volume group "data" metadata (seqno 0).
Creating directory "/etc/lvm/backup"
Creating volume group backup "/etc/lvm/backup/data" (seqno 1).
Volume group "data" successfully created
root@ohlala:~#
Create a logical volume for testing Flashcache:
root@ohlala:~# lvcreate --verbose -L 100G --name ftest data
Setting logging type to disk
Finding volume group "data"
Archiving volume group "data" metadata (seqno 1).
Creating logical volume ftest
Creating volume group backup "/etc/lvm/backup/data" (seqno 2).
Found volume group "data"
Creating data-ftest
Loading data-ftest table (252:0)
Resuming data-ftest (252:0)
Clearing start of logical volume "ftest"
Creating volume group backup "/etc/lvm/backup/data" (seqno 2).
Logical volume "ftest" created
Format the Logical Volume:
root@ohlala:~# mkfs.ext4 -b 4096 -E stride=64,stripe-width=128 /dev/mapper/data-ftest
Part 7 - Configure Flashcache
Kommentarer
Trackback