[Lustre-discuss] Works: Re: mkfs.lustre (can't allocate memory)

Andreas Dilger adilger at sun.com
Wed Jul 30 04:40:05 PDT 2008


On Jul 30, 2008  02:37 -0400, Josephine Palencia wrote:
> This work-around worked.
> Thank you very much.

Can you please file a bug with the details.

A better solution is to replace "/" in s_id with "_" when creating the
proc file so that the full pathname is available.  Alternately, this
could create each path component separately, and clean it up.

> On Mon, 28 Jul 2008, Andreas Dilger wrote:
>
>> On Jul 24, 2008  14:51 -0400, Josephine Palencia wrote:
>>> [root at mgs ~]# mkfs.lustre --mgs /dev/cciss/c0d0p6
>>> LDISKFS-fs: Unable to create cciss/c0d0p6
>>
>> This appears to be an internal problem with creating the directory
>> "/proc/fs/ldiskfs/cciss/c0d0p6" because the "cciss" part of the
>> tree does not yet exist and the "c0d0p6" subdirectory create fails.
>>
>> As a temporary workaround, can you please try modifying the ldiskfs code:
>>
>>        sbi->s_dev_proc = proc_mkdir(sb->s_id, proc_root_ext3);
>>        if (sbi->s_dev_proc == NULL) {
>>                printk(KERN_ERR "EXT3-fs: Unable to create %s\n", sb->s_id);
>> +		/* Don't fail mounting if the /proc file can't be created
>>                sb->s_fs_info = NULL;
>>                kfree(sbi);
>>                return -ENOMEM;
>> +		*/
>>        }
>>
>>
>> It looks (though I'm not 100% sure) that the rest of the mballoc code
>> will deal with s_dev_proc == NULL properly.
>>
>> Cheers, Andreas
>> --
>> Andreas Dilger
>> Sr. Staff Engineer, Lustre Group
>> Sun Microsystems of Canada, Inc.
>>

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.




More information about the lustre-discuss mailing list