Upgrading rootvg disks on the fly.


 
Thread Tools Search this Thread
Operating Systems AIX Upgrading rootvg disks on the fly.
# 1  
Old 01-22-2014
Upgrading rootvg disks on the fly.

I'm looking for a way to upgrade disks containing my rootvg volume group on the fly without a reboot.

Currently, rootvg contains 2x74gb drives in RAID 10. What I want to do is swap them out one-by-one with 146gb drives then expand the volume group. I've done this with a test system before, and the new drives are recognized as being the larger capacity but I can't extend the volume group to the extra size. lsvg rootvg still shows the vg as being 74gb.

I've tried simply using 'chvg -g rootvg', but I get the following error...

Code:
# chvg -g rootvg                                                                     
0516-1382 chvg: Volume group is not changed. None of the disks in the                
        volume group have grown in size.                                             
0516-732 chvg: Unable to change volume group rootvg.                                 
#

I can't seem to find a way to extend the actual RAID volume past the original 74gb.

Last edited by acascianelli; 01-22-2014 at 11:39 AM..
# 2  
Old 01-22-2014
Hi,

please provide the output from lsvg -l and lsvg -p.

regards
# 3  
Old 01-22-2014
I removed my post since you changed all the subject... why did you not say in the first place you were in RAID 10 ?
# 4  
Old 01-22-2014
Well, assuming that you have:-
  • hot-plug disks
  • spare slots to put new ones in that you can boot from
  • current disks are hdisk0 & hdisk1
If you insert a new disk and run cfgmgr -S does it discover it? Let's refer to these as hdisk100 and 101.
Code:
extendvg rootvg hdisk100 hdisk101

migratepv hdisk0 hdisk100
bosboot -ad hdisk100
bootlist -o -m normal hdisk1 hdisk100        # Just in case we lose the other disk at the wrong moment.

migratepv hdisk1 hdisk101
bosboot -ad hdisk101
bootlist -o -m normal hdisk100 hdisk101

reducevg rootvg hdisk0 hdisk1



I hope that this helps



Robin
Liverpool/Blackburn
UK

---------- Post updated at 03:54 PM ---------- Previous update was at 03:52 PM ----------

Oh great, RAID disks. What do you see as rootvg from AIX then? If it's a single protected disk, then it's all handled by the RAID manager and it's not an AIX question.

It would have been nice to know this first.


I await the output from the request by -=XrAy=-
# 5  
Old 01-22-2014
I'm going to try messing around with the migratepv command. I didn't think about doing that.
# 6  
Old 01-22-2014
Q: how do you manage to do RAID with only 2 disks?
# 7  
Old 01-22-2014
Code:
# lsvg -l rootvg                                                                     
rootvg:                                                                              
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT        
hd5                 boot       1       1       1    closed/syncd  N/A                
hd6                 paging     4       4       1    open/syncd    N/A                
hd8                 jfs2log    1       1       1    open/syncd    N/A                
hd4                 jfs2       3       3       1    open/syncd    /                  
hd2                 jfs2       21      21      1    open/syncd    /usr               
hd9var              jfs2       5       5       1    open/syncd    /var               
hd3                 jfs2       1       1       1    open/syncd    /tmp               
hd1                 jfs2       1       1       1    open/syncd    /home              
hd10opt             jfs2       1       1       1    open/syncd    /opt               
hd11admin           jfs2       1       1       1    open/syncd    /admin             
hd7                 sysdump    3       3       1    open/syncd    N/A                
fwdump              jfs2       1       1       1    open/syncd    /var/adm/ras/platfo
rm                                                                                   
livedump            jfs2       2       2       1    open/syncd    /var/adm/ras/livedu
mp                                                                                   
paging00            paging     19      19      1    closed/syncd  N/A                
# lsvg -p rootvg                                                                     
rootvg:                                                                              
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION        
hdisk0            active            531         467         103..99..53..106..106    
#

There won't be available drive slots on the systems I plan on doing this on. This is why I was hoping it be as easy as swapping out the drives in the array one-by-one.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute script on the fly

Hi all, I am calling a zsh script from batch file . This zsh just removes the trigger file in a particular directory.File name is passed as a parameter from the batch file Problem is this batch is called in multiple other batch files and sometimes system says file cant be used as it is used... (4 Replies)
Discussion started by: Hypesslearner
4 Replies

2. OS X (Apple)

Creating An Executable On The Fly...

Hi all... Had an idea tonight which could really enhance shell scripting for me. Yes I am aware there could be difficulties but...... Creating a C script inside the shell script to do a task, (a simple text print to stdout in this example), compiling it on the fly, making sure it is... (4 Replies)
Discussion started by: wisecracker
4 Replies

3. HP-UX

Compress dbexport on the fly

Hi, I have an old HPUX 10.20 server running Informix 7.23 I need to dump the database to get it off that hardware before it dies. Unfortunately there is insufficient local diskspace to do so. I have set up a linux box with sufficient disk onto which I can export the database. Having... (1 Reply)
Discussion started by: fella
1 Replies

4. What is on Your Mind?

The Only Way To Fly !

This is great! Lqh8e2KYIrU (8 Replies)
Discussion started by: Neo
8 Replies

5. Shell Programming and Scripting

Read Files on the Fly

Hi, I am creating files in a folder on the fly with arbritrary names but same extension (say, ".img"). How can I read each filename from the folder through a script. regards Angshuman (2 Replies)
Discussion started by: angshuman_ag
2 Replies

6. Solaris

Disable IPMP on the fly

Wats would be the best way to disable link based IPMP on the fly without loosing network connectivity ? (6 Replies)
Discussion started by: fugitive
6 Replies

7. Shell Programming and Scripting

Grep logs on the fly

Hi, We use an application that is dumping logs to a file on disk. However, this is dumping very verbosely and there is no method of turning down the logging level. We need to remove certain contents from these before they are commited to disk. Has anybody got any ideas how I can do this... (3 Replies)
Discussion started by: harperonline
3 Replies

8. UNIX for Dummies Questions & Answers

mv and compress on the fly

I want to move and compress a big export file. Like mv file_exp /filesystem/file_exp |compress The file system is too small to compress and move with 2 steps. What is the best command for me. I'm running solaris. :confused: (1 Reply)
Discussion started by: simquest
1 Replies

9. UNIX for Dummies Questions & Answers

Rename files on the fly

Hi everyone, I am sort of new to shell scripting, I have a bunch of files that begin with 'blah' and I want to rename those files with something different (renamedFile1, renamedFile2, renamedFileN). I don't want to go through each file and rename them with the mv command. Could I just use a for... (4 Replies)
Discussion started by: kcor
4 Replies

10. UNIX for Advanced & Expert Users

Flare version question... Upgrading from Cx400 Cx500 disks

EMC is asking what flare version servers are at. Does HPUX use flare and how can you find it? :confused: (0 Replies)
Discussion started by: rfmurphy_6
0 Replies
Login or Register to Ask a Question