'Separate for backup.'

def separate(self, mvname, rvname, flag):

    if (flag == 'backup'):
        cmd = ('iSMrc_separate    -mv    %(mv)s    -mvflg    ld    -rv    %(rv)s    -rvflg    ld    -rvacc    ro    -rvuse    complete    -nowait' % {'mv': mvname, 'rv': rvname})
        self._execute(cmd)
    elif ((flag == 'restore') or (flag == 'clone')):
        cmd = ('iSMrc_separate    -mv    %(mv)s    -mvflg    ld    -rv    %(rv)s    -rvflg    ld    -rvacc    rw    -rvuse    immediate    -nowait' % {'mv': mvname, 'rv': rvname})
        self._execute(cmd)
    elif ((flag == 'esv_restore') or (flag == 'migrate')):
        cmd = ('iSMrc_separate    -mv    %(mv)s    -mvflg    ld    -rv    %(rv)s    -rvflg    ld    -rvacc    rw    -rvuse    complete    -nowait' % {'mv': mvname, 'rv': rvname})
        self._execute(cmd)
    else:
        LOG.debug('separate    flag    ERROR.    flag    =    %s', flag)
    LOG.debug('Separate    command    completed.    MV    =    %(mv)s    RV    =    %(rv)s.', {'mv': mvname, 'rv': rvname})
