An example of logical volume management script

pvcreate /dev/sdc

vgcreate hadoopvg /dev/sdc

lvcreate -L 60G -n hadooplv hadoopvg

lvcreate -l 100%FREE -n reply hadoopvg

mkfs.xfs /dev/hadoopvg/hadooplv

mkfs.xfs /dev/hadoopvg/repolv

mkdir /{hadoop,repo}

mount /dev/hadoopvg/hadooplv /hadoop

mount /dev/hadoopvg/repolv /repo


How to solve the issue of ambari-agent cannot register ambari-server with error – SSLError: Failed to connect…

1. On Ambari Server “/etc/amabri-server/conf/” file add the following protocols:


then restart ambari-server by: systemctl restart ambari-server

2. Add the following option to security section in “/etc/amabri-agent/conf/ambari-agent.ini” in all the hosts in the cluster


and restart ambari-agent by: systemctl restart ambari-agent