How to: Change LVM Cache / dm-cache mode
LVM2 has a built in cache feature to use slow disk with SSDs. Although, by default, it changes...
How to: Change user from root with CageFS
To change your ssh console to an user other than root under cagefs, use the following:
su -...
How to: Check rDNS of an IP
An easy way to check the rDNS of an IP would be to use the online tools like...
How to: Device Mapper Number to LV Name
It is often confusing when device mapper number appears while troubleshooting in place of logical...
How to: Extend LVM partition
To increase the partition lv0 under volume group vg0 by 50GB, use lvextend command:
lvextend...
How to: Extend meta data of a thin pool
Thin pool meta data often gets overflown. It is possible to extend the thin pool metadata then...
How to: Install nslookup, host or dig
Error Example:
-bash: host: command not found
If your installation doesn't come with...
How to: LVM Snapshot
LVM snapshot can be useful for filesystem integrity check and backups. A snapshot of size 15GB...
How to: List volume id or uuid in Linux
There are places where it is called volume id like r1soft, while most of the cases they are...
How to: Mount raw VM disk images (KVM/Xen/VMW)
You can use linux loop device to mount the raw/disk images on the host. First, setup the loop...
How to: Rename Volume Group when there are multiple Volume Group with the same name
If for some reason, you end up screwing your LVM configuration with two volume group of the same...
How to: Repair a lvm thin pool
Sometimes there can be error like the following:Thin's thin-pool needs inspection.It can appear...
LVM Cheatsheet
To install LVM2 in CentOS/Redhat servers:
yum install lvm2
1. Add a partition to physical...