Broke my OMV :(

  • Hello,


    I lost my admin webgui password ... so I changed it by omv-firstaid but it didnt't work :(


    Before that, I had a power cut ... I am afraid that my omv broke.


    But my root access works well.


    Please help !

  • I think I found my trouble ...


    Code
    root@omv:~# df




    Sys. de fichiers blocs de 1K Utilisé Disponible Uti% Monté sur
    udev 10240 0 10240 0% /dev
    tmpfs 616928 8644 608284 2% /run
    /dev/sda1 7736784 7338824 0 100% /
    tmpfs 1542316 4 1542312 1% /dev/shm
    tmpfs 5120 0 5120 0% /run/lock
    tmpfs 1542316 0 1542316 0% /sys/fs/cgroup
    /dev/md127 3845310464 2009735792 1835558288 53% /media/b5da5c85-55df-40fd-aea7-a783e49c72d2
    root@omv:~#



    Code
    root@omv:~# fdisk /dev/sda -l


    Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x000d326b



    Device Boot Start End Sectors Size Id Type
    /dev/sda1 * 2048 15988735 15986688 7,6G 83 Linux
    /dev/sda2 15990782 16775167 784386 383M 5 Extended
    /dev/sda5 15990784 16775167 784384 383M 82 Linux swap / Solaris



    I have 20Gb on /dev/sda ... so if I delete /dev/sda2 and /dev/sda5, I can extend my partition /dev/sda1 ?
    Is it correct ?


    I am not gonna loose all ?

    • Offizieller Beitrag

    I think I found my trouble ...

    du -d3 -BM / 2>/dev/null | sort -h -r | head -n10 | tail -n9 should help you find the big user.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thx for your answer


    I deleted swap.
    I deleted sda5 and sda2.


    I extented partition sda1 to 15GB.


    root@omv:~# du -d3 -BM / 2>/dev/null | sort -h -r | head -n10 | tail -n9
    1962545M /media/b5da5c85-55df-40fd-aea7-a783e49c72d2
    1962545M /media
    1819855M /media/b5da5c85-55df-40fd-aea7-a783e49c72d2/VIDEO
    140437M /media/b5da5c85-55df-40fd-aea7-a783e49c72d2/DATA
    4865M /var
    4771M /var/lib
    4627M /var/lib/plexmediaserver
    2255M /media/b5da5c85-55df-40fd-aea7-a783e49c72d2/plexmediaserver
    1246M /usr


    I dont understand my partition sda1 is only 7,6 GB ...


    root@omv:~# df
    Sys. de fichiers blocs de 1K Utilisé Disponible Uti% Monté sur
    udev 10240 0 10240 0% /dev
    tmpfs 616928 8520 608408 2% /run
    /dev/sda1 7736784 7019664 301072 96% /
    tmpfs 1542316 8 1542308 1% /dev/shm
    tmpfs 5120 0 5120 0% /run/lock
    tmpfs 1542316 0 1542316 0% /sys/fs/cgroup
    /dev/md127 3845310464 2009735792 1835558288 53% /media/b5da5c85-55df-40fd-aea7-a783e49c72d2



    root@omv:/dev# cat /etc/fstab
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    # / was on /dev/sda1 during installation
    UUID=28139d6c-3ffd-4335-bd25-291c64a6051f / ext4 errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    # UUID=b38db338-36a8-4085-b38d-c53b5f984295 none swap sw 0 0
    /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
    # >>> [openmediavault]
    UUID=b5da5c85-55df-40fd-aea7-a783e49c72d2 /media/b5da5c85-55df-40fd-aea7-a783e49c72d2 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    # <<< [openmediavault]

    • Offizieller Beitrag

    The du command also includes your data disk but it showed what I needed to see. Your plex database in /var/lib/plexmediaserver is very large and was filling your OS partition. I don't use plex but I don't understand why plex still puts the database in /var/lib/plexmediaserver when the plugin tells it somewhere else to put it. This is a newer change to plex that somehow needs to be fixed in the plugin. The fact that I don't use plex does not make me a good candidate to fix it.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Your plex database in /var/lib/plexmediaserver is very large and was filling your OS partition.

    This came up in another thread regarding plugins/addons for plex as they need to go in /var/lib for them to work, but @gderf pointed out a warning by doing this referencing the Plex database getting too large for the o/s drive.
    I know with Emby the 'cache' folder I have moved to one of my raids and I'm guessing there must be an option in Plex to do the same to the database folder/storage.

    • Offizieller Beitrag

    This came up in another thread regarding plugins/addons for plex as they need to go in /var/lib for them to work, but @gderf pointed out a warning by doing this referencing the Plex database getting too large for the o/s drive.

    The plugin sets the PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR variable which used to contain database (and plugins/addons I'm guessing) but it doesn't seem to now. Maybe there is another variable that needs to be set. If that is the case, the plugin would be easy to fix (I think). I just have no way to test.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    The plugin sets the PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR variable which used to contain database (and plugins/addons I'm guessing) but it doesn't seem to now. Maybe there is another variable that needs to be set. If that is the case, the plugin would be easy to fix (I think). I just have no way to test.

    What I did was install the plex plugin on my own omv just to see the directory listing...as I had found a reference on where the plugins/addons are supposed to go...the user concerned was adding them into an entirely different plexmediaserver directory, but when added under /var/lib etc it worked....without installing plex again I can't remember where he was adding them.

  • ok Plex is an issue but my initial trouble is not this one ...


    I simply asked how to recover my space on sda.


    The Swap partition was blocking any extended. So I deleted it.
    And now I should recover this space freeing.


    So in fact I have 4 HD.


    1 for OS (20GB - sda).
    3 for DATA (sdb, sdc, sdd)


    root@omv:~# fdisk -l



    Disk /dev/sdb: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk /dev/sdc: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x000d326b



    Device Boot Start End Sectors Size Id Type
    /dev/sda1 * 2048 29296875 29294828 14G 83 Linux



    Disk /dev/sdd: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: dos
    Disk identifier: 0xefd9a1b4



    Device Boot Start End Sectors Size Id Type
    /dev/sdd1 256 488378111 488377856 232,9G 7 HPFS/NTFS/exFAT



    Disk /dev/md127: 3,7 TiB, 4000528203776 bytes, 7813531648 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 524288 bytes / 1048576 bytes


    And now I would like extended my / partition.
    How to do ?

    • Offizieller Beitrag

    ok Plex is an issue but my initial trouble is not this one ...


    I simply asked how to recover my space on sda.

    excuse me for not helping correctly... It helps me to know what is filling drives because extending sda is normally not needed and deleting swap is not a good idea unless you have a lot of memory (probably never a good idea with plex installed). If you still think you want to extend the partition, you can't do this live and need to boot gparted live on the system (assuming it is not an arm system).


    Also, if you get an error posting (especially long posts), don't keep trying to post. The spam filter is causing this and your post is most likely in the moderation queue.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!