Notepad:LVM Snapshot

From Amar
Revision as of 17:43, 30 August 2021 by Lax (talk | contribs) (→‎LVM Snapshot)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

LVM Snapshot

  • create partition
  • create PV `pvcreate`
  • create VG `vgcreate <VG_NAME> <PV_NAME>`
  • create LV
lvcreate -n <LV_NAME> -l <pct>%FREE <VG_NAME>
  • format
mkfs.xfs `/dev/mapper/<VG_NAME>-<LV_NAME>
  • create mount point `mkdir -p <mountpoint>`
  • mount