Re: Moving partitions from one disk to another
- From: "Taylor, David" <DTaylor@xxxxxxxx>
- Date: Wed, 28 Nov 2007 16:36:03 -0600
Robert,
Your migratepv syntax is correct:
migratepv -l lv20 hdisk3 hdisk2
If the system is normally very busy and performance is critical, it'd
probably be best to run the command off-hours.
In regards to the mirroring situation that got you into this position
:-) - take a look at the mirrorvg command.
HTH
Good luck!
/dt
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of
Robert Miller
Sent: Wednesday, November 28, 2007 4:09 PM
To: aix-l@xxxxxxxxxxxxx
Subject: Moving partitions from one disk to another
Folks,
We have an "admin" here that decided to try to create a mirrored copy of
an LV from directions I had sent out earlier using mklvcopy.
Unfortunately, they flubbed the command, and apparently then extended
the LV onto the other hdisk.
So, we have lv20 sitting on hdisk2 and hdisk3, and I'd like to move the
partitions sitting on hdisk3 to hdisk2 so I can properly mirror it. I'm
hoping this doesn't mean removing the filesystem and recreating it, but
I have a suspicion it does...
rmiller$ lslv -m lv20
lv20:/myfilesys
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0031 hdisk2
...etc etc etc... more hdisk2 entries...
0050 0080 hdisk2
0051 0196 hdisk3
0052 0197 hdisk3
0053 0198 hdisk3
0054 0199 hdisk3
root# lsvg -l myvg
myvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT
POINT
loglv01 jfslog 1 2 2 open/syncd N/A
lv20 jfs 54 54 2 open/syncd /myfilesys
I'm looking at migratepv -l, but I've never used it before, and it's a
reasonably important system (and of course the most important filesystem
on that box...), so I'm a bit leery of trying something I've never used
without some experienced voices telling me it'll work.
I'm thinking something along the lines of:
migratepv -l lv20 hdisk3 hdisk2
My guess is that'll move only the PPs sitting on hdisk3 onto hdisk2
where they belong, and then I'll be able to do the mklvcopy properly...
does that sound right?
(I'm using the superstrict flag for mklvcopy so I can yank a disk and
not have anything Bad happen)
Thanks!
--rm
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.clearswift.com
**********************************************************************
- Follow-Ups:
- Re: Moving partitions from one disk to another
- From: Robert Miller
- Re: Moving partitions from one disk to another
- Prev by Date: Re: Moving partitions from one disk to another
- Next by Date: Re: Moving partitions from one disk to another
- Previous by thread: Re: Moving partitions from one disk to another
- Next by thread: Re: Moving partitions from one disk to another
- Index(es):