I have three disks:
/dev/sda
slow hdd/dev/sdb
slow hdd/dev/sdc
fast ssd/dev/vg0
volume group consisting/dev/sd{a,b,c}
Each logical volume (lv) should be raid1 mirrored and ssd cached.
With the following command, I can create a mirrored raid1 lv named test on vg0.
lvcreate --type raid1 -m 1 -L 1G -n test vg0
- What do I need to change in the previous command so that it will only use the slow hdds for the raid1 mirror? Can I use LVMs tag system (
@hdd, @ssd
) for this? - I found some tutorials which explained how to use the LVM cache feature. But it looks like I need to create for each lv an own cache-pool. Is it possible to create one big cache-pool for the whole vg0 so that all lvs in vg0 will be cached? Or can I safely reuse an existing cache-pool for other lvs?