combine two vg spaces


 
Thread Tools Search this Thread
Operating Systems AIX combine two vg spaces
# 1  
Old 07-19-2006
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
# 2  
Old 07-19-2006
Moved the thread to the AIX forum so that it will be more visible to any AIX guys using the site.
# 3  
Old 07-20-2006
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.
# 4  
Old 07-24-2006
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Combine two arrays. for in for ?..

Hello all, I have 2 very long list of elements. f.e.: List 1 1 2 3 4 5 List 2 a b c How can I combine the two with other. Like this: 1 a 1 b 1 c 2 a 2 b 2 c 3 a etc. (21 Replies)
Discussion started by: mrAibo
21 Replies

2. UNIX for Beginners Questions & Answers

Can I combine below mentioned grep commands using OR (when searching strings having spaces)

Command 1: $script | grep 'Write to ECC( SSID=MARGIN)' Command 2: $script | grep 'is not greater than existing logical processing' The above commands run my script and search the mentioned strings but I do not want to run my script twice. It is increasing run time. Can someone tell me... (3 Replies)
Discussion started by: Tanu
3 Replies

3. Shell Programming and Scripting

Combine Columns

Input NJ090237_0263_GRP,NJ090237_0263_VIEW,NJ090237_0263_PSGRP,NJ090237_0263_GOLD_CSGRP,06E:0_08E:0_09E:0_11E:0,0CE5 NJ090237_0264_GRP,NJ090237_0263_VIEW,NJ090237_0264_PSGRP,NJ090237_0263_GOLD_CSGRP,06E:0_08E:0_09E:0_11E:0,0CE5... (7 Replies)
Discussion started by: greycells
7 Replies

4. Shell Programming and Scripting

combine awk and tr -d

Hi Everyone, awk 'BEGIN{print strftime("%c",1272814948)}' | tr -d '\n' how to change tr -d '\n' to be part of the awk? means awk this pchoh time, and awk also remove '\n', instead of using "|" to combine "tr" command. Thanks (2 Replies)
Discussion started by: jimmy_y
2 Replies

5. Shell Programming and Scripting

combine

Dear all i am having text file like xxx|yyy|1|2| zzz|rrr|3|4| www|xxx|>< 5|6|>< jjj|kkk|>< 8|9>< i want to join two lines which are having ' >< ' by taking only two lines at a stretch ...using awk command the result output should be xxx|yyy|1|2| zzz|rrr|3|4| www|xxx|5|6|... (2 Replies)
Discussion started by: suryanarayana
2 Replies

6. Shell Programming and Scripting

combine

Hi I am having text file like this 001|ramu|hno221|>< sheshadripuram|delhi|560061>< 002|krishna|hno225|>< newdelhimain|delhi|560061>< i want to combine every two lines as single...line... i.e 001|ramu|hno221|sheshadripuram|delhi|560061 can u pls help me (3 Replies)
Discussion started by: suryanarayana
3 Replies

7. Shell Programming and Scripting

Removing blank spaces, tab spaces from file

Hello All, I am trying to remove all tabspaces and all blankspaces from my file using sed & awk, but not getting proper code. Please help me out. My file is like this (<b> means one blank space, <t> means one tab space)- $ cat file NARESH<b><b><b>KUMAR<t><t>PRADHAN... (3 Replies)
Discussion started by: NARESH1302
3 Replies

8. UNIX for Dummies Questions & Answers

Combine commands

Hi, i tried to combine grep with find and it didnt work grep 'find dirname filename" i also would like that the file will be sorted in the way. thanks a lot. (2 Replies)
Discussion started by: Spoiler
2 Replies

9. UNIX for Dummies Questions & Answers

how to append spaces(say 10 spaces) at the end of each line based on the length of th

Hi, I have a problem where I need to append few spaces(say 10 spaces) for each line in a file whose length is say(100 chars) and others leave as it is. I tried to find the length of each line and then if the length is say 100 chars then tried to write those lines into another file and use a sed... (17 Replies)
Discussion started by: prathima
17 Replies

10. Shell Programming and Scripting

Strip leading and trailing spaces only in a shell variable with embedded spaces

I am trying to strip all leading and trailing spaces of a shell variable using either awk or sed or any other utility, however unscuccessful and need your help. echo $SH_VAR | command_line Syntax. The SH_VAR contains embedded spaces which needs to be preserved. I need only for the leading and... (6 Replies)
Discussion started by: jerardfjay
6 Replies
Login or Register to Ask a Question