Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple question

Status
Not open for further replies.

monman

Technical User
Aug 2, 2001
40
CA
I want to blow-away a vg an then add them to rootvg.
Would this disrupt users in any way ?
 
Do you have file systems in the VG?
Do the users use the file systems?

If no then you can safely remove the VG without affecting the users.

If yes you will need to backup the filesystem, umount them, delete the VG, add the volumes to the rootvg, recreate the file systems and restore the data.

If you can give us more info we can be of greater help. Send us the output of lsvg, lsvg -p VGNAME,lsvg -L and any other info you think may be useful

Mike
--
| Mike Nixon
| Unix Admin
| ----------------------------
 
I am not entirely sure of what you want to do, but I am guessing you have a rootvg (have to) and say a datavg; and on datavg you have say logical volumes lvx1 lvx2 lvx3 lvx4 and you want to move the logical volumes from datavg to rootvg.

Migratepv will not work across volume groups, but you could use cplv (copy logical volumes) to move the lv's to rootvg.

I wonder why you would want to move them to rootvg, when it would be better for management of data and recovery if the lv's were kept on a separate vg.

Anyway, below are the steps I use to copy logical volumes:

umount [filesystem]

cplv –v VG(destination) –y [newLV] [sourceLV]

chfs –a dev=/dev/[newLV] –a log=/dev/[logdev] /[filesystem]

fsck –p /dev/[newLV]

mount [filesystem]

rmlv [oldLV]
 
You should not do this, but I have instructions on a completely unsupported way to merge volume groups without doing a backup/restore. It is bad. Unsupported. It does work, though. If you are moving into rootvg, I don't know that this will work 100%. Let me know. I assume no responsibility for system corruption so only ask for it if you are working with non-rootvg data. IBM Certified -- AIX 4.3 Administration
IBM Certified -- AIX 4.3 Support
IBM Certifiable!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top