From Wiki-UX.info

Wiki-UX / Integrity Virtual Machines / How to backup Integrity VM Guest file system in the VM Host
Jump to: navigation, search

How to backup Integrity VM Guest file system in the VM Host

Abstract

This article explains how to present LVM logical volumes assigned to a Integrity VM guest for file level access by the Integrity VM host.

This allows to perform file level backups directly from the Integrity VM host. Using VxVM volumes will be discuse in future versions of the article. This process can be used as a basis to implement Integrity VM host based file level backup to improve performance and reduce the complexity of disk to tape or disk to disk backup solutions on a virtual environment.

Contents


Procedure Steps

Once the backup environment is set, the procedure will follow these steps:

  1. Stop HPVM Guest application access to the LVM file system(s).
  2. Activate the HPVM Host volume group(s) in read only mode.
  3. Mount the file systems in the HPVM Host.
  4. Backup the data using the prefered tool and backup level.
  5. Unmount the file system(s) in the HPVM Host.
  6. Disable the HPVM Host volume group(s).
  7. Start HPVM guest application access to the LVM file system(s).

The next sections of the article details how to set the backup environment and provide an example.

HPVM Guest LVM environment

The HPVM guest tifa has a LVM volume group /dev/vgdata with eight (8) logical volumes of 128 MB each. All this logical volumes hold JFS (VxFS) file systems. Some arbitrary files were copied from the guest /usr/bin directory to each file system to simulate actual data.

# vgdisplay -v vgdata
--- Volume groups ---
VG Name                     /dev/vgdata
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      8
Open LV                     8
Max PV                      16
Cur PV                      1
Act PV                      1
Max PE per PV               8768
VGDA                        2
PE Size (Mbytes)            4
Total PE                    8767
Alloc PE                    256
Free PE                     8511
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0
 
   --- Logical volumes ---
   LV Name                     /dev/vgdata/lvol1
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol2
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol3
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol4
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol5
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol6
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol7
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol8
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
 
   --- Physical volumes ---
   PV Name                     /dev/dsk/c0t0d0
   PV Status                   available
   Total PE                    8767
   Free PE                     8511
   Autoswitch                  On
   Proactive Polling           On
# bdf
Filesystem          kbytes    used   avail %used Mounted on
/dev/vx/dsk/rootdg/rootvol
                   1048576  319608  683460   32% /
/dev/vx/dsk/rootdg/standvol
                   1835008  208643 1524749   12% /stand
/dev/vx/dsk/rootdg/varvol
                   10485760 2064940 7894559   21% /var
/dev/vx/dsk/rootdg/usrvol
                   8388608 2617645 5410299   33% /usr
/dev/vx/dsk/rootdg/tmpvol
                    524288   16695  475934    3% /tmp
/dev/vx/dsk/rootdg/optvol
                   8388608 4451390 3691206   55% /opt
/dev/vx/dsk/rootdg/homevol
                    106496    1149   98768    1% /home
/dev/vgdata/lvol1   131072    9604  113880    8% /data1
/dev/vgdata/lvol2   131072    2036  120976    2% /data2
/dev/vgdata/lvol3   131072   15442  108460   12% /data3
/dev/vgdata/lvol4   131072   21818  102489   18% /data4
/dev/vgdata/lvol5   131072    3961  119171    3% /data5
/dev/vgdata/lvol6   131072    6007  117250    5% /data6
/dev/vgdata/lvol7   131072    2518  120523    2% /data7
/dev/vgdata/lvol8   131072    6199  117073    5% /data8
# find /data* -type f -exec ll {} \;
-r-xr-xr-x   1 root       sys         118456 Jan 29 01:41 /data1/acl_edit
-r-xr-xr-x   1 root       sys         911656 Jan 29 01:41 /data1/adb
-r-xr-xr-x   1 root       sys          37924 Jan 29 01:41 /data1/adjust
-r-xr-xr-x   1 root       sys         156852 Jan 29 01:41 /data1/admin
-r-xr-xr-x   1 root       sys            154 Jan 29 01:41 /data1/alias
-r-xr-xr-x   1 root       sys         119008 Jan 29 01:41 /data1/answer
-r-xr-xr-x   1 root       sys        5889200 Jan 29 01:41 /data1/ar
-r-xr-xr-x   1 root       sys          18332 Jan 29 01:41 /data1/asa
-r-sr-xr-x   1 root       sys         149756 Jan 29 01:41 /data1/at
-r-xr-xr-x   1 root       sys          55524 Jan 29 01:41 /data1/audevent
-r-xr-xr-x   1 root       sys         149076 Jan 29 01:41 /data1/audisp
-r-xr-xr-x   1 root       sys          67932 Jan 29 01:41 /data1/audsys
-r-xr-xr-x   1 root       sys          36892 Jan 29 01:41 /data1/audusr
-r-xr-xr-x   1 root       sys          44652 Jan 29 01:41 /data1/autopush
-r-xr-xr-x   1 root       sys         271696 Jan 29 01:41 /data1/awk
-r-xr-xr-x   1 root       sys          18452 Jan 29 01:41 /data2/banner
-r-xr-xr-x   1 root       sys          13644 Jan 29 01:41 /data2/basename
-r-xr-xr-x   1 root       sys             45 Jan 29 01:41 /data2/batch
-r-xr-xr-x   1 root       sys          44108 Jan 29 01:41 /data2/bc
-r-sr-xr-x   1 root       sys          56932 Jan 29 01:41 /data2/bdf
-r-xr-xr-x   1 root       sys          42756 Jan 29 01:41 /data2/bdiff
-r-xr-xr-x   1 root       sys            145 Jan 29 01:41 /data2/bg
-r-xr-xr-x   1 root       sys            724 Jan 29 01:41 /data2/big5-cwin
-r-xr-xr-x   1 root       sys            716 Jan 29 01:41 /data2/big5-et
-r-xr-xr-x   1 root       sys            723 Jan 29 01:41 /data2/big5udfdown
-r-xr-xr-x   1 root       sys            720 Jan 29 01:41 /data2/big5udfgen
-r-xr-xr-x   1 root       sys         101748 Jan 29 01:41 /data2/bs
-r-xr-xr-x   1 root       sys           3651 Jan 29 01:42 /data3/c_rehash
-r-xr-xr-x   1 root       sys          18684 Jan 29 01:42 /data3/cachefsstat
-r-xr-xr-x   1 root       sys          27772 Jan 29 01:42 /data3/cal
-r-xr-xr-x   1 root       sys            739 Jan 29 01:42 /data3/calendar
-r-sr-xr-x   1 root       sys         107044 Jan 29 01:42 /data3/cancel
-r-xr-xr-x   1 root       sys          95676 Jan 29 01:42 /data3/captoinfo
-r-xr-xr-x   1 root       sys          28372 Jan 29 01:42 /data3/cat
-r-xr-xr-x   1 root       sys         400852 Jan 29 01:42 /data3/cc
-r-xr-xr-x   1 root       sys            182 Jan 29 01:42 /data3/ccat
-r-xr-xr-x   1 root       sys            716 Jan 29 01:42 /data3/ccdc-et
-r-xr-xr-x   1 root       sys            728 Jan 29 01:42 /data3/ccdcudfdown
-r-xr-xr-x   1 root       sys            727 Jan 29 01:42 /data3/ccdcudfgen
-r-xr-xr-x   1 root       sys            145 Jan 29 01:42 /data3/cd
-r-xr-xr-x   1 root       sys         145732 Jan 29 01:42 /data3/cdc
-r-xr-xr-x   1 root       sys        1940608 Jan 29 01:42 /data3/cdsadv
-r-xr-xr-x   1 root       sys         335544 Jan 29 01:42 /data3/cdscp
-r-xr-xr-x   1 root       sys          29188 Jan 29 01:42 /data3/chacl
-r-xr-xr-x   1 root       sys            589 Jan 29 01:42 /data3/change2v9db.sh
-r-xr-xr-x   1 root       sys        6767544 Jan 29 01:42 /data3/chatr
-r-xr-xr-x   1 root       sys          27444 Jan 29 01:42 /data3/checknr
-r-sr-xr-x   2 root       sys         107992 Jan 29 01:42 /data3/chfn
-r-xr-xr-x   1 root       sys          42420 Jan 29 01:42 /data3/chgrp
-r-sr-xr-x   1 root       sys         105748 Jan 29 01:42 /data3/chkey
-r-xr-xr-x   1 root       sys          52092 Jan 29 01:42 /data3/chmod
-r-xr-xr-x   1 root       sys          28420 Jan 29 01:42 /data3/chnlspath
-r-xr-xr-x   1 root       sys          42716 Jan 29 01:42 /data3/chown
-r-sr-xr-x   2 root       sys         107992 Jan 29 01:42 /data3/chsh
-r-xr-xr-x   1 root       sys         262836 Jan 29 01:42 /data3/ci
-rwxr-xr-x   1 root       sys           8908 Jan 29 01:42 /data3/cifsclient
-rwxr-xr-x   1 root       sys         283900 Jan 29 01:42 /data3/cifsdb
-rwxr-xr-x   1 root       sys         283900 Jan 29 01:42 /data3/cifslist
-rwxr-xr-x   1 root       sys         283900 Jan 29 01:42 /data3/cifslogin
-rwxr-xr-x   1 root       sys         283900 Jan 29 01:42 /data3/cifslogout
-rwxr-xr-x   1 root       sys         283900 Jan 29 01:42 /data3/cifsmount
-rwxr-xr-x   1 root       sys         283900 Jan 29 01:42 /data3/cifsumount
-r-xr--r--   1 root       sys          42716 Jan 29 01:42 /data3/ckconfig
-r-xr-xr-x   1 root       sys          25220 Jan 29 01:42 /data3/cksum
-r-xr-xr-x   1 root       sys           9164 Jan 29 01:42 /data3/clear
-r-xr-xr-x   1 root       sys          28164 Jan 29 01:42 /data3/cmp
-r-xr-xr-x   1 root       sys         234980 Jan 29 01:42 /data3/co
-r-xr-xr-x   1 root       sys            729 Jan 29 01:42 /data3/coder
-r-xr-xr-x   1 root       sys          39724 Jan 29 01:42 /data3/col
-r-xr-xr-x   1 root       sys          96460 Jan 29 01:42 /data3/comb
-r-xr-xr-x   1 root       sys          14180 Jan 29 01:42 /data3/comm
-r-xr-xr-x   1 root       sys            170 Jan 29 01:42 /data3/command
-r-xr-xr-x   1 root       sys          33388 Jan 29 01:42 /data3/compact
-r-xr-xr-x   1 root       sys          52060 Jan 29 01:42 /data3/compress
-r-xr-xr-x   1 root       sys            305 Jan 29 01:42 /data3/compressdir
-r-xr-xr-x   1 root       sys          67812 Jan 29 01:42 /data3/cp
-r-xr-xr-x   1 root       sys         139992 Jan 29 01:42 /data3/cpio
-r-xr-xr-x   1 root       sys          38276 Jan 29 01:42 /data3/cpset
-r-sr-xr-x   1 root       sys          54820 Jan 29 01:42 /data3/crontab
-r-xr-xr-x   1 root       sys         411140 Jan 29 01:42 /data3/csh
-r-xr-xr-x   1 root       sys          18964 Jan 29 01:42 /data3/crypt
-r-xr-xr-x   1 root       sys          43124 Jan 29 01:42 /data3/csplit
-r-sr-xr-x   1 root       sys         104068 Jan 29 01:42 /data3/ct
-r-xr-xr-x   1 root       sys          63540 Jan 29 01:42 /data3/ctags
-r-sr-xr-x   1 root       sys          84940 Jan 29 01:42 /data3/cu
-r-xr-xr-x   1 root       sys          27836 Jan 29 01:42 /data3/cut
-r-xr-xr-x   1 root       sys            722 Jan 29 01:42 /data3/cwin-big5
-r-xr-xr-x   1 root       sys          28092 Jan 29 01:42 /data4/date
-r-xr-xr-x   1 root       sys          96932 Jan 29 01:42 /data4/dc
-r-xr-xr-x   1 root       sys          69304 Jan 29 01:42 /data4/dce_login
-r-xr-xr-x   1 root       sys         638648 Jan 29 01:42 /data4/dcecp
-r-xr-xr-x   1 root       sys          38444 Jan 29 01:42 /data4/dd
-r-xr-xr-x   1 root       sys         196508 Jan 29 01:42 /data4/delta
-r-xr-xr-x   1 root       sys          64700 Jan 29 01:42 /data4/deroff
-r-sr-xr-x   1 root       sys         176524 Jan 29 01:42 /data4/df
-r-xr--r--   1 root       sys          20248 Jan 29 01:42 /data4/dhcpv6client_ui
-r-xr--r--   1 root       sys          99236 Jan 29 01:42 /data4/dhcpv6db2conf
-r-xr-xr-x   1 root       sys          97740 Jan 29 01:42 /data4/diff
-r-xr-xr-x   1 root       sys            656 Jan 29 01:42 /data4/diff3
-r-xr-xr-x   1 root       sys            779 Jan 29 01:42 /data4/diffmk
-r-xr-xr-x   1 root       sys        3900136 Jan 29 01:42 /data4/dig
-r-xr-xr-x   1 root       sys           1805 Jan 29 01:42 /data4/dircmp
-r-xr-xr-x   1 root       sys           9260 Jan 29 01:42 /data4/dirname
-r-sr-xr-x   1 root       sys          83540 Jan 29 01:42 /data4/disable
-r-xr-xr-x   1 root       sys          28700 Jan 29 01:42 /data4/dmpxlt
-r-xr-xr-x   1 root       sys        1857880 Jan 29 01:42 /data4/dnssec-keygen
-r-xr-xr-x   1 root       sys        3765752 Jan 29 01:42 /data4/dnssec-makekeyset
-r-xr-xr-x   1 root       sys        3765720 Jan 29 01:42 /data4/dnssec-signkey
-r-xr-xr-x   1 root       sys        3814176 Jan 29 01:42 /data4/dnssec-signzone
-r-xr-xr-x   1 root       sys          14132 Jan 29 01:42 /data4/domainname
-r-xr-xr-x   1 root       sys           9316 Jan 29 01:42 /data4/dos2ux
-r-xr-xr-x   8 root       sys         119524 Jan 29 01:42 /data4/doschmod
-r-xr-xr-x   8 root       sys         119524 Jan 29 01:42 /data4/doscp
-r-xr-xr-x   8 root       sys         119524 Jan 29 01:42 /data4/dosdf
-r-xr-xr-x   8 root       sys         119524 Jan 29 01:42 /data4/dosll
-r-xr-xr-x   8 root       sys         119524 Jan 29 01:42 /data4/dosls
-r-xr-xr-x   8 root       sys         119524 Jan 29 01:42 /data4/dosmkdir
-r-xr-xr-x   8 root       sys         119524 Jan 29 01:42 /data4/dosrm
-r-xr-xr-x   8 root       sys         119524 Jan 29 01:42 /data4/dosrmdir
-r-xr-xr-x   1 root       sys         108624 Jan 29 01:42 /data4/dts_ntp_provider
-r-xr-xr-x   1 root       sys          58840 Jan 29 01:42 /data4/dts_null_provider
-r-xr-xr-x   1 root       sys         138936 Jan 29 01:42 /data4/dtscp
-r-xr-xr-x   1 root       sys        1161792 Jan 29 01:42 /data4/dtsd
-r-xr-xr-x   1 root       sys          38220 Jan 29 01:42 /data4/du
-r-xr-xr-x   1 root       sys          35956 Jan 29 01:42 /data4/dumpfs
-r-xr-xr-x   1 root       sys          22988 Jan 29 01:42 /data4/dumpmsg
-r-xr-xr-t   3 root       sys         605280 Jan 29 01:42 /data5/e
-r-xr-xr-x   1 root       sys          17708 Jan 29 01:42 /data5/echo
-r-xr-xr-x   1 root       sys         147420 Jan 29 01:42 /data5/ed
-r-xr-xr-t   3 root       sys         605280 Jan 29 01:42 /data5/edit
-r-xr-xr-x   1 root       sys          51236 Jan 29 01:42 /data5/egrep
-r-xr-sr-x   1 root       sys        1146600 Jan 29 01:42 /data5/elm
-r-xr-xr-x   1 root       sys         107864 Jan 29 01:42 /data5/elmalias
-r-sr-xr-x   1 root       sys          64060 Jan 29 01:42 /data5/enable
-r-xr-xr-x   1 root       sys          18380 Jan 29 01:42 /data5/env
-r-xr-xr-x   1 root       sys            716 Jan 29 01:42 /data5/et-big5
-r-xr-xr-x   1 root       sys            716 Jan 29 01:42 /data5/et-ccdc
-r-xr-xr-x   1 root       sys          23156 Jan 29 01:42 /data5/eucset
-r-xr-xr-t   3 root       sys         605280 Jan 29 01:42 /data5/ex
-r-xr-xr-x   1 root       sys          28140 Jan 29 01:42 /data5/expand
-r-xr-xr-x   1 root       sys          41484 Jan 29 01:42 /data5/expr
-r-xr-xr-x   1 root       sys          13856 Jan 29 01:42 /data6/factor
-r-xr-xr-x   1 root       sys           9020 Jan 29 01:42 /data6/false
-r-xr-xr-x   1 root       sys         307784 Jan 29 01:42 /data6/fastmail
-r-xr-xr-x   1 root       sys            145 Jan 29 01:42 /data6/fc
-r-xr-xr-x   1 root       sys          13700 Jan 29 01:42 /data6/fdetach
-r-xr-xr-x   1 root       sys        2692288 Jan 29 01:42 /data6/fdp
-r-xr-xr-x   1 root       sys            145 Jan 29 01:42 /data6/fg
-r-xr-xr-x   1 root       sys          51236 Jan 29 01:42 /data6/fgrep
-r-xr-xr-x   1 root       sys          96140 Jan 29 01:42 /data6/file
-r-xr-xr-x   1 root       sys         159812 Jan 29 01:42 /data6/find
-r-xr-xr-x   1 root       sys          45836 Jan 29 01:42 /data6/findmsg
-r-xr-xr-x   1 root       sys          25880 Jan 29 01:42 /data6/findstr
-r-xr-xr-x   1 root       sys          88484 Jan 29 01:42 /data6/finger
-r-xr-xr-x   1 root       sys           2041 Jan 29 01:42 /data6/fixman
-r-xr-xr-x   1 root       sys          29404 Jan 29 01:42 /data6/fmt
-r-xr-xr-x   1 root       sys          45508 Jan 29 01:42 /data6/fold
-r-xr-xr-x   1 root       sys          14196 Jan 29 01:42 /data6/forder
-r-xr-xr-x   1 root       sys          13900 Jan 29 01:42 /data6/from
-r-xr-xr-x   1 root       sys         167332 Jan 29 01:42 /data6/ftio
-r-xr-xr-x   1 root       sys         374364 Jan 29 01:42 /data6/ftp
-r-xr--r--   1 root       sys          42828 Jan 29 01:42 /data6/ftpcount
-r-xr--r--   1 root       sys          48244 Jan 29 01:42 /data6/ftprestart
-r-xr--r--   1 root       sys          56828 Jan 29 01:42 /data6/ftpshut
-r-xr--r--   1 root       sys          42828 Jan 29 01:42 /data6/ftpwho
-r-xr-xr-x   1 root       sys          36732 Jan 29 01:43 /data7/gencat
-r-xr-xr-x   1 root       sys          28700 Jan 29 01:43 /data7/genxlt
-r-xr-xr-x   1 root       sys         172084 Jan 29 01:43 /data7/get
-r-xr-xr-x   1 root       sys          19100 Jan 29 01:43 /data7/getaccess
-r-xr-xr-x   1 root       sys          22940 Jan 29 01:43 /data7/getacl
-r-xr-xr-x   1 root       sys          52920 Jan 29 01:43 /data7/getcellname
-r-xr-xr-x   1 root       sys         107604 Jan 29 01:43 /data7/getconf
-r-xr-xr-x   1 root       sys          52920 Jan 29 01:43 /data7/getip
-r-xr-xr-x   1 root       sys            454 Jan 29 01:43 /data7/getmemwindow
-r-xr-xr-x   1 root       sys          14156 Jan 29 01:43 /data7/getopt
-r-xr-xr-x   1 root       sys            162 Jan 29 01:43 /data7/getopts
-r-xr-xr-x   1 root       sys          14172 Jan 29 01:43 /data7/getprivgrp
-r-xr-xr-x   1 root       sys         156764 Jan 29 01:43 /data7/gprof
-r-xr-xr-x   1 root       sys          51268 Jan 29 01:43 /data7/grep
-r-xr-xr-x   1 root       sys          18468 Jan 29 01:43 /data7/grget
-r-xr-xr-x   1 root       sys          23212 Jan 29 01:43 /data7/groups
-r-xr-xr-x   1 root       sys            151 Jan 29 01:43 /data8/hash
-r-xr-xr-x   1 root       sys          18500 Jan 29 01:43 /data8/head
-r-xr-xr-x   1 root       sys          20148 Jan 29 01:43 /data8/help
-r-xr-xr-x   1 root       sys        3884688 Jan 29 01:43 /data8/host
-r-xr-xr-x   1 root       sys           9420 Jan 29 01:43 /data8/hostname
-r-xr-xr-x   1 root       sys          68806 Jan 29 01:43 /data8/hosts_to_named
-r-xr-xr-x   1 root       sys          23004 Jan 29 01:43 /data8/hp
-r-xr-xr-x   7 root       sys           9020 Jan 29 01:43 /data8/hp-pa
-r-xr-xr-x   7 root       sys           9020 Jan 29 01:43 /data8/hp9000s200
-r-xr-xr-x   7 root       sys           9020 Jan 29 01:43 /data8/hp9000s300
-r-xr-xr-x   7 root       sys           9020 Jan 29 01:43 /data8/hp9000s400
-r-xr-xr-x   7 root       sys           9020 Jan 29 01:43 /data8/hp9000s500
-r-xr-xr-x   1 root       sys         497540 Jan 29 01:43 /data8/hp9000s700
-r-xr-xr-x   7 root       sys           9020 Jan 29 01:43 /data8/hp9000s700_8MB
-r-xr-xr-x   7 root       sys           9020 Jan 29 01:43 /data8/hp9000s800
-r-xr-xr-x   1 root       sys          13804 Jan 29 01:43 /data8/hyphen

Import HPVM guest LVM volume group in the HPVM host

In the HPVM guest, create a mapfile to share the LVM volume group group with the HPVM host.

1. Create a LVM mapfile using the vgexport command with the required options to obtain the VGID.

# vgexport -p -s -m /vgdata.map vgdata

2. Verified that the mapfile contains both VGID and the logical volume information.

# cat /vgdata.map
VGID 505cffd449815b8a
1 lvol1
2 lvol2
3 lvol3
4 lvol4
5 lvol5
6 lvol6
7 lvol7
8 lvol8

3. Copy the mapfile to the HPVM host / file systems. For example, using scp command:

# scp /vgdata.map zx6000:/

In the HPVM host, use the mapfile to import the LVM volume group.

Edit the /etc/lvmrc file to set the AUTO_VG_ACTIVATE variable to 0 to made sure that only HPVM host boot volume is active during boot. Define a custom activation script if you need to activate other volume groups to support the HPVM guests, like when logical volumes are in use as storage by the guests.

1. Verified the available minor number available to import the volume group.

# ll /dev/*/group
crw-r-----   1 root       sys         64 0x000000 Nov 20 23:07 /dev/vg00/group

2. Create the directory a group node file, using the next available minor number: 0x010000

# mkdir -m 755 /dev/vgdata
# mknod /dev/vgdata/group c 64 0x010000
# vgimport -s -m /vgdata.map vgdata

3. Activate the volume group /dev/vgdata in read-only mode

# vgchange -a r /dev/vgdata

4. Check volume group current status

# vgdisplay -v vgdata
--- Volume groups ---
VG Name                     /dev/vgdata
VG Write Access             read-only
VG Status                   available
Max LV                      255
Cur LV                      8
Open LV                     8
Max PV                      16
Cur PV                      1
Act PV                      1
Max PE per PV               8768
VGDA                        2
PE Size (Mbytes)            4
Total PE                    8767
Alloc PE                    256
Free PE                     8511
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0
VG Version                  1.0
VG Max Size                 548g
VG Max Extents              140288
 
   --- Logical volumes ---
   LV Name                     /dev/vgdata/lvol1
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol2
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol3
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol4
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol5
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol6
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol7
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
   LV Name                     /dev/vgdata/lvol8
   LV Status                   available/syncd
   LV Size (Mbytes)            128
   Current LE                  32
   Allocated PE                32
   Used PV                     1
 
 
   --- Physical volumes ---
   PV Name                     /dev/dsk/c3t5d0
   PV Status                   available
   Total PE                    8767
   Free PE                     8511
   Autoswitch                  On
   Proactive Polling           On

Configure backup enviroment

1. Create a backup directory structure to mount the LVM volume group. Is a good idea that the directory structure reflects the HPVM guest name, volume group and logical volume name.

# mkdir /tifa_vgdata
# for lv in 1 2 3 4 5 6 7 8
do
mkdir -m 755 /tifa_vgdata/data$lv
done

2. Mount the JFS (VxFS) file systems in the backup directory mount points, using the read-only option to ensure that only the HPVM guest can modify data on these file systems.

# for lv in 1 2 3 4 5 6 7 8
do
mount -F vxfs -o ro /dev/vgdata/lvol$lv /tifa_vgdata/data$lv
done

3. Check that the file systems are properly mounted.

# bdf
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3    1048576  225304  816928   22% /
/dev/vg00/lvol1    1835008  172848 1649272    9% /stand
/dev/vg00/lvol8    6127616  963512 5128128   16% /var
/dev/vg00/ignite   12574720 6396701 5791960   52% /var/opt/ignite
/dev/vg00/lvol7    5021696 2894296 2110856   58% /usr
/dev/vg00/lvol4     524288   20808  499552    4% /tmp
/dev/vg00/lvol6    7389184 4799856 2569112   65% /opt
/dev/vg00/lvol5     106496    5432  100280    5% /home
DevFS                    3       3       0  100% /dev/deviceFileSystem
/dev/vgdata/lvol1   131072    9604  113877    8% /tifa_vgdata/data1
/dev/vgdata/lvol2   131072    2036  120972    2% /tifa_vgdata/data2
/dev/vgdata/lvol3   131072   15442  108404   12% /tifa_vgdata/data3
/dev/vgdata/lvol4   131072   21818  102426   18% /tifa_vgdata/data4
/dev/vgdata/lvol5   131072    3961  119167    3% /tifa_vgdata/data5
/dev/vgdata/lvol6   131072    6007  117249    5% /tifa_vgdata/data6
/dev/vgdata/lvol7   131072    2518  120520    2% /tifa_vgdata/data7
/dev/vgdata/lvol8   131072    6199  117069    5% /tifa_vgdata/data8

Backup the file systems

Backup the file system data using the prefered tool. The following example uses the tar command with relative paths to tape drive /dev/rmt/0m. Adapt according to the backup software used on the HPVM host.

# cd /tifa_vgdata
 
# tar -cvf /dev/rmt/0m ./data*
a ./data1/acl_edit 232 blocks
a ./data1/adb 1781 blocks
a ./data1/adjust 75 blocks
a ./data1/admin 307 blocks
a ./data1/alias 1 blocks
a ./data1/answer 233 blocks
a ./data1/ar 11503 blocks
a ./data1/asa 36 blocks
a ./data1/at 293 blocks
a ./data1/audevent 109 blocks
a ./data1/audisp 292 blocks
a ./data1/audsys 133 blocks
a ./data1/audusr 73 blocks
a ./data1/autopush 88 blocks
a ./data1/awk 531 blocks
a ./data2/banner 37 blocks
a ./data2/basename 27 blocks
a ./data2/batch 1 blocks
a ./data2/bc 87 blocks
a ./data2/bdf 112 blocks
a ./data2/bdiff 84 blocks
a ./data2/bg 1 blocks
a ./data2/big5-cwin 2 blocks
a ./data2/big5-et 2 blocks
a ./data2/big5udfdown 2 blocks
a ./data2/big5udfgen 2 blocks
a ./data2/bs 199 blocks
a ./data3/c_rehash 8 blocks
a ./data3/cachefsstat 37 blocks
a ./data3/cal 55 blocks
a ./data3/calendar 2 blocks
a ./data3/cancel 210 blocks
a ./data3/captoinfo 187 blocks
a ./data3/cat 56 blocks
a ./data3/cc 783 blocks
a ./data3/ccat 1 blocks
a ./data3/ccdc-et 2 blocks
a ./data3/ccdcudfdown 2 blocks
a ./data3/ccdcudfgen 2 blocks
a ./data3/cd 1 blocks
a ./data3/cdc 285 blocks
a ./data3/cdsadv 3791 blocks
a ./data3/cdscp 656 blocks
a ./data3/chacl 58 blocks
a ./data3/change2v9db.sh 2 blocks
a ./data3/chatr 13218 blocks
a ./data3/checknr 54 blocks
a ./data3/chfn 211 blocks
a ./data3/chgrp 83 blocks
a ./data3/chkey 207 blocks
a ./data3/chmod 102 blocks
a ./data3/chnlspath 56 blocks
a ./data3/chown 84 blocks
a ./data3/chsh link to ./data3/chfn
a ./data3/ci 514 blocks
a ./data3/cifsclient 18 blocks
a ./data3/cifsdb 555 blocks
a ./data3/cifslist 555 blocks
a ./data3/cifslogin 555 blocks
a ./data3/cifslogout 555 blocks
a ./data3/cifsmount 555 blocks
a ./data3/cifsumount 555 blocks
a ./data3/ckconfig 84 blocks
a ./data3/cksum 50 blocks
a ./data3/clear 18 blocks
a ./data3/cmp 56 blocks
a ./data3/co 459 blocks
a ./data3/coder 2 blocks
a ./data3/col 78 blocks
a ./data3/comb 189 blocks
a ./data3/comm 28 blocks
a ./data3/command 1 blocks
a ./data3/compact 66 blocks
a ./data3/compress 102 blocks
a ./data3/compressdir 1 blocks
a ./data3/cp 133 blocks
a ./data3/cpio 274 blocks
a ./data3/cpset 75 blocks
a ./data3/crontab 108 blocks
a ./data3/csh 804 blocks
a ./data3/crypt 38 blocks
a ./data3/csplit 85 blocks
a ./data3/ct 204 blocks
a ./data3/ctags 125 blocks
a ./data3/cu 166 blocks
a ./data3/cut 55 blocks
a ./data3/cwin-big5 2 blocks
a ./data4/date 55 blocks
a ./data4/dc 190 blocks
a ./data4/dce_login 136 blocks
a ./data4/dcecp 1248 blocks
a ./data4/dd 76 blocks
a ./data4/delta 384 blocks
a ./data4/deroff 127 blocks
a ./data4/df 345 blocks
a ./data4/dhcpv6client_ui 40 blocks
a ./data4/dhcpv6db2conf 194 blocks
a ./data4/diff 191 blocks
a ./data4/diff3 2 blocks
a ./data4/diffmk 2 blocks
a ./data4/dig 7618 blocks
a ./data4/dircmp 4 blocks
a ./data4/dirname 19 blocks
a ./data4/disable 164 blocks
a ./data4/dmpxlt 57 blocks
a ./data4/dnssec-keygen 3629 blocks
a ./data4/dnssec-makekeyset 7355 blocks
a ./data4/dnssec-signkey 7355 blocks
a ./data4/dnssec-signzone 7450 blocks
a ./data4/domainname 28 blocks
a ./data4/dos2ux 19 blocks
a ./data4/doschmod 234 blocks
a ./data4/doscp link to ./data4/doschmod
a ./data4/dosdf link to ./data4/doschmod
a ./data4/dosll link to ./data4/doschmod
a ./data4/dosls link to ./data4/doschmod
a ./data4/dosmkdir link to ./data4/doschmod
a ./data4/dosrm link to ./data4/doschmod
a ./data4/dosrmdir link to ./data4/doschmod
a ./data4/dts_ntp_provider 213 blocks
a ./data4/dts_null_provider 115 blocks
a ./data4/dtscp 272 blocks
a ./data4/dtsd 2270 blocks
a ./data4/du 75 blocks
a ./data4/dumpfs 71 blocks
a ./data4/dumpmsg 45 blocks
a ./data5/e 1183 blocks
a ./data5/echo 35 blocks
a ./data5/ed 288 blocks
a ./data5/edit link to ./data5/e
a ./data5/egrep 101 blocks
a ./data5/elm 2240 blocks
a ./data5/elmalias 211 blocks
a ./data5/enable 126 blocks
a ./data5/env 36 blocks
a ./data5/et-big5 2 blocks
a ./data5/et-ccdc 2 blocks
a ./data5/eucset 46 blocks
a ./data5/ex link to ./data5/e
a ./data5/expand 55 blocks
a ./data5/expr 82 blocks
a ./data6/factor 28 blocks
a ./data6/false 18 blocks
a ./data6/fastmail 602 blocks
a ./data6/fc 1 blocks
a ./data6/fdetach 27 blocks
a ./data6/fdp 5259 blocks
a ./data6/fg 1 blocks
a ./data6/fgrep 101 blocks
a ./data6/file 188 blocks
a ./data6/find 313 blocks
a ./data6/findmsg 90 blocks
a ./data6/findstr 51 blocks
a ./data6/finger 173 blocks
a ./data6/fixman 4 blocks
a ./data6/fmt 58 blocks
a ./data6/fold 89 blocks
a ./data6/forder 28 blocks
a ./data6/from 28 blocks
a ./data6/ftio 327 blocks
a ./data6/ftp 732 blocks
a ./data6/ftpcount 84 blocks
a ./data6/ftprestart 95 blocks
a ./data6/ftpshut 111 blocks
a ./data6/ftpwho 84 blocks
a ./data7/gencat 72 blocks
a ./data7/genxlt 57 blocks
a ./data7/get 337 blocks
a ./data7/getaccess 38 blocks
a ./data7/getacl 45 blocks
a ./data7/getcellname 104 blocks
a ./data7/getconf 211 blocks
a ./data7/getip 104 blocks
a ./data7/getmemwindow 1 blocks
a ./data7/getopt 28 blocks
a ./data7/getopts 1 blocks
a ./data7/getprivgrp 28 blocks
a ./data7/gprof 307 blocks
a ./data7/grep 101 blocks
a ./data7/grget 37 blocks
a ./data7/groups 46 blocks
a ./data8/hash 1 blocks
a ./data8/head 37 blocks
a ./data8/help 40 blocks
a ./data8/host 7588 blocks
a ./data8/hostname 19 blocks
a ./data8/hosts_to_named 135 blocks
a ./data8/hp 45 blocks
a ./data8/hp-pa 18 blocks
a ./data8/hp9000s200 link to ./data8/hp-pa
a ./data8/hp9000s300 link to ./data8/hp-pa
a ./data8/hp9000s400 link to ./data8/hp-pa
a ./data8/hp9000s500 link to ./data8/hp-pa
a ./data8/hp9000s700 972 blocks
a ./data8/hp9000s700_8MB link to ./data8/hp-pa
a ./data8/hp9000s800 link to ./data8/hp-pa
a ./data8/hyphen 27 blocks

Unmount the logical volumes

1. Unmount the logical volumes

# cd /
# for lv in 1 2 3 4 5 6 7 8
do
umount /tifa_vgdata/data$lv
done

2. Check that none volume group /dev/vgdata logical volumes are in use by the HPVM host.

# bdf
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3    1048576  225304  816928   22% /
/dev/vg00/lvol1    1835008  172848 1649272    9% /stand
/dev/vg00/lvol8    6127616  963512 5128128   16% /var
/dev/vg00/ignite   12574720 6396701 5791960   52% /var/opt/ignite
/dev/vg00/lvol7    5021696 2894296 2110856   58% /usr
/dev/vg00/lvol4     524288   20808  499552    4% /tmp
/dev/vg00/lvol6    7389184 4799856 2569112   65% /opt
/dev/vg00/lvol5     106496    5432  100280    5% /home
DevFS                    3       3       0  100% /dev/deviceFileSystem

Disable volume group

# vgchange -a n /dev/vgdata
Volume group "vgdata" has been successfully changed.

Reference

Authors

This page was last modified on 28 July 2010, at 03:35. This page has been accessed 2,371 times.