Less known Solaris Features: Remote Mirror with AVS - Part 6: Deactivating a replication

In the last parts of this tutorial i´ve explained to you, how you set up a replication relation. But it´s important to know how you deactivate and delete the replication as well.

Deleting the replication configuration

It´s quite easy to delete the replication.
At first we look up the existing replication configuration.

[root@gandalf:~]$ sndradm -P<br />
/dev/rdsk/c1d1s1        <-      theoden:/dev/rdsk/c1d1s1<br />
autosync: off, max q writes: 4096, max q fbas: 16384, async threads: 2, mode: sync, state: logging

Okay, we can use the local or remote volume as a name to choose the configuration to be deleted:

[root@gandalf:~]$ sndradm -d theoden:/dev/rdsk/c1d1s1<br />
Disable Remote Mirror? (Y/N) [N]: y

Now we can lookup the configuration again.

[root@gandalf:~]$ sndradm -P

As you see, the configuration is gone. But you have to do the same on the other host. So login as root to the other host:

[root@theoden:~]$ sndradm -P
/dev/rdsk/c1d1s1 -> gandalf:/dev/rdsk/c1d1s1
autosync: off, max q writes: 4096, max q fbas: 16384, async threads: 2, mode: sync, state: logging
[root@theoden:~]$ sndradm -d gandalf:/dev/rdsk/c1d1s1
Disable Remote Mirror? (Y/N) [N]: y
[root@theoden:~]$ sndradm -P
[root@theoden:~]$ </blockquote>