<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>aliyun归档 - FREEZhao</title>
	<atom:link href="https://www.freezhao.com/tag/aliyun-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.freezhao.com/tag/aliyun-2/</link>
	<description>FREEZhao Universe</description>
	<lastBuildDate>Wed, 08 Feb 2023 19:56:59 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>

<image>
	<url>https://www.freezhao.com/wp-content/uploads/2023/05/2023_logo_black-150x150.png</url>
	<title>aliyun归档 - FREEZhao</title>
	<link>https://www.freezhao.com/tag/aliyun-2/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>阿里云aliyun CES 磁盘扩容操作</title>
		<link>https://www.freezhao.com/aliyunaliyuncescip/</link>
					<comments>https://www.freezhao.com/aliyunaliyuncescip/#respond</comments>
		
		<dc:creator><![CDATA[FREEZhao]]></dc:creator>
		<pubDate>Sun, 27 Nov 2022 02:14:15 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[aliyun]]></category>
		<category><![CDATA[bt]]></category>
		<category><![CDATA[ECS]]></category>
		<category><![CDATA[宝塔]]></category>
		<category><![CDATA[扩容]]></category>
		<category><![CDATA[磁盘]]></category>
		<category><![CDATA[阿里云]]></category>
		<guid isPermaLink="false">https://www.freezhao.com/?p=24554</guid>

					<description><![CDATA[<p>查看磁盘信息 查看磁盘分区大小 给磁盘第一分区扩容 调用resize2fs扩容文件系统，目标是磁盘第一个分区 再次查看磁盘情况 去宝塔刷新查看，应该磁盘扩容已经成功了。</p>
<p><a href="https://www.freezhao.com/aliyunaliyuncescip/">阿里云aliyun CES 磁盘扩容操作</a>最先出现在<a href="https://www.freezhao.com">FREEZhao</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<ol class="wp-block-list">
<li>将ECS云盘做快照备份</li>



<li>ECS实例中左侧列表栏，选择“存储于快照”——“云盘”，查看要扩容的磁盘大小，在右侧找到“更多”——“磁盘扩容”</li>



<li>之后SSH操作：</li>
</ol>



<p></p>



<p>查看磁盘信息</p>



<pre class="wp-block-code"><code>fdisk -l

Disk /dev/vda: 64.4 GB, 64424509440 bytes, 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000b2d99

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *        2048    62914526    31456239+  83  Linux</code></pre>



<p>查看磁盘分区大小</p>



<pre class="wp-block-code"><code>df-h

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        1.8G     0  1.8G   0% /dev
tmpfs           1.8G   16K  1.8G   1% /dev/shm
tmpfs           1.8G  480K  1.8G   1% /run
tmpfs           1.8G     0  1.8G   0% /sys/fs/cgroup
/dev/vda1        30G   27G  1.9G  94% /
tmpfs           365M     0  365M   0% /run/user/0</code></pre>



<p>给磁盘第一分区扩容</p>



<pre class="wp-block-code"><code>growpart /dev/vda 1</code></pre>



<p>调用resize2fs扩容文件系统，目标是磁盘第一个分区</p>



<pre class="wp-block-code"><code>resize2fs /dev/vda1</code></pre>



<p>再次查看磁盘情况</p>



<pre class="wp-block-code"><code>df -h</code></pre>



<p>去宝塔刷新查看，应该磁盘扩容已经成功了。</p>
<p><a href="https://www.freezhao.com/aliyunaliyuncescip/">阿里云aliyun CES 磁盘扩容操作</a>最先出现在<a href="https://www.freezhao.com">FREEZhao</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.freezhao.com/aliyunaliyuncescip/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
