Re: Troubles expanding file system.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I realized I was still on receiving the daily digest format last night, so I have probably screwed up the threading on this now.  If you cc me directly maybe I can maintain the future threading.

Ok, looking at Parted it looks like the resize (or resizepart) command will be what I will need.  But that doesn't appear to help recognize the expanded disk, so I think I need something before that.  That is what I thought the echo 1 > rescan would do for me.

I will look more into fdisk to understand the capabilities there.  I am going to take advantage of the holiday weekend in a few days to take care of this so I am trying to understand all of the options available to me before diving into the task.

In response to Gordon also, I did rescan the drive as suggested and got the same results; no such file or directory.  So then I did a search for the rescan file to see where it was present.  Found it in a few locations, but this one looks to be the one that I would want to try.

/sys/devices/pci0000:00/0000:00:01.1/host1/target1:0:0/1:0:0:0/

The rescan file was also located in just:  /sys/bus/pci  but don't know if that would do the job for the specific device.

Thanks for everyone's input.  Very helpful.  More suggestions are welcome while I am still reading up on options.

Jeff



Date: Wed, 1 Sep 2021 13:15:37 -0400
From: Stephen John Smoogen<smooge@xxxxxxxxx>
To: CentOS mailing list<centos@xxxxxxxxxx>
Subject: Re:  Troubles expanding file system.
Message-ID:
	<CANnLRdhhRkMagTcZ+eqALoteYcXD26nMrHzv7L9F1A35jGS=3g@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="UTF-8"

On Wed, 1 Sept 2021 at 12:42, Jeff Boyce<jboyce@xxxxxxxxxxxxxxx>  wrote:

Greetings -

      I have tried posting this four times now, from two different email
addresses (on the 25th, 27th, 30th, and 31st) and it never appeared.  I
don't see it in the archives, so it appears to be getting dropped in
transition for some reason.  I am not getting messages from the email
system saying it is undeliverable, or is bounced; I am sending as plain
text, not HTML, I stripped off my signature.  If this makes it through,
someone please give me a clue why the others might not have.  But that
is not as important as the real issue that I am trying to get addressed
below.  Thanks for any assistance.

      I have a Dell PowerEdge server with a CentOS KVM host (Earth) with
one CentOS guest (Sequoia) that I am trying to expand the partition and
filesystem on.  I have LVM logical volumes on the host system (Earth),
which are used as devices/partitions on the guest system (Sequoia).  In
this particular situation I have successfully extended the logical
volume (lv_SeqEco) on Earth from 500GB to 700GB.

1.  Checking the disk information (lsblk) on Earth shows that the
logical volume (lv_SeqEco) is now listed as 700GB.

2.  Checking disk information (lsblk) on Sequoia shows that the disk
/dev/vde is still listed as 500GB, and partition /dev/vde1 where the
mount point /ecosystem is located is also listed as 500GB.

3.  I had tried using the resize2fs command to expand the filesystem on
/dev/vde1, but it returned with the result that there was nothing to
do.  Which makes sense now after I checked the disk information, since
/dev/vde on Sequoia has not increased from 500GB to 700GB.

Thanks for the long list of items of what you have done. In Fedora
Infrastructure, we used this method to resize images in the past
https://pagure.io/infra-docs/blob/main/f/docs/sysadmin-guide/sops/guestdisk.rst

The guest system usually needs to have the `fdisk` , `gdisk` or
`parted` commands rerun to resize the disk to its new size.


4.  On previous occasions when I have done this task, I would just start
GParted on Sequoia and use the GUI to expand the partition and
filesystem.  A real quick and simple solution.

5.  The problem I have now is that the VGA adapter on my server has died
and I have no graphical output to the attached monitor, nor to the iDrac
console display.  So I am stuck doing this entirely by the command line
while logged into the system remotely.

6.  I suspect that I need to rescan the devices on Sequoia so that it
recognizes the increased space that has been allocated from the extended
the logical volume.  But when I did that (command below) it came back
with a no such file or directory.

echo 1 > /sys/class/block/vde1/device/rescan

Not sure that would do anything.


7.  This server is being retired in the next few months, but I need this
additional space prior to migrating to the new system. Can someone give
me some guidance on what I am missing in this sequence?

Let me know if I haven't been clear enough in the explanation of my
systems and objective.  Thanks.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux