1 Reply Latest reply on Dec 9, 2019 12:17 AM by scott28tt

    vCenter/PSC (VCSA) -/storage/archive 100% usage -FIX

    ramu78 Lurker

      1. Performed Clean up task on both the partitions by performing following commands.

      Log in to the vCenter Server Appliance or PSC console as root user.

      Run this command to enable access the Bash shell:

      shell.set --enabled true

      Type shell and press Enter.

      VMware vCenter Server Appliance 6.7.0.40000

       

       

      Type: vCenter Server with an external Platform Services Controller

       

       

      Connected to service

       

       

          * List APIs: "help api list"

          * List Plugins: "help pi list"

          * Launch BASH: "shell"

       

       

      Command> shell

      Shell access is granted to root

       

      #### check disk space######

       

      root@lotus-vc01 [ ~ ]# df -h

      Filesystem                                Size  Used Avail Use% Mounted on

      devtmpfs                                   12G     0   12G   0% /dev

      tmpfs                                      12G  944K   12G   1% /dev/shm

      tmpfs                                      12G  660K   12G   1% /run

      tmpfs                                      12G     0   12G   0% /sys/fs/cgroup

      /dev/sda3                                  11G  6.8G  3.3G  68% /

      tmpfs                                      12G  1.3M   12G   1% /tmp

      /dev/mapper/log_vg-log                     25G  3.8G   20G  16% /storage/log

      /dev/sda1                                 120M   34M   78M  31% /boot

      /dev/mapper/autodeploy_vg-autodeploy       25G   47M   24G   1% /storage/autodeploy

      /dev/mapper/core_vg-core                   50G  501M   47G   2% /storage/core

      /dev/mapper/imagebuilder_vg-imagebuilder   25G   44M   24G   1% /storage/imagebuilder

      /dev/mapper/updatemgr_vg-updatemgr        138G  4.8G  127G   4% /storage/updatemgr

      /dev/mapper/seat_vg-seat                  542G   37G  478G   8% /storage/seat

      /dev/mapper/netdump_vg-netdump            9.8G   23M  9.2G   1% /storage/netdump

      /dev/mapper/dblog_vg-dblog                 25G  1.3G   22G   6% /storage/dblog

      /dev/mapper/db_vg-db                       25G  1.2G   23G   5% /storage/db

      /dev/mapper/archive_vg-archive            197G   0G   197G  100% /storage/archive

       

      ####Navigate to the archive directory and check the files.######

      root@lotus-vc01 #cd  /storage/archive/vpostgres

      root@lotus-vc01 [ /storage/archive/vpostgres ]# ls -ltr

      total 96349804

      -rw------- 1 vpostgres users 5122001 Oct  9 10:07 00000001000001AF00000018.gz

      -rw------- 1 vpostgres users 4652216 Oct  9 10:11 00000001000001AF00000019.gz

      -rw------- 1 vpostgres users 4768815 Oct  9 10:16 00000001000001AF0000001A.gz

      -rw------- 1 vpostgres users 3771873 Oct  9 10:20 00000001000001AF0000001B.gz

      -rw------- 1 vpostgres users 4464841 Oct  9 10:25 00000001000001AF0000001C.gz

      -rw------- 1 vpostgres users 4479325 Oct  9 10:30 00000001000001AF0000001D.gz

      -rw------- 1 vpostgres users 3989709 Oct  9 10:30 00000001000001AF0000001E.gz

      -rw------- 1 vpostgres users 4724582 Oct  9 10:37 00000001000001AF0000001F.gz

      -rw------- 1 vpostgres users 4636883 Oct  9 10:43 00000001000001AF00000020.gz

      -rw------- 1 vpostgres users 4822469 Oct  9 10:45 00000001000001AF00000021.gz

      -rw------- 1 vpostgres users 3767893 Oct  9 10:50 00000001000001AF00000022.gz

       

      #### find files older than 60 Days####

       

      root@lotus-vc01 [ ~ ]# find * -mtime +60

      -rw------- 1 vpostgres users 5122001 Oct  9 10:07 00000001000001AF00000018.gz

      -rw------- 1 vpostgres users 4652216 Oct  9 10:11 00000001000001AF00000019.gz

      -rw------- 1 vpostgres users 4768815 Oct  9 10:16 00000001000001AF0000001A.gz

      -rw------- 1 vpostgres users 3771873 Oct  9 10:20 00000001000001AF0000001B.gz

      -rw------- 1 vpostgres users 4464841 Oct  9 10:25 00000001000001AF0000001C.gz

      -rw------- 1 vpostgres users 4479325 Oct  9 10:30 00000001000001AF0000001D.gz

       

       

      #### To remove the files older than 60 Days####

       

      root@lotus-vc01 [ ~ ]# find * -mtime +60 -exec rm {} \;

       

      #### check the space####

       

      root@lotus-vc01 [ ~ ]# df -h

      Filesystem                                Size  Used Avail Use% Mounted on

      devtmpfs                                   12G     0   12G   0% /dev

      tmpfs                                      12G  944K   12G   1% /dev/shm

      tmpfs                                      12G  660K   12G   1% /run

      tmpfs                                      12G     0   12G   0% /sys/fs/cgroup

      /dev/sda3                                  11G  6.8G  3.3G  68% /

      tmpfs                                      12G  1.3M   12G   1% /tmp

      /dev/mapper/log_vg-log                     25G  3.8G   20G  16% /storage/log

      /dev/sda1                                 120M   34M   78M  31% /boot

      /dev/mapper/autodeploy_vg-autodeploy       25G   47M   24G   1% /storage/autodeploy

      /dev/mapper/core_vg-core                   50G  501M   47G   2% /storage/core

      /dev/mapper/imagebuilder_vg-imagebuilder   25G   44M   24G   1% /storage/imagebuilder

      /dev/mapper/updatemgr_vg-updatemgr        138G  4.8G  127G   4% /storage/updatemgr

      /dev/mapper/seat_vg-seat                  542G   37G  478G   8% /storage/seat

      /dev/mapper/netdump_vg-netdump            9.8G   23M  9.2G   1% /storage/netdump

      /dev/mapper/dblog_vg-dblog                 25G  1.3G   22G   6% /storage/dblog

      /dev/mapper/db_vg-db                       25G  1.2G   23G   5% /storage/db

      /dev/mapper/archive_vg-archive            197G   92G   96G  49% /storage/archive

       

      #####issue got fixed#######