All of lore.kernel.org
 help / color / mirror / Atom feed
* xfs_growfs 3.2.1 on Knoppix-ADRIANE from Debian 7 does not grow
@ 2017-02-28  2:37 David T-G
  2017-02-28  2:52 ` Darrick J. Wong
  0 siblings, 1 reply; 3+ messages in thread
From: David T-G @ 2017-02-28  2:37 UTC (permalink / raw)
  To: linux-xfs

Hi, all --

I finally settled on xfs as the filesystem for my raid5 volume on my
home computer even though I've been a longtime reiserfs lover :-)  But,
hey, let's try something new.

I recently added another device to my md raid5 set and expanded the
device from 8T to 12T, and now I want to grow the filesystem.  I remade
the partition and we oughta be good to go:

  diskfarm:root:10:~> parted /dev/md0 print | egrep 'TB|Table|Sector'
  Disk /dev/md0: 12.0TB
  Sector size (logical/physical): 512B/4096B
  Partition Table: gpt
   1      1049kB  12.0TB  12.0TB  xfs          Linux filesystem

When I try xfs_growfs, however, nothing changes:

  diskfarm:root:10:~> df -kh /mnt/4Traid5md/
  Filesystem      Size  Used Avail Use% Mounted on
  /dev/md0p1      7.3T  6.5T  863G  89% /mnt/4Traid5md
  diskfarm:root:10:~> xfs_growfs -d /mnt/4Traid5md/
  meta-data=/dev/md0p1             isize=256    agcount=32, agsize=61043072 blks
           =                       sectsz=4096  attr=2, projid32bit=1
           =                       crc=0        finobt=0
  data     =                       bsize=4096   blocks=1953377275, imaxpct=5
           =                       sunit=128    swidth=256 blks
  naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
  log      =internal               bsize=4096   blocks=521728, version=2
           =                       sectsz=4096  sunit=1 blks, lazy-count=1
  realtime =none                   extsz=4096   blocks=0, rtextents=0
  data size unchanged, skipping
  diskfarm:root:10:~> df -kh /mnt/4Traid5md/
  Filesystem      Size  Used Avail Use% Mounted on
  /dev/md0p1      7.3T  6.5T  863G  89% /mnt/4Traid5md

I've searched high and low and haven't found any indication of why I
shouldn't be able to grow as long as the partition is large enough, so
now it's time to dive into the mailing list :-)

Please bcc: me on your replies since I am not subscribed.  I promise to
follow up with my ongoing results :-)


TIA & HAND

:-D
-- 
David T-G
See http://justpickone.org/davidtg/email/
See http://justpickone.org/davidtg/tofu.txt


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xfs_growfs 3.2.1 on Knoppix-ADRIANE from Debian 7 does not grow
  2017-02-28  2:37 xfs_growfs 3.2.1 on Knoppix-ADRIANE from Debian 7 does not grow David T-G
@ 2017-02-28  2:52 ` Darrick J. Wong
  2017-02-28 14:01   ` SOLVED " David T-G
  0 siblings, 1 reply; 3+ messages in thread
From: Darrick J. Wong @ 2017-02-28  2:52 UTC (permalink / raw)
  To: David T-G; +Cc: linux-xfs

On Mon, Feb 27, 2017 at 09:37:24PM -0500, David T-G wrote:
> Hi, all --
> 
> I finally settled on xfs as the filesystem for my raid5 volume on my
> home computer even though I've been a longtime reiserfs lover :-)  But,
> hey, let's try something new.
> 
> I recently added another device to my md raid5 set and expanded the
> device from 8T to 12T, and now I want to grow the filesystem.  I remade
> the partition and we oughta be good to go:
> 
>   diskfarm:root:10:~> parted /dev/md0 print | egrep 'TB|Table|Sector'
>   Disk /dev/md0: 12.0TB
>   Sector size (logical/physical): 512B/4096B
>   Partition Table: gpt
>    1      1049kB  12.0TB  12.0TB  xfs          Linux filesystem
> 
> When I try xfs_growfs, however, nothing changes:
> 
>   diskfarm:root:10:~> df -kh /mnt/4Traid5md/
>   Filesystem      Size  Used Avail Use% Mounted on
>   /dev/md0p1      7.3T  6.5T  863G  89% /mnt/4Traid5md
>   diskfarm:root:10:~> xfs_growfs -d /mnt/4Traid5md/
>   meta-data=/dev/md0p1             isize=256    agcount=32, agsize=61043072 blks

Did parted tell the kernel to reread the partition table?

blockdev --getsz /dev/md0p1 will tell us the kernel's view of how big
md0p1 is right now.

unmount, blockdev --rereadpt /dev/md0, try again(?)

--D

>            =                       sectsz=4096  attr=2, projid32bit=1
>            =                       crc=0        finobt=0
>   data     =                       bsize=4096   blocks=1953377275, imaxpct=5
>            =                       sunit=128    swidth=256 blks
>   naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
>   log      =internal               bsize=4096   blocks=521728, version=2
>            =                       sectsz=4096  sunit=1 blks, lazy-count=1
>   realtime =none                   extsz=4096   blocks=0, rtextents=0
>   data size unchanged, skipping
>   diskfarm:root:10:~> df -kh /mnt/4Traid5md/
>   Filesystem      Size  Used Avail Use% Mounted on
>   /dev/md0p1      7.3T  6.5T  863G  89% /mnt/4Traid5md
> 
> I've searched high and low and haven't found any indication of why I
> shouldn't be able to grow as long as the partition is large enough, so
> now it's time to dive into the mailing list :-)
> 
> Please bcc: me on your replies since I am not subscribed.  I promise to
> follow up with my ongoing results :-)
> 
> 
> TIA & HAND
> 
> :-D
> -- 
> David T-G
> See http://justpickone.org/davidtg/email/
> See http://justpickone.org/davidtg/tofu.txt
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* SOLVED xfs_growfs 3.2.1 on Knoppix-ADRIANE from Debian 7 does not grow
  2017-02-28  2:52 ` Darrick J. Wong
@ 2017-02-28 14:01   ` David T-G
  0 siblings, 0 replies; 3+ messages in thread
From: David T-G @ 2017-02-28 14:01 UTC (permalink / raw)
  To: linux-xfs

Darrick, et al --

...and then Darrick J. Wong said...
% 
% On Mon, Feb 27, 2017 at 09:37:24PM -0500, David T-G wrote:
% > 
...
% >   diskfarm:root:10:~> parted /dev/md0 print | egrep 'TB|Table|Sector'
...
% >    1      1049kB  12.0TB  12.0TB  xfs          Linux filesystem
% > 
...
% >   diskfarm:root:10:~> xfs_growfs -d /mnt/4Traid5md/
% >   meta-data=/dev/md0p1             isize=256    agcount=32, agsize=61043072 blks
% 
% Did parted tell the kernel to reread the partition table?

Well, I thought that it did, since I kept seeing the new size plus saw
the larger partition, but I admit that I don't know, because ...


% 
% blockdev --getsz /dev/md0p1 will tell us the kernel's view of how big
% md0p1 is right now.
% 
% unmount, blockdev --rereadpt /dev/md0, try again(?)

  diskfarm:root:10:~> blockdev --getsz /dev/md0p1
  15627018207
  diskfarm:root:10:~> umount /mnt/4Traid5md
  diskfarm:root:10:~> blockdev --rereadpt /dev/md0
  diskfarm:root:10:~> mount /mnt/4Traid5md
  diskfarm:root:10:~> df -kh !$
  df -kh /mnt/4Traid5md
  Filesystem      Size  Used Avail Use% Mounted on
  /dev/md0p1      7.3T  6.5T  863G  89% /mnt/4Traid5md
  diskfarm:root:10:~> xfs_growfs -d !$
  xfs_growfs -d /mnt/4Traid5md
  meta-data=/dev/md0p1             isize=256    agcount=32, agsize=61043072 blks
           =                       sectsz=4096  attr=2, projid32bit=1
           =                       crc=0        finobt=0
  data     =                       bsize=4096   blocks=1953377275, imaxpct=5
           =                       sunit=128    swidth=256 blks
  naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
  log      =internal               bsize=4096   blocks=521728, version=2
           =                       sectsz=4096  sunit=1 blks, lazy-count=1
  realtime =none                   extsz=4096   blocks=0, rtextents=0
  data blocks changed from 1953377275 to 2930066043
  diskfarm:root:10:~> !df
  df -kh /mnt/4Traid5md
  Filesystem      Size  Used Avail Use% Mounted on
  /dev/md0p1       11T  6.5T  4.5T  59% /mnt/4Traid5md

WOO HOO!  That's awesome :-)  Thanks so much!

Now I'm off to read the blockdev man pages to figure out what magick thou
has given mee, good sirrah!


% 
% --D


Thanks again to all & HAND

:-D
-- 
David T-G
See http://justpickone.org/davidtg/email/
See http://justpickone.org/davidtg/tofu.txt


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-28 14:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-28  2:37 xfs_growfs 3.2.1 on Knoppix-ADRIANE from Debian 7 does not grow David T-G
2017-02-28  2:52 ` Darrick J. Wong
2017-02-28 14:01   ` SOLVED " David T-G

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.