![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Re-using disks | Chains | SUN Solaris | 4 | 09-16-2008 05:56 AM |
| How to set up mirroring on OS disks. | Sprellarinn | Linux | 0 | 10-17-2007 09:56 AM |
| new IBM pseries and new disks | sapbcer | AIX | 2 | 07-19-2007 01:30 PM |
| Disks on AIX | piooooter | UNIX for Dummies Questions & Answers | 2 | 03-07-2006 05:20 AM |
| how many disks do I have? | g-e-n-o | UNIX for Dummies Questions & Answers | 8 | 11-01-2001 03:20 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Add new disks and expandlv
I have successfully added new physical disks with the objective to expand an exisiting logical volume. How do I add the new disks to the logical volume so I can then expand the size of the lv and ultimately the file system. The disks have been added to the related Volume Group.
Thanks |
|
||||
|
First, add the disk(s) to the volume group in question. You have already figured that out:
Code:
extendvg <VGname> <diskname> example: extendvg myVG hdisk99 It is possible to directly increase the FS and LVM will automatically extend the LV for you but i want more control over this process so i habitually extend the LV first and only then the FS: Code:
extendlv [-m<mapfile>] <LVname> <NrOfPPs> or extendlv <LVname> <NrOfPPs> [<PVname>] example: extendlv MyLV 5 will increase the size of MyLV by 5 times the PP size. If MyLV is mirrored a multiple of 5 PPs will be added, depending on the number of mirrors configured. blocks = <nr of PPs> * 2 * <PPsize in kb> example: PP size is 256G, 2 PPs added: 2 * 2 * 1024 * 1024 * 256 = 1073741824 Then use this number to add that many blocks to your fs: Code:
chfs -a size=+<nr of blocks> <FS> example: chfs -a size=+1073741824 /my/file/system I hope this helps. bakunin |
|
||||
|
Thank you bakunin, I really appreciate your help this is giving me a headache.
lsvg uservg01 = 2184 (559104 megabytes) PP SIZE: 256 megabyte(s) This is a striped volume with STRIPE WIDTH: 4 STRIPE SIZE: 32K BACKUP MIRROR COPY: 3 If I try, for example, extendlv vol01 5. I get the following and its this I don't understand. 0516-1036 extendlv: Striped logical volume size can only be an even multiple of the striping width. 0516-788 extendlv: Unable to extend logical volume. I don't actually need to add the addtional hdisk*s to the LV? Thanks |
|
||||
|
bear with me, I think I may be close to understanding this now
There are four new disks available in the VG hdisk14 active 546 546 110..109..109..109..109 hdisk15 active 546 546 110..109..109..109..109 hdisk16 active 546 546 110..109..109..109..109 hdisk17 active 546 546 110..109..109..109..109 So if I try extendlv vol01 4 I get 0516-404 allocp: This system cannot fulfill the allocation request. There are not enough free partitions or not enough physical volumes to keep strictness and satisfy allocation requests. The command should be retried with different allocation characteristics. |
|
||||
|
Hello,
While stripping we used to mention the name of the physical volume names. Did u added the physical names of newly added to vg(hdisk14 hdisk15 hdisk16 hdisk17) in the field of spread LV. smitty chlv => select your lv name => check the field "PHYSICAL VOLUME names" HTH |
|
|||||
|
Quote:
# lslv vol01 to see LV's properties. Change Upper Bound if necessary with # chlv -u8 vol01 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|