Breaking mirrors on an existing mksysb

To restore a mksysb without mirroring. the following procedure can be used

NOTE: Access to another AIX system and an AIX formatted diskette is required to perform this procedure.

 All references to the tape device in the next section are as rmt0.


  • On another AIX system, place the mksysb tape in the tape drive. Change the block size of the tape drive to 512 by running:

  •            chdev -l  rmt0 -a block_size=512
     
    

  • Create a temporary directory in /tmp called newdata.
  •  

  •            mkdir /tmp/newdata 
    

  • Change to the /tmp/newdata directory. Enter:
  •  

  •            cd  /tmp/newdata 
     



  • Make sure that the tape is rewound. Enter:

  •            tctl -f /dev/rmt0 rewind 
     

  • Restore the image.data file from the second image of the mksysb tape. Enter:

  •            restore -s2 -xqvf  /dev/rmt0.1  ./image.data 
     

  • Edit the /tmp/newdata/image.data file and make changes to each of the lv_data stanzas as indicated in the examples that follow. The lines that need changes are marked by --> and are boldfaced. In Example 4, the changes are made to those lines.
  •   To view and edit the file, enter:
               vi  image.data 
    Example 1 
    
                       lv_data: 
                               VOLUME_GROUP= rootvg 
                               LV_SOURCE_DISK_LIST=  hdisk0 
                               LV_IDENTIFIER= 00000001113f3c62.5 
                               LOGICAL_VOLUME= hd4 
                               VG_STAT= active/complete 
                               TYPE= jfs 
                               MAX_LPS= 512 
                       -->     COPIES = 2   
                               LPs = 120   
                               STALE_PPs= 0 
                               INTER_POLICY= minimum 
                               INTRA_POLICY= center 
                               MOUNT_POINT= / 
                               MIRROR_WRITE_CONSISTENCY= on 
                               LV_SEPARATE_PV= yes 
                               PERMISSION= read/write 
                               LV_STATE= opened/syncd 
                               WRITE_VERIFY= off 
                               PP_SIZE= 4 
                               SCHED_POLICY= parallel 
                       -->     PP = 240   
                               BB_POLICY= relocatable 
                               RELOCATABLE= yes 
                               UPPER_BOUND= 32 
                               LABEL= / 
                               MAPFILE= 
                               LV_MIN_LPS= 68 
    
    Example 2
                       lv_data: 
                               VOLUME_GROUP= rootvg 
                               LV_SOURCE_DISK_LIST=  hdisk0 
                               LV_IDENTIFIER= 00000001113f3c62.5 
                               LOGICAL_VOLUME= hd4 
                               VG_STAT= active/complete 
                               TYPE= jfs 
                               MAX_LPS= 512 
                       -->     COPIES = 1   
                               LPs = 120   
                               STALE_PPs= 0 
                               INTER_POLICY= minimum 
                               INTRA_POLICY= center 
                               MOUNT_POINT= / 
                               MIRROR_WRITE_CONSISTENCY= on 
                               LV_SEPARATE_PV= yes 
                               PERMISSION= read/write 
                               LV_STATE= opened/syncd 
                               WRITE_VERIFY= off 
                               PP_SIZE= 4 
                               SCHED_POLICY= parallel 
                       -->     PP = 120   
                               BB_POLICY= relocatable 
                               RELOCATABLE= yes 
                               UPPER_BOUND= 32 
                               LABEL= / 
                               MAPFILE= 
                               LV_MIN_LPS= 120 
     
     In Example 2 the COPIES value has been changed to 1 and  
         the PP value is set equal to the LPs value. 
     Make these changes to each of the 
         lv_data stanzas in the image.data file. Once the changes are made, 
         save the file and exit.
    
    1. After making the changes to the image.data file, create a signature file. The signature file is required by the restore procedure.
    2.            echo data > signature 
       
    3. Format the diskette.
    4.            format /dev/rfd0 
       
    5. Back up the two files (image.data and signature) to the diskette drive.
    6.            find . -print |backup -iqvf /dev/rfd0 
       
    7. Verify that the two files were backed up and that the diskette can be read.
    8.            restore -Tqvf /dev/rfd0 
       
    9. Reboot the target system off of the mksysb tape with the diskette in the floppy drive and follow the normal mksysb restore procedures. The edited version of the image.data file will be used to recreate the logical volumes without mirroring.
     
    
    
  • Comments

    Popular posts from this blog

    Installing and configuring the storage agent (AIX)

    Move a file system to another volume group