Discussion:
[Veritas-vx] How to force Veritas to mirror to the same disk
g***@orangemail.nl
2004-05-05 11:33:26 UTC
Permalink
Dear coleagues,

I have several 2 way stripped volumes which I vould like to convert without
downtime to concat volumes, all on the same disk, disk00.

I do not want to use relayout because of some problems experienced in the
past, I would rather like to use:



Vxassist mirror volname0 layout=concat disk00

Vxassist mirror volname1 layout=concat disk00

Vxassist mirror volname2 layout=concat disk00

Then

Vxplex -o rm dis plex01_of_volname0

Vxplex -o rm dis plex01_of_volname1

Etc.

The problem is that disk00 is already part of the stripped volumes and
attempting the mirror operation gives the following error:



$ vxassist -b mirror picsvol layout=concat disk00

vxvm:vxassist: ERROR: Cannot allocate space to mirror 41943040 block volume



It is of course plenty of space there (and contiguous), the only reason I
think it fails is because for good reason, the sistem refuses to allow me to
build a mirrored volume with both plexes depending on disk00



$ vxdg free

GROUP DISK DEVICE TAG OFFSET LENGTH
FLAGS

rootdg disk00 c2t107d66s2 c2t107d66 374192640 81008640 n



How can I force this operation to happen ? Will the -f flag work in this
case ?





$ vxprint -Aht picsvol

Disk group: rootdg



V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX
UTYPE

PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID
MODE

SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE
MODE

SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM
MODE

DC NAME PARENTVOL LOGVOL

SP NAME SNAPVOL DCO



v picsvol - ENABLED ACTIVE 41943040 SELECT picsvol-01
fsgen

pl picsvol-01 picsvol ENABLED ACTIVE 41955712 STRIPE 2/128
RW

sd disk00-14 picsvol-01 disk00 340623360 20977920 0/0 c2t107d66
ENA

sd disk01-14 picsvol-01 disk01 334275840 5247360 1/0 c2t107d67
ENA

sd disk02-14 picsvol-01 disk02 334275840 5247360 1/5247360 c2t107d68
ENA

sd disk03-14 picsvol-01 disk03 334275840 5247360 1/10494720 c2t107d69
ENA

sd disk04-14 picsvol-01 disk04 334275840 5230080 1/15742080 c2t107d70
ENA



(As you can see the volume right now is a mess, with even numbered stripes
from one disk and odd numered stripes from 4 different disks.





===========================================================
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is alleen
bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt,
wordt u verzocht de inhoud niet te gebruiken en de afzender direct te
informeren door het bericht te retourneren. Hoewel Orange maatregelen heeft
genomen om virussen in deze email of attachments te voorkomen, dient u ook
zelf na te gaan of virussen aanwezig zijn aangezien Orange niet
aansprakelijk is voor computervirussen die veroorzaakt zijn door deze
email..

The information contained in this message may be confidential and is
intended to be only for the addressee. Should you receive this message
unintentionally, please do not use the contents herein and notify the sender
immediately by return e-mail. Although Orange has taken steps to ensure that
this email and attachments are free from any virus, you do need to verify
the possibility of their existence as Orange can take no responsibility for
any computer virus which might be transferred by way of this email.
===========================================================
robertinoau
2004-05-06 04:47:52 UTC
Permalink
Thre is always more than one way to skin a cat :-)

The short is answer is no we can't force VM using
vxassist.

The way I see it we have 2 options.

First option is to create a a concat volume called
picsvol1 with disk00. Creat a file system on it,
mount it and copy the data frmo picsvol to picsvol1.
After you have confirmed data is intact, you run
remove picsvol and then run vxedit and rename picsvol1
to picsvol.

Second option is to manually create a suddisk and plex
and then attack it to the volume. Ugly but it will
work.

Personall I think option 1 is make easier.....


--- ***@orangemail.nl wrote: > Dear
coleagues,
Post by g***@orangemail.nl
I have several 2 way stripped volumes which I vould
like to convert without
downtime to concat volumes, all on the same disk,
disk00.
I do not want to use relayout because of some
problems experienced in the
Vxassist mirror volname0 layout=concat disk00
Vxassist mirror volname1 layout=concat disk00
Vxassist mirror volname2 layout=concat disk00
Then
Vxplex -o rm dis plex01_of_volname0
Vxplex -o rm dis plex01_of_volname1
Etc.
The problem is that disk00 is already part of the
stripped volumes and
attempting the mirror operation gives the following
$ vxassist -b mirror picsvol layout=concat disk00
vxvm:vxassist: ERROR: Cannot allocate space to
mirror 41943040 block volume
It is of course plenty of space there (and
contiguous), the only reason I
think it fails is because for good reason, the
sistem refuses to allow me to
build a mirrored volume with both plexes depending
on disk00
$ vxdg free
GROUP DISK DEVICE TAG
OFFSET LENGTH
FLAGS
rootdg disk00 c2t107d66s2 c2t107d66
374192640 81008640 n
How can I force this operation to happen ? Will the
-f flag work in this
case ?
$ vxprint -Aht picsvol
Disk group: rootdg
V NAME RVG KSTATE STATE
LENGTH READPOL PREFPLEX
UTYPE
PL NAME VOLUME KSTATE STATE
LENGTH LAYOUT NCOL/WID
MODE
SD NAME PLEX DISK DISKOFFS
LENGTH [COL/]OFF DEVICE
MODE
SV NAME PLEX VOLNAME NVOLLAYR
LENGTH [COL/]OFF AM/NM
MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
v picsvol - ENABLED ACTIVE
41943040 SELECT picsvol-01
fsgen
pl picsvol-01 picsvol ENABLED ACTIVE
41955712 STRIPE 2/128
RW
sd disk00-14 picsvol-01 disk00 340623360
20977920 0/0 c2t107d66
ENA
sd disk01-14 picsvol-01 disk01 334275840
5247360 1/0 c2t107d67
ENA
sd disk02-14 picsvol-01 disk02 334275840
5247360 1/5247360 c2t107d68
ENA
sd disk03-14 picsvol-01 disk03 334275840
5247360 1/10494720 c2t107d69
ENA
sd disk04-14 picsvol-01 disk04 334275840
5230080 1/15742080 c2t107d70
ENA
(As you can see the volume right now is a mess, with
even numbered stripes
from one disk and odd numered stripes from 4
different disks.
===========================================================
Post by g***@orangemail.nl
De informatie opgenomen in dit bericht kan
vertrouwelijk zijn en is alleen
bestemd voor de geadresseerde. Indien u dit bericht
onterecht ontvangt,
wordt u verzocht de inhoud niet te gebruiken en de
afzender direct te
informeren door het bericht te retourneren. Hoewel
Orange maatregelen heeft
genomen om virussen in deze email of attachments te
voorkomen, dient u ook
zelf na te gaan of virussen aanwezig zijn aangezien
Orange niet
aansprakelijk is voor computervirussen die
veroorzaakt zijn door deze
email..
The information contained in this message may be
confidential and is
intended to be only for the addressee. Should you
receive this message
unintentionally, please do not use the contents
herein and notify the sender
immediately by return e-mail. Although Orange has
taken steps to ensure that
this email and attachments are free from any virus,
you do need to verify
the possibility of their existence as Orange can
take no responsibility for
any computer virus which might be transferred by way
of this email.
===========================================================
Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

Loading...