Support Questions

Find answers, ask questions, and share your expertise

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
Super Guru
@Mourad Chahri

Are you looking to increase OS filesystem space?

Whats the issue you are facing ?

avatar
Expert Contributor

i have mount new disk so i add it to hdfs , but i have ambari-agent disk 50 gb so how to increase it ?

avatar
Expert Contributor

avatar
Super Guru

@Mourad Chahri Can you pass me the output of below command -

$df -h

$fdisk -l

Let me know which is ambari-agent disk within above command output and which is new disk.

avatar
Expert Contributor
[root@Manager ~]# df -h
Filesystem  Size  Used Avail Use% Mounted on
/dev/mapper/vg_manager-lv_root
  50G  47G  536M  99% /
tmpfs  3.8G  72K  3.8G  1% /dev/shm
/dev/sda1  477M  41M  411M  9% /boot
/dev/mapper/vg_manager-lv_home
  860G  9.6G  807G  2% /home


avatar
Super Guru
@Mourad Chahri

1. Is your HDFS disk is same as OS disk ? If so then if your OS disk is LVM then you can extend you can add new disk and extend OS disk.

2. If HDFS is using seperate disk [which is not OS disk] then you can easily mount new disk on a filesystem drive and make changes in config of HDFS to take new disk in effect.

3. If OS disk is not LVM as per point 1, then you can still mount the new disk on a filesystem and add the same disk into HDFS configs by creating "new config groups"

avatar
Expert Contributor

@Sagar Shimpi

fdisk -l

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00009ad3

   Device Boot      Start         End      Blocks   Id  System

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00037ccf

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64      121602   976248832   8e  Linux LVM

Disk /dev/mapper/vg_manager-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_manager-lv_swap: 8271 MB, 8271167488 bytes
255 heads, 63 sectors/track, 1005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_manager-lv_home: 937.7 GB, 937716350976 bytes
255 heads, 63 sectors/track, 114004 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


 

avatar
Expert Contributor
[root@Manager ~]# df -h
Filesystem  Size  Used Avail Use% Mounted on
/dev/mapper/vg_manager-lv_root
  50G  47G  536M  99% /
tmpfs  3.8G  72K  3.8G  1% /dev/shm
/dev/sda1  477M  41M  411M  9% /boot
/dev/mapper/vg_manager-lv_home
  860G  9.6G  807G  2% /home

avatar
Expert Contributor