Docker MySQL container report too many connections triggered by LIUNX disk expansion operation

Source: Internet
Author: User

  • Symptoms every time you remove the MySQL container restart no two minutes and report the wrong title
  • df-h command to view the application of each mount space discovery Root home var three files directory the space is full.
  • Baidu on the Internet a bit LIUNX disk expansion operation, the fdisk-l command finally found that the machine has a piece of 270 of the disk is not mounted
  • The PV is created and the disk/dev/xvdb is created as a system PV with the Pvcreate command
    [[email protected] home] # Pvcreate/dev/xvdb " /dev/xvdb " successfully created
  • The
  • adds pv/dev/xvdb to the volume group Volgroup. The disk has been added to the Volgroup, and the volume group has increased its space by 270G. Use the command vgextend volgroup/dev/xvdb
     [[email protected] Home]#   vgextend volgroup/dev/xvdb  Volume group  " volgroup  "   successfully Extended[root  @localhost home]#   VGS    VG #  PV #LV #SN Attr vsize vfree  VolGroup 2 3 0 wz--n-265.50g 0 
  • To/Add 10G of space. Using the command lvextend-l +10g/dev/mapper/volgroup-lv_root
    [[email protected] home] # lvextend-l +10g  /dev/mapper/volgroup-lv_root  Size of logical volume Volgroup/lv_root changed from 50.98 Gib (13050 extents) to 55.98 Gib (14330 extents ).  Logical Volume Lv_root successfully resized
  • The logical volume extension does not take effect immediately, and you need to reload the logical volume with the "RESIZE2FS" command. Use the command resize2fs/dev/volgroup/lv_root. But it did not succeed.
  • Final Xfs_growfs/dev/volgroup/lv_root command solves the above problem

Docker MySQL container report too many connections triggered by LIUNX disk expansion operation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.