[CentOS] question(s) about LVM snapshots

Antonio da Silva Martins Junior asmartins at uem.br
Fri Oct 12 19:30:56 UTC 2007


----- "Tony Schreiner" <schreian at bc.edu> escreveu:
> >
> > When the snap shot volume is mounted, yes you can do df on it. But=20
> > that shows you the state of the volume you take the snapshot of at=20
> > the time of the snapshot. That's not what I want to know.
>=20
> Sorry to answer my own question, but I just learned, lvdisplay shows=20
> the amount currently used by the snapshot
>=20
> #lvdisplay /dev/vg_data/lv_backup

Hi Tony,

  You can use "lvs" too:

#lvs
  LV        VG   Attr   LSize   Origin Snap%  Move Log Copy%
  home      sys  -wi-ao   2.00G
  opt       sys  owi-ao 250.00G
  root      sys  -wi-ao   1.50G
  usr       sys  -wi-ao   1.50G
  var       sys  -wi-ao   2.00G
  zcssnap   sys  swi-ao 150.00G opt      0.24
  zimbrabkp sys  -wi-ao 150.00G

  "zcssnap" is a snapshot of "opt", and during the time spent to sync it wi=
th=20
"zimbrabkp" the "difference" between "opt" and it's snapshot was 0.24%, I=
=20
think this is what you are looking for.

  Antonio.


--=20
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Antonio S. Martins Jr. - Support Analist | "Only The Shadow Knows     |
| Universidade Estadual de Maring=C3=A1 - Brasil|   what evil lurks in the =
  |
| NPD - N=C3=BAcleo de Processamento de Dados   |       Heart of Men!"     =
  |
| E-Mail: asmartins at uem.br / shadow at uem.br | !!! Linux User: 52392 !!!  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


--=20
Esta mensagem foi verificada pelo sistema de antiv=EDrus e
 acredita-se estar livre de perigo.




More information about the CentOS mailing list