Aix 5.3 How to Check for Mirrored Drives after Restore

Posted on 2009-04-22
Last Modified: 2013-11-17
I just restored my 'rootvg' from a mksysb backup and my other volume via the smit sb_restore command. My source and target servers for my restore are mirror images of one  and other and are used for DR purposes. Anyway my source server had both of these drives mirrored. After I restored both volumes on my target how can I tell if they are automaticlly mirroed once again? how can I check for this? ALso how would I mirror a hard drive if need be?
Question by:compdigit44
    LVL 68

    Accepted Solution

    Hi again,
    to check whether there is mirroring display the logical volumes in the VG by issuing
    lsvg -l [vgname]
    The third and fourth columns indicate logical (LP) and physical (PP) partitions. With mirroring, each logical partition is mapped to two or three physical partitions. So, if you see (per logical volume line) the same value in the third and fourth columns, there is no mirroring. Should you see twice (or even three times) the value of the third column appearing in the fourth column, there is mirroring.
    Note -  Within a VG, mirroring is done on a logical volume basis, not on a hdisk basis or VG basis. So mirrored and non-mirrored logical volumes can coexist within a volume group.
    If there is mirroring, you can have a closer look at the distribution of the mirrors by issuing
    lslv -l [lvname]
    with [lvname] being the name of the logical volume, as seen in the first column of the above lsvg -l ...
    As I said, mirroring is done in AIX on a logical volume basis. So you can't mirror a 'hard drive', as you wrote in your Q.
    smit has a facility to mirror a complete volume group (by means of a smit script).
    So if you must re-mirror a volume group,
    1) take care that the VG contains enough hdisks to provide the needed space. If necessary, issue 'extendvg [vgname] [hdiskx]', with [vgname] being the name of your VG and [hdiskx] being the name of a free, empty hdisk in your machine.
    2) issue 'smit mirrorvg' , fill in the appropriate vgname (select with <F4> if you like). In the following screen, leave 'sync mode' as is, select under 'PHYSICAL VOLUME names' all hdisks of the VG (not only the one to be mirrored upon), set number of copies to two, leave the rest as is and go!
    Good luck!
    LVL 19

    Author Comment

    after I restored my volume is mirrored setup by default since the source volume was mirrored?
    LVL 68

    Expert Comment

    Normally yes. But simply check with 'lsvg -l rootvg'. It's easy!
    LVL 19

    Author Comment

    thanks again..

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    sort command HPUX 11 42
    llcommand 6 70
    Unistall fileset on AIX 4 156
    Linux : can't create transaction lock error 1 45
    When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
    Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now