How To Move Devices Using Disk Mirroring
How To Move Devices Using Disk Mirroring
Revision History
Introduction
This document covers steps involved in migrating data and log devices from old Storage to New
Storage. The assumption here is that the ASE 12.0 is up and running without any error.
Steps Taken to Move Data and Log Devices using disk mirroring in Sybase ASE 12.0:
2. Execute dbcc checks and update statistics in order to make sure that the ASE12 server
does not have any pre-existing corruption or issues that might result in mirroring failure.
Note: dbcc checks and update statistics for several databases can be run in parallel to
minimize elapsed time.
Note: For production, consider dump and load of large databases to another server with
ample time prior to move and performing full dbcc there.
a. dbcc checkdb
b. dbcc checlalloc
c. dbcc checkcatalog
a. master..sysdevices
b. master..sysdatabases
c. master..sysusages
d. master..syslogins
e. master..sysconfigures
f. master..syscharsets
startserver –f RUN_Server
disk mirror
name = audit01,
mirror = "/dir2/datafile2"
go
sp_helpdevice audit01
go
disk unmirror
name = audit01,
side = "primary",
mode = remove
go
sp_helpdevice audit01
go
startserver –f RUN_Serve
#!/bin/sh
#
# Adaptive Server name: JUPSYB001_PROD
# Master device path: /dev/vg80/rsybmaster
# Master Mirror device path: /dev/vg28/rsybmaster
# Error log path: /sybase12/ASE-
12_0/install/WANG05_PROD.log
# Directory for shared memory files: /sybase12
#
/sybase12/ASE-12_0/bin/dataserver \
-sWANG05_PROD \
-d/dev/vg80/rsybmaster \
-r/dev/vg28/rsybmaster \
-e/sybase12/ASE-12_0/install/ JUPSYB001_PROD.log \
-M/sybase12 \
#!/bin/sh
#
# Adaptive Server name: JUPSYB001_PROD
# Master device path: /dev/vg28/rsybmaster
# Error log path: /sybase12/ASE-
12_0/install/WANG05_PROD.log
# Directory for shared memory files: /sybase12
#
/sybase12/ASE-12_0/bin/dataserver \
-sWANG05_PROD \
-d/dev/vg28/rsybmaster \
-e/sybase12/ASE-12_0/install/ JUPSYB001_PROD.log \
-M/sybase12 \