Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How to increase ambari-agent disk space ??

avatar
Expert Contributor

How to increase ambari-agent disk space ??

1 ACCEPTED SOLUTION

avatar
Expert Contributor

i found the solution :

Create a new LVM physical volume in that new partition. pvcreate /dev/sdb Add the new physical volume to your volume group. vgextend VolGroup /dev/sdab Extend the logical volume containing the filesystem you want to extend. lvextend -l +100%FREE VolGroup/name_of_logical_volume resize2fs /name_of_logical_volume

View solution in original post

12 REPLIES 12

avatar
Expert Contributor

avatar
Not applicable
@Mourad Chahri

Looks like you have enough space inside the "/home" directory and /root is 99% filled.

So i will suggest you to move the "/var/lib/ambari-agent" to some other directory like "/home/ambari-agent" and then create a symlink "/var/lib/ambari-agent" which will point to "/home/ambari-agent" ... and then restart ambari agent. Similarly you can create a symlink for the "var/log/ambari-agent" directory as well.

avatar
Expert Contributor

i found the solution :

Create a new LVM physical volume in that new partition. pvcreate /dev/sdb Add the new physical volume to your volume group. vgextend VolGroup /dev/sdab Extend the logical volume containing the filesystem you want to extend. lvextend -l +100%FREE VolGroup/name_of_logical_volume resize2fs /name_of_logical_volume