0% found this document useful (0 votes)
94 views3 pages

Break The Mirror

This document outlines the steps to remove a mirror device from a Veritas Volume Manager configuration and convert the system disk configuration to a non-VxVM configuration using the mirror device as the new system disk. The key steps are: 1) Record which slices are used for VxVM public and private regions on the mirror disk; 2) Remove the mirror plexes from volumes; 3) Remove the mirror disk from the disk group; 4) Check and update filesystem configuration on the mirror disk; 5) Update system configuration files to reference the mirror disk instead of the original system disk.

Uploaded by

Gyan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views3 pages

Break The Mirror

This document outlines the steps to remove a mirror device from a Veritas Volume Manager configuration and convert the system disk configuration to a non-VxVM configuration using the mirror device as the new system disk. The key steps are: 1) Record which slices are used for VxVM public and private regions on the mirror disk; 2) Remove the mirror plexes from volumes; 3) Remove the mirror disk from the disk group; 4) Check and update filesystem configuration on the mirror disk; 5) Update system configuration files to reference the mirror disk instead of the original system disk.

Uploaded by

Gyan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

The following sequence of steps assumes that the system starts as a standard encapsulated

boot disk and associated mirror device.


# vxprint -ht
Disk group: rootdg
DG NAME
DM NAME
RV NAME
RL NAME
REM_RLNK
V NAME
PREFPLEX UTYPE
PL NAME
NCOL/WID MODE
SD NAME
MODE
SV NAME
MODE
DC NAME
SP NAME

NCONFIG
DEVICE
RLINK_CNT
RVG

NLOG
TYPE
KSTATE
KSTATE

MINORS
PRIVLEN
STATE
STATE

GROUP-ID
PUBLEN
STATE
PRIMARY DATAVOLS
REM_HOST REM_DG

RVG

KSTATE

STATE

LENGTH

READPOL

VOLUME

KSTATE

STATE

LENGTH

LAYOUT

PLEX

DISK

DISKOFFS LENGTH

[COL/]OFF DEVICE

PLEX

VOLNAME

NVOLLAYR LENGTH

[COL/]OFF AM/NM

PARENTVOL
SNAPVOL

LOGVOL
DCO

dg rootdg

default

default

1035385242.1025.pegasus

dm rootdisk
dm rootmirror

c0t0d0s2
c0t1d0s2

sliced
sliced

3359
3359

17693759 17690400 -

sd rootdiskPriv ENA

rootdisk 13423200 3359

v rootvol
root
pl rootvol-01
rootvol
RW
sd rootdisk-B0 rootvol-01
ENA
sd rootdisk-02 rootvol-01
ENA
pl rootvol-02
rootvol
RW
sd rootmirror-01 rootvol-02
ENA

ENABLED

ACTIVE

13423200 ROUND

ENABLED

ACTIVE

13423200 CONCAT

c0t0d0

c0t0d0

rootdisk 0

13423199 1

c0t0d0

ENABLED

13423200 CONCAT

rootmirror 0

13423200 0

c0t1d0

v swapvol
swap
pl swapvol-01
swapvol
RW
sd rootdisk-01 swapvol-01
ENA
pl swapvol-02
swapvol
RW
sd rootmirror-02 swapvol-02
ENA

ENABLED

ACTIVE

2096640

ROUND

ENABLED

ACTIVE

2096640

CONCAT

rootdisk 13426559 2096640

c0t0d0

ENABLED

CONCAT

rootmirror 13423200 2096640 0

c0t1d0

v var
fsgen

ENABLED

rootdisk 13423199 1

PRIVATE

SRL

ACTIVE

ACTIVE

ACTIVE

2096640

2100000

ROUND

pl var-01
var
RW
sd rootdisk-04 var-01
ENA
pl var-02
var
RW
sd rootmirror-03 var-02
ENA

ENABLED

ACTIVE

CONCAT

rootdisk 15523199 2100000

c0t0d0

ENABLED

CONCAT

ACTIVE

2100000

2100000

rootmirror 15519840 2100000 0

c0t1d0

1. Record which slices of rootmirror are allocated for the Veritas public and private
regions (3 and 4 in our case):
2.
3.
4.
5.

# vxdisk list rootmirror | egrep "private|public"


flags:
online ready private autoconfig autoimport imported
public:
slice=3 offset=1 len=17690400
private:
slice=4 offset=1 len=3359

6. Disassociate and then remove all of the operating system plexes on the mirror
device "rootmirror":
# vxplex -g rootdg dis rootvol-02 swapvol-02 var-02
# vxedit -g rootdg -r rm rootvol-02 swapvol-02 var-02

7. Remove the rootmirror disk from rootdg


# vxdg -g rootdg rmdisk rootmirror

8. Run a filesystem check on each of the ufs filesystem slices on c0t1d0 (formerly
identified as "rootmirror"):
# fsck -F ufs -y /dev/rdsk/c0t1d0s0
# fsck -F ufs -y /dev/rdsk/c0t1d0s4

9. Update the /etc/system and /etc/vfstab files on c0t1d0 so that there are no
references to volume manager devices:
10. # mount /dev/dsk/c0t1d0s0 /mnt
11. # cp /mnt/etc/system /mnt/etc/system.orig
12. # vi /mnt/etc/system

Change the lines:


rootdev:/pseudo/vxio@0:0
set vxio:vol_rootdev_is_volume=1

to:
* rootdev:/pseudo/vxio@0:0
* set vxio:vol_rootdev_is_volume=1

13. Restore the pre-VxVM version of the vfstab file. Note that the vxinstall process
makes a backup copy of the original vfstab file named vfstab.prevm. We'll make
use of that backup now:
14. # cp /mnt/etc/vfstab /mnt/etc/vfstab.vm

15.
16. # cp /mnt/etc/vfstab.prevm /mnt/etc/vfstab

Edit the /mnt/etc/vfstab file so that it references c0t1 instead of c0t0:


# cat /mnt/etc/vfstab
#device
device
mount
mount
mount
#to mount
to fsck
point
boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr
yes
fd
/proc
/dev/dsk/c0t1d0s1
/dev/dsk/c0t1d0s0
/dev/rdsk/c0t1d0s0
logging
/dev/dsk/c0t1d0s6
/dev/rdsk/c0t1d0s6
logging
swap
-

FS

fsck

type

pass

ufs

at

/dev/fd fd

no

/proc

proc

no

swap

no

ufs

no

/var

ufs

no

/tmp

tmpfs

yes

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy