I just slapped together another Zoneminder server, this time I figured out where Ubuntu is dropping the ball with the PE size, and caught it. They are not too clear on it and unless you are watching you will get stuck with a lot less space than you had planned.
Neighbor likes my zoneminder system so I built one up for him, now I have another one that wants the same. Since we all live on the same street we are going to take advantage of the fact that you can have one ZM box inform a 2nd one that something moving is headed it's way so the 2nd one is ready to capture. Got to look more into it but we are going to play with it here. On Tue, Aug 25, 2020 at 2:49 PM David Bridges <[email protected]> wrote: > I'm glad that it worked for you. Always happy to help. > > -- > David > > On Tue, 2020-08-25 at 14:41 -0500, Chuck Hast wrote: > > That did it, I now have all of my disk space I need for video > > storage. > > Again, thank you very much. > > > > On Tue, Aug 25, 2020 at 1:19 PM Chuck Hast <[email protected]> wrote: > > > > > 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 <[email protected]> > > > 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 <[email protected]> > > > > > 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@komodo:/home/kp4djt# df > > > > > > Filesystem 1K-blocks Used > > > > > > Available Use% > > > > > > Mounted > > > > > > on > > > > > > udev 18430452 0 1843045 > > > > > > 2 0% > > > > > > /dev > > > > > > tmpfs 3694824 1444 369338 > > > > > > 0 1% > > > > > > /run > > > > > > /dev/mapper/ubuntu--vg-ubuntu--lv 205375464 11628640 > > > > > > 183244680 6% > > > > > > / > > > > > > tmpfs 18474116 2222680 1625143 > > > > > > 6 13% > > > > > > /dev/shm > > > > > > tmpfs 5120 0 512 > > > > > > 0 0% > > > > > > /run/lock > > > > > > tmpfs 18474116 0 1847411 > > > > > > 6 0% > > > > > > /sys/fs/cgroup > > > > > > /dev/sda2 999320 106304 82420 > > > > > > 4 12% > > > > > > /boot > > > > > > /dev/sda1 523248 7956 51529 > > > > > > 2 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 369482 > > > > > > 0 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@komodo:/home/kp4djt# > > > > > > /dev/mapper/ubuntu--vg-ubuntu--lv 205375464 11628640 > > > > > > 183244680 6% > > > > > > / > > > > > > is the one of interest. > > > > > > > > > > > > Here is more info: > > > > > > root@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 > > > > > > [email protected] > > > > > > http://lists.pdxlinux.org/mailman/listinfo/plug > > > > > > > > > > > _______________________________________________ > > > > > PLUG: https://pdxlinux.org > > > > > PLUG mailing list > > > > > [email protected] > > > > > http://lists.pdxlinux.org/mailman/listinfo/plug > > > > > > > > _______________________________________________ > > > > PLUG: https://pdxlinux.org > > > > PLUG mailing list > > > > [email protected] > > > > 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 > > > > > > > > _______________________________________________ > PLUG: https://pdxlinux.org > PLUG mailing list > [email protected] > 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 _______________________________________________ PLUG: https://pdxlinux.org PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
