<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
span.EmailStyle17
{font-family:"Calibri","sans-serif";
color:windowtext}
.MsoChpDefault
{font-family:"Calibri","sans-serif"}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
{}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I had our VMWare admin extend the file system on which /space is mounted (/dev/sda8). I’m trying to expand the file system. In the short time I’ve been researching, it appears that I want to use xfs_growfs.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I’m both a debian and xfs noob, used to AIX. This is the first day of my second week here, and as I’m the closest thing here to a linux admin, I get the opportunity to learn. This is a box that is not yet in production, and the anticipation
is that the /space directory will need to be twice its’ current size once the real data starts showing up.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">System specifics:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">root@thisbox:/# xfs_repair -V</p>
<p class="MsoNormal">xfs_repair version 3.1.7</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">root@thisbox:/# uname -a</p>
<p class="MsoNormal">Linux vmdamims01apl 3.10-0.bpo.2-amd64 #1 SMP Debian 3.10.5-1~bpo70+1+ims1 (2013-08-19) x86_64 GNU/Linux</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Here’s what I get when I try to use xfs_growfs, both the –d and the –D option (the 25000000 size is an arbitrary number above 19323392):</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-family:"Courier New"">root@vmdamims01apl:/# xfs_growfs -d /space</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">meta-data=/dev/sda8 isize=256 agcount=4, agsize=4830848 blks</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> = sectsz=512 attr=2</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">data = bsize=4096 blocks=19323392, imaxpct=25</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> = sunit=0 swidth=0 blks</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">naming =version 2 bsize=4096 ascii-ci=0</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">log =internal bsize=4096 blocks=9435, version=2</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> = sectsz=512 sunit=0 blks, lazy-count=1</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">realtime =none extsz=4096 blocks=0, rtextents=0</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">data size 19323391 too small, old size is 19323392</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">root@vmdamims01apl:/# xfs_growfs -D 25000000 /space</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">meta-data=/dev/sda8 isize=256 agcount=4, agsize=4830848 blks</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> = sectsz=512 attr=2</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">data = bsize=4096 blocks=19323392, imaxpct=25</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> = sunit=0 swidth=0 blks</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">naming =version 2 bsize=4096 ascii-ci=0</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">log =internal bsize=4096 blocks=9435, version=2</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> = sectsz=512 sunit=0 blks, lazy-count=1</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">realtime =none extsz=4096 blocks=0, rtextents=0</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">data size 25000000 too large, maximum is 19323391</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">df –k . says this:</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">/space# df -k .</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Filesystem 1K-blocks Used Available Use% Mounted on</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">/dev/sda8 77255828 15375660 61880168 20% /space</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Any help in getting me on track appreciated: don’t mind doing the work & the reading, quite willing to be self-sufficient, but a shove in the right direction would be a great help. One thing I’d like
to do is see what space is actually available: I’m told that the presented disk was extended by 150Gb in VMWare. How can I verify that? Thanks!</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Regards,</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Dan</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This email is confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please contact
the sender and be advised that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. The terms for the purchase and sale of any property referenced in this email shall be solely determined by a ratified Purchase Agreement.
Any information provided in this email, including but not limited to, pricing, financing, features of a property and/or community, is not to be construed as the basis of the bargain for the purchase and sale of any such property.
</body>
</html>