Jump to Navigation

112 - How to get a dump for Linux LVM

1. Create Snapshot first.

Before creating a snapshot, please check the disk space of volume group.

# vgdisplay

  ..........

  Total PE              4347
  Alloc PE / Size       3902 / 121.94 GB
  Free  PE / Size       445 / 13.91 GB

# lvcreate --snapshot --size=1G --name snap /dev/VolGroup00/LogVol00

Check a new snapshot volume you created.

# lvscan

  ACTIVE            '/dev/VolGroup00/LogVol00' [6.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/LogVol05' [4.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/LogVol03' [4.00 GB] inherit
  ..........

# lvdisplay /dev/VolGroup00/snap

2. Generate a dump file for /dev/VolGroup00/LogVol00

# dump 0uf - /dev/VolGroup00/snap | gzip -c > /bkup/dump-LogVol00-file.gz

# lvremove -f /dev/VolGroup00/snap

 

Linux:


Main menu 2

Story | by Dr. Radut