Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Ambari - clean files

avatar
Rising Star

I want to upgrade Ambari, but /var directory completely full.

Filesystem Type Size Used Avail Use% Mounted on

/dev/mapper/rootvg-varfs xfs 9.0G 8.4G 704M 93% /var

Can i delete (old) and backups files in /var/lib/ambari-server/resources/ safely?

/var/lib/ambari-server/resources -------------------------------------------------------------------------------------------------------------------------------------------
/..
3.9 GiB [##########] /views
282.1 MiB [ ] /mpacks_22_01_18_00_22.old
228.5 MiB [ ] /mpacks
228.4 MiB [ ] /mpacks_21_12_17_18_31.old
191.0 MiB [ ] /stacks_22_01_18_00_22.old
190.8 MiB [ ] /stacks
68.6 MiB [ ] /stacks_21_12_17_18_31.old
48.1 MiB [ ] /stacks_02_08_17_12_01.old
36.6 MiB [ ] /stacks_02_08_17_12_15.old
21.0 MiB [ ] /common-services_21_12_17_18_31.old
18.6 MiB [ ] /common-services_02_08_17_12_01.old
17.4 MiB [ ] /common-services_22_01_18_00_22.old
17.3 MiB [ ] /common-services
10.9 MiB [ ] /common-services_02_08_17_12_15.old

/var/lib/ambari-server/resources/views -------------------------------------------------------------------------------------------------------------------------------------------------------
/..
1.6 GiB [##########] /backups
945.0 MiB [##### ] /work

1 ACCEPTED SOLUTION

avatar
Master Mentor
@Ruslan Fialkovsky

Yes, the mentioned ".old" directories can be deleted.

Regarding the "/var/lib/ambari-server/resources/views/work" directory , Even if we delete this directory when we will restart the ambari server again then this directory will be created automatically, Because ambari server extracts the views (jars) into this directory so this directory will be again filled with the extracted views apps.

However it will be good to see if you can increase the "/var" directory space.

View solution in original post

1 REPLY 1

avatar
Master Mentor
@Ruslan Fialkovsky

Yes, the mentioned ".old" directories can be deleted.

Regarding the "/var/lib/ambari-server/resources/views/work" directory , Even if we delete this directory when we will restart the ambari server again then this directory will be created automatically, Because ambari server extracts the views (jars) into this directory so this directory will be again filled with the extracted views apps.

However it will be good to see if you can increase the "/var" directory space.