Operating System - HP-UX
1835601 Members
3076 Online
110079 Solutions
New Discussion

Adding disks to 12h array

 
SOLVED
Go to solution
Brad Marks
Super Advisor

Adding disks to 12h array

I need to add 2 disks to my 12h which has four 18gb drives in it now. Once installed and included, how do I incorporate them into an existing LUN?
After that is done, I simply have to pvcreate, vgextend, and lvextend to have them be part of an existing logica volume, right?
Is there a step-by-step guide anywhere for this?
TIA,
Brad
It's not impossible -- it'll just cost more...
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: Adding disks to 12h array

You don't. Once created a LUN's size is fixed. You can create another LUN and then add that LUN to an existing VG (after doing) a pvcreate.

You do a pvcreate, a vgextend, an lvextend, and finally an extendfs (or fsadm) to grow the filesystem.

Note that there is almost certainly no point in creating a LUN bigger than your biggest LUN within the existing VG otherwise almost certainly some PE's within the new LUN will not be accessible by LVM.

By the way, you can do all of this inside SAM and it works well.



If it ain't broke, I can fix that.
Rammig Claus
Frequent Advisor

Re: Adding disks to 12h array

Hi Brad,

make an ioscan and insf to obtain the devicename of your new disks.
Then you had to

pvcreate /dev/rdsk/

vgextend vg<..> /dev/dsk/

lvextend -l

Best regards ...
Claus
No risc no fun
Brad Marks
Super Advisor

Re: Adding disks to 12h array

A.Clay,
What are the steps to create a new LUN and then add it to an existing VG?

Your responses have been very helpful.
Thanks much.
It's not impossible -- it'll just cost more...
Eugeny Brychkov
Honored Contributor
Solution

Re: Adding disks to 12h array

As you wrote, after including disks process called balancing should start. This process redistributes data across all disks, placing rarely accessed data to RAID 5 and often accessed data to RAID 0/1.
All LUNs are spread across all physical disks in the autoraid, so adding more disks will increase space available for LUN creation.
So you can create another LUN in this new space, or delete old LUN and create new bigger LUN. Then newly created or recreated LUN will be visible in ioscan, and you'll be able to do anything with it as it is an ordinary SCSI disk
Eugeny