AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
Expand all | Collapse all

Excluding directories from NIM savevg

  • 1.  Excluding directories from NIM savevg

    Posted Fri May 31, 2013 05:44 AM

    Originally posted by: paul.barnes@st-clements.co.uk


    I'm using a NIM master running AIX 7.1 TL1  to create a mksysb and a savevg of a NIM client running AIX 6.1 TL6. The mksysb runs through all fine but I get a problem with some ongoing log files on the savevg and want to exclude the log files directory.

    I've been attempting to use the command 'nim -o define -t exclude_files -a server=<nim_client> -a location=<logfiles_directory> <nim_client>'

    However this returns the error:

       0042-001 m_mkres: processing error encountered on "<nim_client>":
       0042-151 c_stat: the file "<logfiles_directory>" has a file type of 040000.
            This conflicts with the expected type of 0100000.

    This seems to be because I've specified a directory and not a single file for the exclude.

    So, is it possible to exclude directories for the backup and if so how do I associate them with the savevg. Essentially I'm attempting to recreate the command 'savevg -e' and the '/etc/exclude.vgname' on a NIM backup.

    Paul


    #AIX-Forum


  • 2.  Re: Excluding directories from NIM savevg

    Posted Tue June 11, 2013 06:48 AM

    Originally posted by: paul.barnes@st-clements.co.uk


    Create the exclude_files resource
    =================================
    nim -o define -t exclude_files -aserver=<nim_client> -alocation=<full_path_and_exclude_list_filename> exclude_list

    Note: You cannot use the path /etc/exclude.vgname

    Call the exclude_files resource when performing the backup
    ===========================================================
    time nim -o define -t savevg -aserver=master -alocation=<savevg_resource_name>  -asource=<nim_client> -amk_image=yes -asavevg_flags=Xi -avolume_group=<vgname> -aexclude_files=exclude_list

    Note: No need to allocate the resource, it will allocate when called


    #AIX-Forum