SEO

vBulletin Search Engine Optimization


Go Back   UnixAdminTalk.com > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 09:23 AM
Jarod99
 
Posts: n/a
Default Problem to increase partition size...

Hello,
I would like to increase the filesystem /var (on rootvg).
When I execute this command :
#extendlv hd9var 128M

I got this error :
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.

# lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE
DISTRIBUTION
hdisk0 active 542 0
00..00..00..00..00
hdisk2 active 542 134
00..00..00..25..109

How can I move PPs from hdisk2 to hdisk0 ? I would like to do this in
order to make free space on hdisk0.

Or have you an other alternative ?

# lspv -l hdisk2
hdisk2:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
hd5 1 1 01..00..00..00..00 N/A
fslv06 195 195 108..04..00..83..00 /travail
hd6 98 98 00..98..00..00..00 N/A
hd10opt 4 4 00..02..02..00..00 /opt
hd4 4 4 00..03..01..00..00 /
hd9var 8 8 00..01..07..00..00 /var
hd1 1 1 00..00..01..00..00 /home
hd2 64 64 00..00..64..00..00 /usr
hd3 32 32 00..00..32..00..00 /tmp
hd8 1 1 00..00..01..00..00 N/A

# lspv -l hdisk0
hdisk0:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
fslv06 487 487 109..58..105..108..107 /travail
hd6 50 50 00..50..00..00..00 N/A
hd4 3 3 00..00..03..00..00 /
hd10opt 2 2 00..00..00..00..02 /opt
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 06:23 AM
Karma
 
Posts: n/a
Default Re: Problem to increase partition size...

On Jan 16, 3:31 am, Jarod99 <[email protected]> wrote:
> Hello,
> I would like to increase the filesystem /var (on rootvg).
> When I execute this command :
> #extendlv hd9var 128M
>
> I got this error :
> 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.
>
> # lsvg -p rootvg
> rootvg:
> PV_NAME PV STATE TOTAL PPs FREE PPs FREE
> DISTRIBUTION
> hdisk0 active 542 0
> 00..00..00..00..00
> hdisk2 active 542 134
> 00..00..00..25..109
>
> How can I move PPs from hdisk2 to hdisk0 ? I would like to do this in
> order to make free space on hdisk0.
>
> Or have you an other alternative ?
>
> # lspv -l hdisk2
> hdisk2:
> LV NAME LPs PPs DISTRIBUTION MOUNT POINT
> hd5 1 1 01..00..00..00..00 N/A
> fslv06 195 195 108..04..00..83..00 /travail
> hd6 98 98 00..98..00..00..00 N/A
> hd10opt 4 4 00..02..02..00..00 /opt
> hd4 4 4 00..03..01..00..00 /
> hd9var 8 8 00..01..07..00..00 /var
> hd1 1 1 00..00..01..00..00 /home
> hd2 64 64 00..00..64..00..00 /usr
> hd3 32 32 00..00..32..00..00 /tmp
> hd8 1 1 00..00..01..00..00 N/A
>
> # lspv -l hdisk0
> hdisk0:
> LV NAME LPs PPs DISTRIBUTION MOUNT POINT
> fslv06 487 487 109..58..105..108..107 /travail
> hd6 50 50 00..50..00..00..00 N/A
> hd4 3 3 00..00..03..00..00 /
> hd10opt 2 2 00..00..00..00..02 /opt


man migratepv. This will allow you to the data around.
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 06:23 AM
Jarod99
 
Posts: n/a
Default Re: Problem to increase partition size...

On 16 jan, 16:24, Karma <[email protected]> wrote:
> On Jan 16, 3:31 am, Jarod99 <[email protected]> wrote:
>
>
>
> > Hello,
> > I would like to increase the filesystem /var (on rootvg).
> > When I execute this command :
> > #extendlv hd9var 128M

>
> > I got this error :
> > 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.

>
> > # lsvg -p rootvg
> > rootvg:
> > PV_NAME PV STATE TOTAL PPs FREE PPs FREE
> > DISTRIBUTION
> > hdisk0 active 542 0
> > 00..00..00..00..00
> > hdisk2 active 542 134
> > 00..00..00..25..109

>
> > How can I move PPs from hdisk2 to hdisk0 ? I would like to do this in
> > order to make free space on hdisk0.

>
> > Or have you an other alternative ?

>
> > # lspv -l hdisk2
> > hdisk2:
> > LV NAME LPs PPs DISTRIBUTION MOUNT POINT
> > hd5 1 1 01..00..00..00..00 N/A
> > fslv06 195 195 108..04..00..83..00 /travail
> > hd6 98 98 00..98..00..00..00 N/A
> > hd10opt 4 4 00..02..02..00..00 /opt
> > hd4 4 4 00..03..01..00..00 /
> > hd9var 8 8 00..01..07..00..00 /var
> > hd1 1 1 00..00..01..00..00 /home
> > hd2 64 64 00..00..64..00..00 /usr
> > hd3 32 32 00..00..32..00..00 /tmp
> > hd8 1 1 00..00..01..00..00 N/A

>
> > # lspv -l hdisk0
> > hdisk0:
> > LV NAME LPs PPs DISTRIBUTION MOUNT POINT
> > fslv06 487 487 109..58..105..108..107 /travail
> > hd6 50 50 00..50..00..00..00 N/A
> > hd4 3 3 00..00..03..00..00 /
> > hd10opt 2 2 00..00..00..00..02 /opt

>
> man migratepv. This will allow you to the data around.


But if I migrate rootvg partition (hd9var), I will not have
problems ??? I read that this operation is dangerous...

Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 06:23 AM
Hajo Ehlers
 
Posts: n/a
Default Re: Problem to increase partition size...

On Jan 16, 5:03 pm, Jarod99 <[email protected]> wrote:
> On 16 jan, 16:24, Karma <[email protected]> wrote:
>
>
>
> > On Jan 16, 3:31 am, Jarod99 <[email protected]> wrote:

>
> > > Hello,
> > > I would like to increase the filesystem /var (on rootvg).
> > > When I execute this command :
> > > #extendlv hd9var 128M

>
> > > I got this error :
> > > 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.

>
> > > # lsvg -p rootvg
> > > rootvg:
> > > PV_NAME PV STATE TOTAL PPs FREE PPs FREE
> > > DISTRIBUTION
> > > hdisk0 active 542 0
> > > 00..00..00..00..00
> > > hdisk2 active 542 134
> > > 00..00..00..25..109

>
> > > How can I move PPs from hdisk2 to hdisk0 ? I would like to do this in
> > > order to make free space on hdisk0.

>
> > > Or have you an other alternative ?

>
> > > # lspv -l hdisk2
> > > hdisk2:
> > > LV NAME LPs PPs DISTRIBUTION MOUNT POINT
> > > hd5 1 1 01..00..00..00..00 N/A
> > > fslv06 195 195 108..04..00..83..00 /travail
> > > hd6 98 98 00..98..00..00..00 N/A
> > > hd10opt 4 4 00..02..02..00..00 /opt
> > > hd4 4 4 00..03..01..00..00 /
> > > hd9var 8 8 00..01..07..00..00 /var
> > > hd1 1 1 00..00..01..00..00 /home
> > > hd2 64 64 00..00..64..00..00 /usr
> > > hd3 32 32 00..00..32..00..00 /tmp
> > > hd8 1 1 00..00..01..00..00 N/A

>
> > > # lspv -l hdisk0
> > > hdisk0:
> > > LV NAME LPs PPs DISTRIBUTION MOUNT POINT
> > > fslv06 487 487 109..58..105..108..107 /travail
> > > hd6 50 50 00..50..00..00..00 N/A
> > > hd4 3 3 00..00..03..00..00 /
> > > hd10opt 2 2 00..00..00..00..02 /opt

>
> > man migratepv. This will allow you to the data around.

>
> But if I migrate rootvg partition (hd9var), I will not have
> problems ??? I read that this operation is dangerous...


Your disk layout is already a mess. So it should not really matter
where you put which lv

Hajo

Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 06:23 AM
Jarod99
 
Posts: n/a
Default Re: Problem to increase partition size...

On 16 jan, 17:23, Hajo Ehlers <[email protected]> wrote:
> On Jan 16, 5:03 pm, Jarod99 <[email protected]> wrote:
>
>
>
> > On 16 jan, 16:24, Karma <[email protected]> wrote:

>
> > > On Jan 16, 3:31 am, Jarod99 <[email protected]> wrote:

>
> > > > Hello,
> > > > I would like to increase the filesystem /var (on rootvg).
> > > > When I execute this command :
> > > > #extendlv hd9var 128M

>
> > > > I got this error :
> > > > 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.

>
> > > > # lsvg -p rootvg
> > > > rootvg:
> > > > PV_NAME PV STATE TOTAL PPs FREE PPs FREE
> > > > DISTRIBUTION
> > > > hdisk0 active 542 0
> > > > 00..00..00..00..00
> > > > hdisk2 active 542 134
> > > > 00..00..00..25..109

>
> > > > How can I move PPs from hdisk2 to hdisk0 ? I would like to do this in
> > > > order to make free space on hdisk0.

>
> > > > Or have you an other alternative ?

>
> > > > # lspv -l hdisk2
> > > > hdisk2:
> > > > LV NAME LPs PPs DISTRIBUTION MOUNT POINT
> > > > hd5 1 1 01..00..00..00..00 N/A
> > > > fslv06 195 195 108..04..00..83..00 /travail
> > > > hd6 98 98 00..98..00..00..00 N/A
> > > > hd10opt 4 4 00..02..02..00..00 /opt
> > > > hd4 4 4 00..03..01..00..00 /
> > > > hd9var 8 8 00..01..07..00..00 /var
> > > > hd1 1 1 00..00..01..00..00 /home
> > > > hd2 64 64 00..00..64..00..00 /usr
> > > > hd3 32 32 00..00..32..00..00 /tmp
> > > > hd8 1 1 00..00..01..00..00 N/A

>
> > > > # lspv -l hdisk0
> > > > hdisk0:
> > > > LV NAME LPs PPs DISTRIBUTION MOUNT POINT
> > > > fslv06 487 487 109..58..105..108..107 /travail
> > > > hd6 50 50 00..50..00..00..00 N/A
> > > > hd4 3 3 00..00..03..00..00 /
> > > > hd10opt 2 2 00..00..00..00..02 /opt

>
> > > man migratepv. This will allow you to the data around.

>
> > But if I migrate rootvg partition (hd9var), I will not have
> > problems ??? I read that this operation is dangerous...

>
> Your disk layout is already a mess. So it should not really matter
> where you put which lv
>
> Hajo


OK,
I think I forget an information : hdisk0=0PPs free, hdisk2=134PPs
free.
In order to make free space on hdisk0, I have to move a partition
which is on hdisk0, right ?
But the hdisk0 have only this partition fslv06 (travail) which use
487PPs, this partition is too large for hdisk2.

How can I make free space on hdisk0 ?
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 06:23 AM
Hajo Ehlers
 
Posts: n/a
Default Re: Problem to increase partition size...

On Jan 16, 5:40 pm, Jarod99 <[email protected]> wrote:
> On 16 jan, 17:23, Hajo Ehlers <[email protected]> wrote:
>
>
>
> > On Jan 16, 5:03 pm, Jarod99 <[email protected]> wrote:

>
> > > On 16 jan, 16:24, Karma <[email protected]> wrote:

>
> > > > On Jan 16, 3:31 am, Jarod99 <[email protected]> wrote:

>
> > > > > Hello,
> > > > > I would like to increase the filesystem /var (on rootvg).
> > > > > When I execute this command :
> > > > > #extendlv hd9var 128M

>
> > > > > I got this error :
> > > > > 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.

>
> > > > > # lsvg -p rootvg
> > > > > rootvg:
> > > > > PV_NAME PV STATE TOTAL PPs FREE PPs FREE
> > > > > DISTRIBUTION
> > > > > hdisk0 active 542 0
> > > > > 00..00..00..00..00
> > > > > hdisk2 active 542 134
> > > > > 00..00..00..25..109

>
> > > > > How can I move PPs from hdisk2 to hdisk0 ? I would like to do this in
> > > > > order to make free space on hdisk0.

>
> > > > > Or have you an other alternative ?

>
> > > > > # lspv -l hdisk2
> > > > > hdisk2:
> > > > > LV NAME LPs PPs DISTRIBUTION MOUNT POINT
> > > > > hd5 1 1 01..00..00..00..00 N/A
> > > > > fslv06 195 195 108..04..00..83..00 /travail
> > > > > hd6 98 98 00..98..00..00..00 N/A
> > > > > hd10opt 4 4 00..02..02..00..00 /opt
> > > > > hd4 4 4 00..03..01..00..00 /
> > > > > hd9var 8 8 00..01..07..00..00 /var
> > > > > hd1 1 1 00..00..01..00..00 /home
> > > > > hd2 64 64 00..00..64..00..00 /usr
> > > > > hd3 32 32 00..00..32..00..00 /tmp
> > > > > hd8 1 1 00..00..01..00..00 N/A

>
> > > > > # lspv -l hdisk0
> > > > > hdisk0:
> > > > > LV NAME LPs PPs DISTRIBUTION MOUNT POINT
> > > > > fslv06 487 487 109..58..105..108..107 /travail
> > > > > hd6 50 50 00..50..00..00..00 N/A
> > > > > hd4 3 3 00..00..03..00..00 /
> > > > > hd10opt 2 2 00..00..00..00..02 /opt

>
> > > > man migratepv. This will allow you to the data around.

>
> > > But if I migrate rootvg partition (hd9var), I will not have
> > > problems ??? I read that this operation is dangerous...

>
> > Your disk layout is already a mess. So it should not really matter
> > where you put which lv

>
> > Hajo

>
> OK,
> I think I forget an information : hdisk0=0PPs free, hdisk2=134PPs
> free.
> In order to make free space on hdisk0, I have to move a partition
> which is on hdisk0, right ?
> But the hdisk0 have only this partition fslv06 (travail) which use
> 487PPs, this partition is too large for hdisk2.
>
> How can I make free space on hdisk0 ?



Looking closer i see that hd9var is already on hdisk2. Thus you should
have no problem to extend the filesystem /var with
chfs -a size=+128M /var
or try
chfs -a size=+1 /var # which will increase the fs size with at least
one pp

Also the output from a
$ lslv hd9var
$ lslv -l hd9var
might be helpfull

BTW: Was the original rootvg mirrored ?
If yes has been a reboot issued after breaking the mirror ?

hth
Hajo

Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 06:23 AM
Niel Lambrechts
 
Posts: n/a
Default Re: Problem to increase partition size...

Jarod99 wrote:
> Hello,
> I would like to increase the filesystem /var (on rootvg).
> When I execute this command :
> #extendlv hd9var 128M
>
> I got this error :
> 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.


Your usage of extendlv is incorrect, since you are providing a SIZE
instead of the number of PPs to extend by.

root:/# extendlv LVNAME NROFPPS

Using this method is tedious since you not only have to extend the
logical volume like you are doing - but you also have to seperately
increase the file-system size to make use of extra space in the LV. It
is only commonly used to extend raw LVs.

You should rather be doing:
chfs -a size=+128M /var

which will extend both the LV and FS in the same command.

You did not post "lsvg -l rootvg" and "lsvg rootvg", which is rather
important.

By the way, your setup is less than ideal and not suited for a
production system. I'm not sure if you are just testing here, but if you
are interested:

You are not protecting your data with a fully mirrored setup. You will
definitely have application data loss if a disk failed.

Your application data is also sharing the internal disk with the O/S,
which could have an impact on I/O response should the paging space ever
get busy.

Ideally, you need to migrate "/travail" to a separate set of mirrored
disks, and dedicate hdisk2 and hdisk0 to mirror the O/S, including the
paging space.

> How can I move PPs from hdisk2 to hdisk0 ? I would like to do this in
> order to make free space on hdisk0.


man migratepv

e.g. migratepv -l LVNAME SOURCEPV TARGETPV

Niel
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:26 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0