Created 10-05-2016 11:14 AM
How to increase ambari-agent disk space ??
Created 10-17-2016 04:14 PM
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
Created 10-05-2016 11:16 AM
Created 10-05-2016 11:19 AM
i have mount new disk so i add it to hdfs , but i have ambari-agent disk 50 gb so how to increase it ?
Created 10-17-2016 10:57 AM
Created 10-17-2016 11:40 AM
@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.
Created 10-17-2016 11:56 AM
[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
Created 10-13-2016 07:46 AM
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"
Created 10-17-2016 11:57 AM
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
Created 10-17-2016 11:56 AM
[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
Created 10-17-2016 01:30 PM