* Grow ext4 filesystem on mounted device
@ 2020-07-02 19:18 Alok Jain
2020-07-02 19:29 ` Andreas Dilger
0 siblings, 1 reply; 4+ messages in thread
From: Alok Jain @ 2020-07-02 19:18 UTC (permalink / raw)
To: linux-ext4, tytso, Andreas Dilger
Hi Experts,
I want to grow the ext4 file system on mounted device by running
resize2fs utility but it fails, same works in case of unmounted FS
with additional invocation of e2fsck utility.
This is what i am doing
1)Rescanning the device
echo "1" | sudo tee /sys/block/sdd/device/rescan
2) Extending the partition
growpart /dev/sdd 1
3) resizing the file system
resize2fs /dev/sdd1
resize2fs 1.43-WIP (20-Jun-2013)
The filesystem is already 43253499 blocks long. Nothing to do!
parted -s /dev/sdd1 print free
Model: Unknown (unknown)
Disk /dev/sdd1: 177GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 177GB 177GB ext4
Any help?
Thanks,
Alok
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Grow ext4 filesystem on mounted device
2020-07-02 19:18 Grow ext4 filesystem on mounted device Alok Jain
@ 2020-07-02 19:29 ` Andreas Dilger
2020-07-02 19:34 ` Alok Jain
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Dilger @ 2020-07-02 19:29 UTC (permalink / raw)
To: Alok Jain; +Cc: linux-ext4, tytso
On Jul 2, 2020, at 13:18, Alok Jain <jain.alok103@gmail.com> wrote:
>
> Hi Experts,
>
> I want to grow the ext4 file system on mounted device by running
> resize2fs utility but it fails, same works in case of unmounted FS
> with additional invocation of e2fsck utility.
>
> This is what i am doing
>
> 1)Rescanning the device
> echo "1" | sudo tee /sys/block/sdd/device/rescan
> 2) Extending the partition
> growpart /dev/sdd 1
> 3) resizing the file system
> resize2fs /dev/sdd1
> resize2fs 1.43-WIP (20-Jun-2013)
> The filesystem is already 43253499 blocks long. Nothing to do!
What does "grep sdd1 /proc/partitions" show? Is the kernel
aware of the larger partition size?
> parted -s /dev/sdd1 print free
> Model: Unknown (unknown)
> Disk /dev/sdd1: 177GB
> Sector size (logical/physical): 512B/4096B
> Partition Table: loop
>
> Number Start End Size File system Flags
> 1 0.00B 177GB 177GB ext4
>
> Any help?
>
> Thanks,
> Alok
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Grow ext4 filesystem on mounted device
2020-07-02 19:29 ` Andreas Dilger
@ 2020-07-02 19:34 ` Alok Jain
2020-07-02 19:39 ` Alok Jain
0 siblings, 1 reply; 4+ messages in thread
From: Alok Jain @ 2020-07-02 19:34 UTC (permalink / raw)
To: Andreas Dilger; +Cc: linux-ext4, tytso
Thanks Andreas,
Device has only one partition, I also ran partprobe post growpart but
still no luck :(
# grep sdd1 /proc/partitions
8 49 173013999 sdd1
Thanks,
Alok
On Fri, Jul 3, 2020 at 12:59 AM Andreas Dilger <adilger@dilger.ca> wrote:
>
> On Jul 2, 2020, at 13:18, Alok Jain <jain.alok103@gmail.com> wrote:
> >
> > Hi Experts,
> >
> > I want to grow the ext4 file system on mounted device by running
> > resize2fs utility but it fails, same works in case of unmounted FS
> > with additional invocation of e2fsck utility.
> >
> > This is what i am doing
> >
> > 1)Rescanning the device
> > echo "1" | sudo tee /sys/block/sdd/device/rescan
> > 2) Extending the partition
> > growpart /dev/sdd 1
> > 3) resizing the file system
> > resize2fs /dev/sdd1
> > resize2fs 1.43-WIP (20-Jun-2013)
> > The filesystem is already 43253499 blocks long. Nothing to do!
>
> What does "grep sdd1 /proc/partitions" show? Is the kernel
> aware of the larger partition size?
>
> > parted -s /dev/sdd1 print free
> > Model: Unknown (unknown)
> > Disk /dev/sdd1: 177GB
> > Sector size (logical/physical): 512B/4096B
> > Partition Table: loop
> >
> > Number Start End Size File system Flags
> > 1 0.00B 177GB 177GB ext4
> >
> > Any help?
> >
> > Thanks,
> > Alok
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Grow ext4 filesystem on mounted device
2020-07-02 19:34 ` Alok Jain
@ 2020-07-02 19:39 ` Alok Jain
0 siblings, 0 replies; 4+ messages in thread
From: Alok Jain @ 2020-07-02 19:39 UTC (permalink / raw)
To: Andreas Dilger; +Cc: linux-ext4, tytso
This is what I found for sdd, looks like growpart didnt grow partition
of mounted device
grep sdd /proc/partitions
8 48 180355072 sdd
8 49 173013999 sdd1
Thanks,
Alok
On Fri, Jul 3, 2020 at 1:04 AM Alok Jain <jain.alok103@gmail.com> wrote:
>
> Thanks Andreas,
>
> Device has only one partition, I also ran partprobe post growpart but
> still no luck :(
>
> # grep sdd1 /proc/partitions
> 8 49 173013999 sdd1
>
> Thanks,
> Alok
>
> On Fri, Jul 3, 2020 at 12:59 AM Andreas Dilger <adilger@dilger.ca> wrote:
> >
> > On Jul 2, 2020, at 13:18, Alok Jain <jain.alok103@gmail.com> wrote:
> > >
> > > Hi Experts,
> > >
> > > I want to grow the ext4 file system on mounted device by running
> > > resize2fs utility but it fails, same works in case of unmounted FS
> > > with additional invocation of e2fsck utility.
> > >
> > > This is what i am doing
> > >
> > > 1)Rescanning the device
> > > echo "1" | sudo tee /sys/block/sdd/device/rescan
> > > 2) Extending the partition
> > > growpart /dev/sdd 1
> > > 3) resizing the file system
> > > resize2fs /dev/sdd1
> > > resize2fs 1.43-WIP (20-Jun-2013)
> > > The filesystem is already 43253499 blocks long. Nothing to do!
> >
> > What does "grep sdd1 /proc/partitions" show? Is the kernel
> > aware of the larger partition size?
> >
> > > parted -s /dev/sdd1 print free
> > > Model: Unknown (unknown)
> > > Disk /dev/sdd1: 177GB
> > > Sector size (logical/physical): 512B/4096B
> > > Partition Table: loop
> > >
> > > Number Start End Size File system Flags
> > > 1 0.00B 177GB 177GB ext4
> > >
> > > Any help?
> > >
> > > Thanks,
> > > Alok
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-07-02 19:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-02 19:18 Grow ext4 filesystem on mounted device Alok Jain
2020-07-02 19:29 ` Andreas Dilger
2020-07-02 19:34 ` Alok Jain
2020-07-02 19:39 ` Alok Jain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox