The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to append spaces(say 10 spaces) at the end of each line based on the length of th prathima UNIX for Dummies Questions & Answers 2 04-29-2008 02:43 PM
Combine file sabercats Shell Programming and Scripting 3 03-02-2006 02:14 PM
Combine two lines superprg UNIX for Dummies Questions & Answers 10 02-01-2006 05:47 AM
Combine 2 files Nekki UNIX for Dummies Questions & Answers 2 11-30-2005 11:46 PM
Strip leading and trailing spaces only in a shell variable with embedded spaces jerardfjay Shell Programming and Scripting 6 03-07-2005 11:24 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-19-2006
Registered User
 

Join Date: Jul 2006
Posts: 16
combine two vg spaces

Hello,
I'm a newbie on this AIX/Unix.
I'm trying to combine the space of /testing1/ to /testing2/, so that /testing2/ may have more space.
How do I accomplish this?
I guess I have to unmount /testing1/ from /apple26lv first...
but after that I'm not sure how this can be accomplished?

/dev/apple26lv 2097152 /testing1/
/dev/apple27lv 52428804 /testing2/

Any advise are helpful.

Thank you
Reply With Quote
Forum Sponsor
  #2  
Old 07-19-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
Moved the thread to the AIX forum so that it will be more visible to any AIX guys using the site.
Reply With Quote
  #3  
Old 07-20-2006
Registered User
 

Join Date: Jul 2006
Posts: 4
In your post you mentioned that you were trying to combine spaces so I'm assuming that /testing1 and /testing2 are on different volume groups.

umount /testing1

varyoffvg </testing1 volume group>

exportvg </testing1 volume group>

extendvg </testing2 volume group> <hdisk(s) from /testing1 volume group>

chfs -a size='+<size of space in 512bytes>' /testing2

If you error out because your LV in /testing2 is MAX'ed out increase the MAX lv size by dividing the space from your /testing1 by the 'PP' size and increase by that amount.
Reply With Quote
  #4  
Old 07-24-2006
Registered User
 

Join Date: Jun 2006
Posts: 11
Quote:
Originally Posted by cokvance
In your post you mentioned that you were trying to combine spaces so I'm assuming that /testing1 and /testing2 are on different volume groups.

umount /testing1

varyoffvg </testing1 volume group>

exportvg </testing1 volume group>

extendvg </testing2 volume group> <hdisk(s) from /testing1 volume group>

chfs -a size='+<size of space in 512bytes>' /testing2

If you error out because your LV in /testing2 is MAX'ed out increase the MAX lv size by dividing the space from your /testing1 by the 'PP' size and increase by that amount.
That doesn't combine them, that deletes /testing1 completely and just extends the size of /testing2! Thats not what he's asking for and it results in complete data loss!

__________________________
pSeries Tech Talk
Where pSeries Professionals gather
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0