安装 Lab平台,CDH5安装失败, 查看/var/log/ 发现/usr目录太小。

[root@master usr]# cat /var/log/cloudera-manager-installer/3.install-cloudera-manager-server.log 
Transaction Check Error:
  installing package cloudera-manager-daemons-5.1.1-1.cm511.p0.82.el6.x86_64 needs 436MB on the /usr filesystem
  installing package cloudera-manager-server-5.1.1-1.cm511.p0.82.el6.x86_64 needs 436MB on the /usr filesystem
Error Summary
-------------
Disk Requirements:
At least 436MB more space needed on the /usr filesystem.
[root@master usr]# df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda3        5039616  368840   4414776   8% /
tmpfs             957244       0    957244   0% /dev/shm
/dev/sda1         148742   34081    106981  25% /boot
/dev/sda2        9576252 1241932   7847872  14% /home
/dev/sda8         805292   23976    740408   4% /tmp
/dev/sda5        3023760 2764008    106152  97% /usr
/dev/sda7        1007896  636188    320508  67% /var

新加一块5G空间虚拟硬盘,重启,切换到root模式,看到sdb

[root@master usr]# fdisk -l

Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 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: 0x000a7059

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          20      153600   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              20        1231     9729024   83  Linux
/dev/sda3            1231        1868     5120000   83  Linux
/dev/sda4            1868        2611     5967872    5  Extended
/dev/sda5            1869        2251     3072000   83  Linux
/dev/sda6            2251        2382     1048576   82  Linux swap / Solaris
/dev/sda7            2382        2509     1024000   83  Linux
/dev/sda8            2509        2611      818176   83  Linux

Disk /dev/sdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 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

分区,完了用fdisk –l能看到

[root@master usr]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x2fa47673.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will