[CentOS] question(s) about LVM snapshots

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

----- "Tony Schreiner" <schreian at bc.edu> escreveu:
> >
> > When the snap shot volume is mounted, yes you can do df on it. But 
> > that shows you the state of the volume you take the snapshot of at 
> > the time of the snapshot. That's not what I want to know.
> 
> Sorry to answer my own question, but I just learned, lvdisplay shows 
> the amount currently used by the snapshot
> 
> #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 with 
"zimbrabkp" the "difference" between "opt" and it's snapshot was 0.24%, I 
think this is what you are looking for.

  Antonio.


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


-- 
Esta mensagem foi verificada pelo sistema de antivírus e
 acredita-se estar livre de perigo.