Discussione: LVM - Snapshot
View Single Post
Old 11-05-2020, 18:54   #1
sat.paolo
Member
 
L'Avatar di sat.paolo
 
Iscritto dal: Sep 2007
Messaggi: 56
LVM - Snapshot

Ciao a tutti..vi chiedo un aiuto
Ho bisogno di creare degli snapshop del mio server Linux, tramite LVM
Al momento la situazione è questa:
Codice:
root@centOS8:~# df -h
File system          Dim. Usati Dispon. Uso% Montato su
devtmpfs             363M     0    363M   0% /dev
tmpfs                379M     0    379M   0% /dev/shm
tmpfs                379M   39M    341M  11% /run
tmpfs                379M     0    379M   0% /sys/fs/cgroup
/dev/mapper/cl-root   46G  4,5G     42G  10% /
/dev/sda1            976M  247M    663M  28% /boot
tmpfs                 76M     0     76M   0% /run/user/0
Codice:
root@centOS8:~# pvscan
  PV /dev/sda2   VG cl              lvm2 [<49,00 GiB / 0    free]
  Total: 1 [<49,00 GiB] / in use: 1 [<49,00 GiB] / in no VG: 0 [0   ]
Codice:
root@centOS8:~# lvscan
  ACTIVE            '/dev/cl/swap' [3,17 GiB] inherit
  ACTIVE            '/dev/cl/root' [45,82 GiB] inherit
root@centOS8:~#
Codice:
root@centOS8:~# vgdisplay
  --- Volume group ---
  VG Name               cl
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               <49,00 GiB
  PE Size               4,00 MiB
  Total PE              12543
  Alloc PE / Size       12543 / <49,00 GiB
  Free  PE / Size       0 / 0
  VG UUID               aeJ04H-2cQm-n1FE-ncQb-Novi-0XRh-TDCDfM

root@centOS8:~#
andando d eseguire:
Codice:
root@centOS8:~# lvcreate -L 8G -n bckimg cl
  Volume group "cl" has insufficient free space (0 extents): 2048 required.
root@centOS8:~#
se ho capito bene, dovrei ridurre i miei volumi logici ?
sat.paolo è offline   Rispondi citando il messaggio o parte di esso