create dm-cache backed logical volume in 3 easy steps!

  1. Create a new/Find your old logical volume
    This volume may already contain data/filesystems and should be placed on slow(er) storage.

    #
    # lvcreate -n home -L100G vg_orange
    #
  2. Create your CachePool aka Backend
    A CachePoolLV contains a CacheDataLV and a small CacheMetaLV, both will be created automatically. Place this CachePoolLV on your fast SSD

    #
    # lvcreate --type cache-pool -n home_cache -L 30G vg_orange /dev/sda
    #

  3. Convert your Origin into a CacheLV

    #
    # lvconvert –type cache –cachepool home_cache vg_orange/home
    #

Now you may access your Origin just like you did before, but should become faster after a while (because cache needs to be filled)

Hinterlasse einen Kommentar