Although the primary purpose of disk mirroring is to expedite recovery, it can also be used to move a Sybase device.
The commands in this example move devices from disk1 and disk2 to disk3 and disk4:
1> disk mirror name = "disk1", 2> mirror = "/usr/u/sybase/disk3" 3> go
1> disk mirror name = "disk2", 2> mirror = "/usr/u/sybase/disk4" 3> go
1> disk unmirror name = "disk1", 2> side = primary, mode = remove 3> go
1> disk unmirror name = "disk2", 2> side = primary, mode = remove 3> go
To move a database to new devices using this procedure, move all the devices on which the database resides.
WARNING! This procedure will partially or fully move any other databases that reside on the target devices.
For more information on disk mirroring, refer to “Mirroring Database Devices” in the System Administration Guide.