Queries Regarding MigratePV


 
Thread Tools Search this Thread
Operating Systems AIX Queries Regarding MigratePV
# 1  
Old 01-12-2014
Queries Regarding MigratePV

We have 3PVs, now we want to migrate it to new 2PVs.

OLD PVS

hdisk1 ---- /u01
hdisk2 ------ /u01
hdisk 3 ----- /u02, /u01

new PVs

hdisk4 ---- Free
hdisk5 ---- Free

I check man, it doesn't say anything about offline/online thing, do i need downtime to migrate pv ? also, what i saw i can migrate single lv as well from one pv to another, will it use the free PPs or can overwrite old data.

Edit:
Quote:
it doesn't say anything about offline/online thing, do i need downtime to migrate pv
Ok Found Answer, No Downtime required. Now only one question left.

Can I use Following command, when hdisk5 already containing some data?
Code:
migratepv –l lvu01 hdisk3 hdisk5


Last edited by Fracker; 01-12-2014 at 07:23 AM..
# 2  
Old 01-13-2014
As you figured out there is NO downtime required.

To answer your second questions, yes you can use the command, but make sure that data of lv lvu01 is not exceeding the free total size of hdisk5, if it is exceeding then add hdisk4 to the command (after hdisk5).

Hope this helps.
This User Gave Thanks to ibmtech For This Post:
# 3  
Old 01-14-2014
I think it will be easier not to use migratepv. I suggest the following procedure.
  • Add the disk(s) to the VG.
  • Now create LV-copies for the LVs/FSes in question, where the copy resides on the new disk(s). This is easily done using "chlv".
  • Issue a "syncvg", wait until it has finished.
  • Remove the copies of the LVs residing on the disks you want to free. This is also one "chlv"

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 4  
Old 01-17-2014
Thanks guys, let's hope things goes fine today.
# 5  
Old 01-17-2014
I forgot to say: if you want to migrate all LVs you can simplify things further by using "mirrorvg" instead of mirroring the single LVs.

I hope this helps.

bakunin
# 6  
Old 01-17-2014
There is no need to mirror, sync unmirror. Simply:-
Code:
extendvg vgname hdisk4 hdisk5
migratepv hdisk1 hdisk4 hdisk5
migratepv hdisk2 hdisk4 hdisk5
migratepv hdisk3 hdisk4 hdisk5
reducevg vgname hdisk1 hdisk2 hdisk3


The migratepv command will take a while to run in each case, but the OS will permit RW access all the time to the LVs as they move.

I hope that this helps,

Robin
Liverpool/Blackburn
UK
This User Gave Thanks to rbatte1 For This Post:
# 7  
Old 01-17-2014
Quote:
Originally Posted by rbatte1
There is no need to mirror, sync unmirror.
It is true, you can do it this way and it surely will work. Still, if you use "migratepv" PPs are moved serially - one after the other. Using "mirrorvg" works in parallel (and possibly background, see the "-S" option) which can speed things up, especially when SAN disks are involved.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

RDNS Queries

Hey everyone, I have a question, I've been playing around with tcpdump, and noticed my machine making numerous rdns look ups. They are displayed like: 10.80.80.141.51234 > 10.80.80.1.domain: 9950+ PTR? 223.114.55.65.in-addr.arpa. (44) My question is, if dns works based on numerical... (0 Replies)
Discussion started by: Lost in Cyberia
0 Replies

2. Debian

GRUB Queries ?!

Hello, I am posting the following questions here because I need them answered by people who have actually done a lot of work in GRUB. DO NOT GIVE ME GUESS ANSWERS PLEASE. Feel free to redirect me if this is not the right place to ask these questions. Can I download GRUB separately from... (6 Replies)
Discussion started by: sreyan32
6 Replies

3. Programming

Combine 3 queries

can these 3 be combined into 1 query? createtablea1as selecta.tps_Res_nb, b.tkt_prod_cd, b.tkt_prod_typ_nm, b.prod_intrnl_ds, b.tkt_prod_typ_nm AS TKT_ENTL_NM, casewhen b.tkt_prod_nm isnotnullthen b.tkt_prod_nm when b.tkt_prod_nm isnulland b.prod_intrnl_ds isnotnullthen... (1 Reply)
Discussion started by: dwr80
1 Replies

4. AIX

vio server's rootvg disk migratepv

Hi I need to do the migratepv for the rootvg disks of the vio servers ? The current rootvg disks are on DMX3 storage and the new disks will be given from VMAX. Our setup is dual vio servers with multipathing to the vio clients. What is the command to do the migratepv for the vio rootvg disks... (5 Replies)
Discussion started by: newtoaixos
5 Replies

5. AIX

migratepv problem

HI all, I have changed chldev command for just one hitachi lun and I moved data from EMC to hitachi extendvg VolumeGroupName hdisk_new migratepv hdisk_bad hdisk_new reducevg -d VolumeGroupName hdisk_EMC that vg has only one EMC_lun now i have more than one lun in one vg. i want to do... (1 Reply)
Discussion started by: nibiru78
1 Replies

6. Homework & Coursework Questions

Queries

Any help on like where to get started on this? I'm just confused. 1. The problem statement, all variables and given/known data: Enter text here.Queries to satisfy these two report requests (use your CCI database): Retrieve all rows of active inventory where current on hands is less than... (0 Replies)
Discussion started by: lakers34kb
0 Replies

7. Shell Programming and Scripting

my queries

hi guys Well, i need to have a report generation script or any script which will show me all the content/information of a file when i run that script. Please help me on this isssue at the earliest.As i am little bit aware of scripting.Thanks in advance! regards ash (4 Replies)
Discussion started by: whizkidash
4 Replies

8. AIX

migratepv

Hello Admins, When using migratepv is it necessary to use the bosboot command? coz i did made i migratepv under the rootvg which is /home fs to the other disk...? is there are any problem when we rebooted our system? Regards, Winky (3 Replies)
Discussion started by: winky
3 Replies

9. UNIX for Advanced & Expert Users

Two small queries

Query 1 : How to check if a directory already exists? If doesn't exist then create a new one. Query 2 : I want to put following text using a single echo statement into a log file and also want to retain the formatting of the text. How it can be... (3 Replies)
Discussion started by: skyineyes
3 Replies

10. UNIX for Advanced & Expert Users

Some queries...

Guys need some advice on how to check some of the questions below? i'm running on an open VMS platform... which i am an idiot to... appreciate if anyone can give some hints or source on how to check on.. a script that is running on cron job... but doesn't run as the login user name.. 1. why... (6 Replies)
Discussion started by: 12yearold
6 Replies
Login or Register to Ask a Question