[PLUG] 9 Tb only allocated 200 Gb
Chuck Hast
wchast at gmail.com
Tue Aug 25 18:19:07 UTC 2020
Going to look at it tonight but that looks logical. And it follows
the thread I was picking up in the sequence of commands.
On Tue, Aug 25, 2020 at 12:21 PM David Bridges <david at kisbdnb.info> wrote:
> On Tue, 2020-08-25 at 10:02 -0700, Tomas Kuchta wrote:
> > Could you boot Knoppix on the box and expand the partition with
> > gparted?
> >
> > Btw: output from: fdisk -l + /etc/fstab would be more useful than df
>
> The space did actually get allocated but only to ubuntu-vg (the volume
> group)
>
> > VG Size 9.09 TiB
> > PE Size 4.00 MiB
> > Total PE 2383615
> > Alloc PE / Size 51200 / 200.00 GiB
> > Free PE / Size 2332415 / <8.90 TiB
>
>
> The logical volume (ubuntu--vg-ubuntu--lv) was only allocated a small
> portion of the space.
>
> gparted, well any partitioning tool is not what you need here, you just
> need to extend the logical volume and then resize the file system.
>
> Resizing the logical volume and resizing the file system can be done
> while the file system is mounted. The commands below are examples of
> how you can do this.
>
> lvextend -l +2332415 /dev/mapper/ubuntu--vg-ubuntu--lv
>
> The command above will use up the rest of the free PE's (physical
> extents) Instead of using the -l you can use -L and specify a specific
> amount of disk space instead of the number of extents to extend the
> logical volume by.
>
> man lvextend is your friend.
>
>
> Once the logical volume has been extended you can then resize the file
> system using the following command.
>
> resize2fs -F -f /dev/mapper/ubuntu--vg-ubuntu--lv
>
> The command above assumes an ext2/ext3/ext4 file system. If your file
> system is something else you would need to use the appropriate commands
> to resize it.
>
> man resize2fs is also your friend.
>
> --
> David
>
>
> > -T
> >
> > On Tue, Aug 25, 2020, 06:22 Chuck Hast <wchast at gmail.com> wrote:
> >
> > > Folks,
> > > I just setup a Zoneminder server the machine has 9 Tb of
> > > drive but when I did the Ubuntu server setup it only allocated
> > > 200Gb. Here are some numbers:
> > >
> > > root at komodo:/home/kp4djt# df
> > > Filesystem 1K-blocks Used Available Use%
> > > Mounted
> > > on
> > > udev 18430452 0 18430452 0%
> > > /dev
> > > tmpfs 3694824 1444 3693380 1%
> > > /run
> > > /dev/mapper/ubuntu--vg-ubuntu--lv 205375464 11628640 183244680 6%
> > > /
> > > tmpfs 18474116 2222680 16251436 13%
> > > /dev/shm
> > > tmpfs 5120 0 5120 0%
> > > /run/lock
> > > tmpfs 18474116 0 18474116 0%
> > > /sys/fs/cgroup
> > > /dev/sda2 999320 106304 824204 12%
> > > /boot
> > > /dev/sda1 523248 7956 515292 2%
> > > /boot/efi
> > > /dev/loop1 56320 56320 0 100%
> > > /snap/core18/1880
> > > /dev/loop0 30720 30720 0 100%
> > > /snap/snapd/8542
> > > /dev/loop2 73088 73088 0 100%
> > > /snap/lxd/16099
> > > tmpfs 3694820 0 3694820 0%
> > > /run/user/1000
> > > /dev/loop3 56704 56704 0 100%
> > > /snap/core18/1885
> > > /dev/loop4 30720 30720 0 100%
> > > /snap/snapd/8790
> > > /dev/loop5 72320 72320 0 100%
> > > /snap/lxd/16922
> > > root at komodo:/home/kp4djt#
> > > /dev/mapper/ubuntu--vg-ubuntu--lv 205375464 11628640 183244680 6%
> > > /
> > > is the one of interest.
> > >
> > > Here is more info:
> > > root at komodo:/home/kp4djt# vgdisplay -v
> > > --- Volume group ---
> > > VG Name ubuntu-vg
> > > System ID
> > > Format lvm2
> > > Metadata Areas 1
> > > Metadata Sequence No 2
> > > VG Access read/write
> > > VG Status resizable
> > > MAX LV 0
> > > Cur LV 1
> > > Open LV 1
> > > Max PV 0
> > > Cur PV 1
> > > Act PV 1
> > > VG Size 9.09 TiB
> > > PE Size 4.00 MiB
> > > Total PE 2383615
> > > Alloc PE / Size 51200 / 200.00 GiB
> > > Free PE / Size 2332415 / <8.90 TiB
> > > VG UUID 799iwc-0lYp-Mh3T-I5JO-lPoW-vodP-rUtr7C
> > >
> > > This is where the video from the Zoneminder cameras will
> > > be stored. I need to increase the size of the Alloc PE / Size
> > > 51200 / 200.00 GiB
> > > to access most if not all of the remaining Free PE / Size
> > > 2332415 / <8.90 TiB
> > >
> > > I am not sure how to go about this one but need to expand
> > > that to where it will not fill up with camera video.I really only
> > > need 2 Tb of the space but might as well use as much as
> > > possible due to where the cameras are located.
> > >
> > > I have looked at the documentation but not sure what I am
> > > doing as I have never had to do this. I really do not want to
> > > mess this ZM install up as it is working like clockwork, and
> > > I want to keep it that way.
> > >
> > > Any guidance?
> > >
> > > --
> > >
> > > Chuck Hast -- KP4DJT --
> > > I can do all things through Christ which strengtheneth me.
> > > Ph 4:13 KJV
> > > Todo lo puedo en Cristo que me fortalece.
> > > Fil 4:13 RVR1960
> > > _______________________________________________
> > > PLUG: https://pdxlinux.org
> > > PLUG mailing list
> > > PLUG at pdxlinux.org
> > > http://lists.pdxlinux.org/mailman/listinfo/plug
> > >
> > _______________________________________________
> > PLUG: https://pdxlinux.org
> > PLUG mailing list
> > PLUG at pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
>
> _______________________________________________
> PLUG: https://pdxlinux.org
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
--
Chuck Hast -- KP4DJT --
I can do all things through Christ which strengtheneth me.
Ph 4:13 KJV
Todo lo puedo en Cristo que me fortalece.
Fil 4:13 RVR1960
More information about the PLUG
mailing list