[Ocfs2-users] 答复: Fwd: Issue when I attempt to grow ocfs2 file system
Guozhonghua
guozhonghua at h3c.com
Tue Nov 6 17:59:05 PST 2018
The last parameter should be blocks-count, not size or capacity. If the block size is 4k, you want extent to the capacity is 100G , the parameter should be 26214400.
26214400 = 1024*1024*1024 * 100 / 4096
Same time the disk size should be larger than the file system size you wanted.
You can use man tool to learn some about tunefs.ocfs2.
SYNOPSIS
tunefs.ocfs2 [--cloned-volume[=new-label] [--fs-fea鈁0m
tures=list-of-features] [-J journal-options] [-L volume-label]
[-N number-of-node-slots] [-Q query-format] [-ipqnSUvVy]
[--backup-super] [--list-sparse] device [blocks-count]
debugfs.ocfs can show the block size of the fs.
debugfs.ocfs2 -R "stats" /dev/dm-5 |grep Block\ Size
tunefs.ocfs2 -S /dev/sdx 100G, means grow the fs to be 400G with block size 4k, but the disk is 100G, errors.
发件人: ocfs2-users-bounces at oss.oracle.com [mailto:ocfs2-users-bounces at oss.oracle.com] 代表 remgasis remgasis
发送时间: 2018年11月7日 3:11
收件人: Ocfs2-users-request at oss.oracle.com; ocfs2-users at oss.oracle.com
主题: [Ocfs2-users] Fwd: Issue when I attempt to grow ocfs2 file system
Hello list,
At this occasion I'm attempt grow my ocfs2 file system with the commands:
tunefs.ocfs2 -S /dev/sdx
tunefs.ocfs2 -S /dev/sdx 100G
The last command show me the following message:
"The ocfs2 filesystem on device "" cannot be larger than XXXX clusters (XXXX bytes)"
However, with the first command I can't grow it either. When I attempt do it, the prompt shell shows no outcomes. I've installed debian 9.0 and already have tried change the features but the issue continues.
Do you have any idea which may be the cause of issue ?
Regards.
[图像已被发件人删除。]<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.avast.com_sig-2Demail-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Dwebmail&d=DwMFaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=wXmkJNAUtutY0U9inuQWCbzSSRji5zLpyR0a_Mek4jM&m=MVCpK-WjeBCbAmHOKlfI1Ejbp5MPQhVMougW37tdKI8&s=GF6ATlkI-sPTmDgzOOlqKrCGuU4lAkZWn87FQpRNYoM&e=>
Libre de virus. https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avast.com&d=DwIGaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=wXmkJNAUtutY0U9inuQWCbzSSRji5zLpyR0a_Mek4jM&m=KMy005EiBcus2qBhtuDSbK1vg19j48Nm_hxukDMPwdg&s=xNlkAEBB_DIBuxmK_x8glvZK_0G1X-UL2jh7gf3TqjQ&e=<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.avast.com_sig-2Demail-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Dwebmail&d=DwMFaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=wXmkJNAUtutY0U9inuQWCbzSSRji5zLpyR0a_Mek4jM&m=MVCpK-WjeBCbAmHOKlfI1Ejbp5MPQhVMougW37tdKI8&s=GF6ATlkI-sPTmDgzOOlqKrCGuU4lAkZWn87FQpRNYoM&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20181107/eb3086e9/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 350 bytes
Desc: image001.jpg
Url : http://oss.oracle.com/pipermail/ocfs2-users/attachments/20181107/eb3086e9/attachment-0001.jpg
More information about the Ocfs2-users
mailing list