Nirmal Thacker | 3 Nov 04:50 2008
Picon

Modifying stripe size does not show

Hello

I am using PVFS2-1.5.1 and as far as I know, to modify the default
stripe size of PVFS2, I must modify the header
include/pvfs2-dist-simple-stripe.h .

Strangely , I did so and rebuilt the source, yet the pvfs2-viewdist
still shows me the default striping for any new files created with the
modified pvfs2 build!

Nirmal
wmaple | 4 Nov 09:05 2008

Could not find DB libraries

HI

I tried to install pvfs2 on ubuntu 8.04, so it is necessary to  install  berkeley  DB first.  I download the
berkeley DB source package from the following link:
http://www.oracle.com/technology/software/products/berkeley-db/index.html
Finished its installation, I started to install pvfs2. But when run ./configure, I got a message:
... .... ....
Could not find DB libraries
It seems that there is someone get trouble like me, but I can not find db-devel package used under ubuntu 8.04.

网易邮箱10周年,技术见证辉煌

HI

I tried to install pvfs2 on ubuntu 8.04, so it is necessary to  install  berkeley  DB first.  I download the berkeley DB source package from the following link:
http://www.oracle.com/technology/software/products/berkeley-db/index.html
Finished its installation, I started to install pvfs2. But when run ./configure, I got a message:
... .... ....
Could not find DB libraries
It seems that there is someone get trouble like me, but I can not find db-devel package used under ubuntu 8.04.

 


网易邮箱10周年,技术见证辉煌
_______________________________________________
Pvfs2-users mailing list
Pvfs2-users <at> beowulf-underground.org
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
Phil Carns | 4 Nov 15:11 2008

Re: Could not find DB libraries

Hello,

There is no need to manually download and install the Berkeley DB
libraries.  You just need to find the right development packages
provided by Ubuntu.

You can first find out what version of Berkeley DB you are using by
running this command and picking the newest version number if multiple
are installed:

dpkg -l |grep libdb4

Then you need to install the "-dev" version of the package identified
above.  For example, if you have libdb4.6, then you can run this command
to install the development headers to match it:

apt-get install libdb4.6-dev

-Phil

wmaple <at> 126.com wrote:
> HI
> 
> I tried to install pvfs2 on ubuntu 8.04, so it is necessary to  install  
> berkeley  DB first.  I download the berkeley DB source package from the 
> following link:
> http://www.oracle.com/technology/software/products/berkeley-db/index.html
> Finished its installation, I started to install pvfs2. But when run 
> ./configure, I got a message:
> ... .... ....
(Continue reading)

Phil Carns | 4 Nov 16:23 2008

Re: Modifying stripe size does not show

Hi Nirmal,

I think that you can use the same mechanisms to set distribution 
parameters in 1.5.1 as in our newer releases.

There is some information here about how to set the strip size at run 
time for a particular directory (no need to recompile):

http://www.pvfs.org/fisheye/browse/PVFS/doc/pvfs2-tuning.tex?r=1.2#l208

You can also set a default for the whole file system in your server 
configuration file by adding a section that looks like this into your 
<Filesystem> section:

     <Distribution>
         Name simple_stripe
         Param strip_size
         Value 4194304
     </Distribution>

-Phil

Nirmal Thacker wrote:
> Hello
> 
> I am using PVFS2-1.5.1 and as far as I know, to modify the default
> stripe size of PVFS2, I must modify the header
> include/pvfs2-dist-simple-stripe.h .
> 
> Strangely , I did so and rebuilt the source, yet the pvfs2-viewdist
(Continue reading)

Nirmal Thacker | 4 Nov 20:00 2008
Picon

Re: Modifying stripe size does not show

Phil:

I did add the Distribution context to my pvfs2-fs.conf , and restarted
the server nodes, and received an "Option cant be defined in that
context" error.
The error points to the Filesystem context, maybe indicating that I
cannot declare the distribution sub-context here (?)

I have attached the error and a copy of my pvfs2-fs.conf

The error comes up when I create a storage space.

[I have 4 storage servers and 1 MDS. I tried by reconfiguring storage
and restarting the servers and the error persists. It also says that the
host names must be consistent [see log] . Thats strange since otherwise,
the servers start fine, without the Distribution context defined]

Nirmal

Phil Carns wrote:
> Hi Nirmal,
>
> I think that you can use the same mechanisms to set distribution
> parameters in 1.5.1 as in our newer releases.
>
> There is some information here about how to set the strip size at run
> time for a particular directory (no need to recompile):
>
> http://www.pvfs.org/fisheye/browse/PVFS/doc/pvfs2-tuning.tex?r=1.2#l208
>
(Continue reading)

Phil Carns | 5 Nov 16:37 2008

Re: Modifying stripe size does not show

This was a bug in our older releases.  You can try applying this patch 
to fix it if you are still stuck on 1.5.1:

http://www.pvfs.org/fisheye/rdiff/PVFS?csid=MAIN:slang:20070625220806&u&N

-Phil

Nirmal Thacker wrote:
> Phil:
> 
> I did add the Distribution context to my pvfs2-fs.conf , and restarted
> the server nodes, and received an "Option cant be defined in that
> context" error.
> The error points to the Filesystem context, maybe indicating that I
> cannot declare the distribution sub-context here (?)
> 
> I have attached the error and a copy of my pvfs2-fs.conf
> 
> The error comes up when I create a storage space.
> 
> [I have 4 storage servers and 1 MDS. I tried by reconfiguring storage
> and restarting the servers and the error persists. It also says that the
> host names must be consistent [see log] . Thats strange since otherwise,
> the servers start fine, without the Distribution context defined]
> 
> Nirmal
> 
> Phil Carns wrote:
>> Hi Nirmal,
>>
(Continue reading)

Nirmal Thacker | 5 Nov 17:38 2008
Picon

Re: Modifying stripe size does not show

The patch did not help either. It brings up the same error.

Could there be more patch releases which I can try?

Phil Carns wrote:
> This was a bug in our older releases.  You can try applying this patch
> to fix it if you are still stuck on 1.5.1:
>
> http://www.pvfs.org/fisheye/rdiff/PVFS?csid=MAIN:slang:20070625220806&u&N
>
> -Phil
>
> Nirmal Thacker wrote:
>> Phil:
>>
>> I did add the Distribution context to my pvfs2-fs.conf , and restarted
>> the server nodes, and received an "Option cant be defined in that
>> context" error.
>> The error points to the Filesystem context, maybe indicating that I
>> cannot declare the distribution sub-context here (?)
>>
>> I have attached the error and a copy of my pvfs2-fs.conf
>>
>> The error comes up when I create a storage space.
>>
>> [I have 4 storage servers and 1 MDS. I tried by reconfiguring storage
>> and restarting the servers and the error persists. It also says that the
>> host names must be consistent [see log] . Thats strange since otherwise,
>> the servers start fine, without the Distribution context defined]
>>
(Continue reading)

Phil Carns | 5 Nov 18:16 2008

Re: Modifying stripe size does not show

Are you sure that you applied the patch correctly?  That fixes the 
problem when I try the same scenario here.

-Phil

Nirmal Thacker wrote:
> The patch did not help either. It brings up the same error.
> 
> Could there be more patch releases which I can try?
> 
> 
> Phil Carns wrote:
>> This was a bug in our older releases.  You can try applying this patch
>> to fix it if you are still stuck on 1.5.1:
>>
>> http://www.pvfs.org/fisheye/rdiff/PVFS?csid=MAIN:slang:20070625220806&u&N
>>
>> -Phil
>>
>> Nirmal Thacker wrote:
>>> Phil:
>>>
>>> I did add the Distribution context to my pvfs2-fs.conf , and restarted
>>> the server nodes, and received an "Option cant be defined in that
>>> context" error.
>>> The error points to the Filesystem context, maybe indicating that I
>>> cannot declare the distribution sub-context here (?)
>>>
>>> I have attached the error and a copy of my pvfs2-fs.conf
>>>
(Continue reading)

Nirmal Thacker | 5 Nov 19:23 2008
Picon

Re: Modifying stripe size does not show

Hi Phil,

Yes I have the patch in the extracted directory of PVFS2-1.5.1 and I
apply the patch using

patch -p0 < patch
Although the patch succeeds, I still face the issue.

I have been going through the code too , since the patch only modifies a
single line.

For one the patch begins at line 1248, but line 1248 in pvfs2-1.5.1 has
something entirely different. I still dont understand though, how the
patch succeeds

For another, I think the patch refers to the function
DOTCONF_CB(exit_distribution_context) which is at line 1039 in my
server-config.c . I modified the configuration context there to
CTX_FILESYSTEM as does the patch, but the problem persists.

Nirmal

Phil Carns wrote:
> Are you sure that you applied the patch correctly?  That fixes the
> problem when I try the same scenario here.
>
> -Phil
>
> Nirmal Thacker wrote:
>> The patch did not help either. It brings up the same error.
(Continue reading)

Nirmal Thacker | 5 Nov 19:49 2008
Picon

Re: Modifying stripe size does not show

Ok , the patch does the job- in modifying the code correctly that is.
I see the bug in the code and I see that the patch fixes it. However,
the problem still persists.
The error is similar as well:

[D 14:05:40.412091] PVFS2 Server version 1.5.1 starting.
[E 14:05:40.422537] Error: /home/thacker/etc/pvfs2-fs.conf line 47:
Option can't be defined in that context[E 11/05 14:05] Could not find
handle range for host (null)
[E 11/05 14:05] Please make sure that the host names in
/home/thacker/etc/pvfs2-fs.conf and
/home/thacker/etc/pvfs2-server.conf-node15 are consistent
[D 11/05 14:05] PVFS2 Server: storage space created. Exiting.

Cannot find handle range? Seems to be fine without the Distribution
sub-section

Does the order in which these subsections appear matter ? I've jus added
them right after the default <StorageHints> subsection

Nirmal

Nirmal Thacker wrote:
> Hi Phil,
>
> Yes I have the patch in the extracted directory of PVFS2-1.5.1 and I
> apply the patch using
>
> patch -p0 < patch
> Although the patch succeeds, I still face the issue.
(Continue reading)


Gmane