remgasis remgasis
2018-Nov-06 19:11 UTC
[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=DwIBaQ&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=DwIBaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=wXmkJNAUtutY0U9inuQWCbzSSRji5zLpyR0a_Mek4jM&m=MVCpK-WjeBCbAmHOKlfI1Ejbp5MPQhVMougW37tdKI8&s=5gJ0zS5E8H-oJ3Q5jvZ7EM9ePDetuH4J6CyzvGLyPNA&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=DwIBaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=wXmkJNAUtutY0U9inuQWCbzSSRji5zLpyR0a_Mek4jM&m=MVCpK-WjeBCbAmHOKlfI1Ejbp5MPQhVMougW37tdKI8&s=GF6ATlkI-sPTmDgzOOlqKrCGuU4lAkZWn87FQpRNYoM&e=> <#m_-1149410534360441796_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20181106/ff591b89/attachment.html
Guozhonghua
2018-Nov-07 01:59 UTC
[Ocfs2-users] 答复: Fwd: Issue when I attempt to grow ocfs2 file system
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