查看几块硬盘
Lsblk
cd /mnt
mkdir sda
挂载硬盘mount /dev/sda /mnt/sda
mount -a挂载全部
du -smh *|grep 'G' 查看磁盘占用
df -h
du -h --max-depth=1
[root@tracing047~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
sdb 8:16 0 931.5G 0 disk
sdc 8:32 0 931.5G 0 disk
sdd 8:48 0 931.5G 0 disk
sde 8:64 0 931.5G 0 disk
sdf 8:80 0 931.5G 0 disk
sdg 8:96 0 931.5G 0 disk
sdh 8:112 0 931.5G 0 disk
sdi 8:128 0 447.1G 0 disk
├─sdi1 8:129 0 500M 0 part /boot
└─sdi2 8:130 0 446.7G 0 part
├─vg_tracing047-lv_root (dm-0) 253:0 0 50G 0 lvm /
├─vg_tracing047-lv_swap (dm-1) 253:1 0 4G 0 lvm [SWAP]
└─vg_tracing047-lv_home (dm-2) 253:2 0 392.7G 0 lvm /home
[root@tracing047~]# cd /mnt/
[root@tracing047mnt]# mkdir sda
[root@tracing047mnt]# mount /dev/sda /mnt/sda
[root@tracing047mnt]# mkdir sdb
[root@tracing047mnt]# mkdir sdc
[root@tracing047mnt]# mkdir sdd
[root@tracing047mnt]# mkdir sde
[root@tracing047mnt]# mkdir sdf
[root@tracing047mnt]# mkdir sdg
[root@tracing047mnt]# mkdir sdh
[root@tracing047mnt]# mount /dev/sdb /mnt/sdb
[root@tracing047mnt]# mount /dev/sdc /mnt/sdc
[root@tracing047mnt]# mount /dev/sdd /mnt/sdd
[root@tracing047mnt]# mount /dev/sde /mnt/sde
[root@tracing047mnt]# mount /dev/sdf /mnt/sdf
[root@tracing047mnt]# mount /dev/sdg /mnt/sdg
[root@tracing047mnt]# mount /dev/sdh /mnt/sdh
mount:you must specify the filesystem type
[root@tracing047mnt]# ls
sda sdb sdc sdd sde sdf sdg sdh
[root@tracing047mnt]# mkfs.ext4 /dev/sdh
mke2fs1.41.12 (17-May-2010)
/dev/sdhis entire device, not just one partition!
Proceedanyway? (y,n) y
Filesystemlabel=
OS type:Linux
Blocksize=4096 (log=2)
Fragmentsize=4096 (log=2)
Stride=0blocks, Stripe width=0 blocks
61054976inodes, 244190646 blocks
12209532blocks (5.00%) reserved for the super user
Firstdata block=0
Maximumfilesystem blocks=4294967296
7453block groups
32768blocks per group, 32768 fragments per group
8192inodes per group
Superblockbackups stored on blocks:
32768, 98304, 163840, 229376, 294912,819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000,23887872, 71663616, 78675968,
102400000, 214990848
Writinginode tables: done
Creatingjournal (32768 blocks): done
Writingsuperblocks and filesystem accounting information: done
Thisfilesystem will be automatically checked every 23 mounts or
180 days,whichever comes first. Use tune2fs -c or-i to override.
[root@tracing024~/impala-tpcds-kit]#df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_tracing024-lv_root
50G 26G 22G 54% /
tmpfs 63G 72K 63G 1% /dev/shm
/dev/sda1 485M 38M 423M 9% /boot
/dev/mapper/vg_tracing024-lv_home
314G 112G 186G 38% /home
/dev/sdb1 688G 77G 577G 12% /srv/node/sdb1
/dev/sdc1 688G 6.1G 647G 1% /srv/node/sdc1
/dev/sdd1 688G 6.1G 647G 1% /srv/node/sdd1
/dev/sde1 688G 6.2G 647G 1% /srv/node/sde1
/dev/sdf1 688G 7.0G 646G 2% /srv/node/sdf1
/dev/sdg1 688G 7.8G 646G 2% /srv/node/sdg1
/dev/sdh1 688G 8.4G 645G 2% /srv/node/sdh1
/dev/sdi1 688G 8.0G 645G 2% /srv/node/sdi1
cm_processes 63G 14M 63G 1% /var/run/cloudera-scm-agent/process
[root@tracing024~/impala-tpcds-kit]#