Ali goes to buy ECS configuration optimization instructions

1. Check the hard disk mount

[VM_58_118_centos the root @ ~] # lsblk 
NAME the MAJ: the TYPE MOUNTPOINT the RO SIZE MIN RM 
VDA 253: 0 0 0 8G Disk 
└─vda1 253: Part. 1 0 0 8G / 
VDB 253: 16 1000G 0 0 Disk 
└─vdb1 253:. 17 part 1000G 0 0 / Data 
VDC 253: 32 0 0 2G Disk [the SWAP] Swap partition at run time the memory system is not enough, a portion of the physical memory space is released, for the use of the currently running program. Those data space may be released from a number of long time no operation procedures, which were released Swap space is temporarily saved to the partition, until those programs to run, and then restore saved from Swap partition into memory


 

2, mount the disk:

[root@izbp18dv3a3metugyd02qxz 03]# vim /etc/fstab
#
# /etc/fstab
# Created by anaconda on Thu Aug 17 07:38:21 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=976105f5-f402-456c-aadd-50de49ff88f9 /                       ext4    defaults        1 1
/dev/vdb /data ext4 defaults 1 2

[root@izbp18dv3a3metugyd02qxz 03]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT vda 253:0 0 60G 0 disk └─vda1 253:1 0 60G 0 part / vdb 253:16 0 1000G 0 disk /data

 

3, purchasing data disk optimization and precautions:

 
  
 
 
  
 
 
  

 

Guess you like

Origin www.cnblogs.com/hnhycnlc888/p/12603601.html