In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Requirements: the original 30G storage of AWS T2 instance needs to be expanded to 200G.
1. Modify the volume size
Find Volume-> Select corresponding Volume-> Action: modify Volume
Expand from 30G to 200G, the status will be initialized after submission, and it will be successful when the status changes to in-use.
2. Extended partition
Using lsblk to see that the volume size has been expanded to 200G, but the partition size is still 30G.
Use the growpart command to expand the partition. Notice that there is a space between the device name and the partition number
Growpart / dev/xvda 1
3. Extend the file system
# View the file system type, which is XFS type
File-s / dev/xvd*
# install the xfsprogs tool
Yum install-y xfsprogs
# extending the XFS file system
Xfs_growfs-d /
You can see from the df-h command that it has been expanded to 200G.
Reference official website: https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html
Attached:
1. For ext4 file systems, use the following command
Pvresize / dev/xvdf
Lvextend-r-l + 100%FREE / dev/mapper/vg_mysqlbackup
2. If it is a LVM2 file system, use the following command
# expanding logical volumes
Growpart / dev/xvdb 1
# View pv name
Pvs
# expand pv size
Pvresize / dev/sdb1
# View lv name
Df-h
# expand lv size
Lvextend-r-l + 100%FREE / dev/mapper/vg_opt-lv_opt
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.