<?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>Linux VM Disk Expand &#8211; Thegioifirewall</title>
	<atom:link href="https://thegioifirewall.com/tag/linux-vm-disk-expand/feed/" rel="self" type="application/rss+xml" />
	<link>https://thegioifirewall.com</link>
	<description>Tường lửa bảo vệ doanh nghiệp, trung tâm thông tin và giá cả</description>
	<lastBuildDate>Tue, 06 Oct 2020 09:22:37 +0000</lastBuildDate>
	<language>vi</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://thegioifirewall.com/wp-content/uploads/vacif_icon-150x150.png</url>
	<title>Linux VM Disk Expand &#8211; Thegioifirewall</title>
	<link>https://thegioifirewall.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Sangfor HCI: Hướng dẫn mở rộng dung lượng ổ đĩa máy ảo Linux.</title>
		<link>https://thegioifirewall.com/sangfor-hci-huong-dan-mo-rong-dung-luong-o-dia-may-ao-linux/</link>
					<comments>https://thegioifirewall.com/sangfor-hci-huong-dan-mo-rong-dung-luong-o-dia-may-ao-linux/#respond</comments>
		
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Tue, 06 Oct 2020 09:22:31 +0000</pubDate>
				<category><![CDATA[Hướng dẫn cấu hình Sangfor HCI]]></category>
		<category><![CDATA[Hướng dẫn mở rộng dung lượng ổ đĩa máy ảo Linux.]]></category>
		<category><![CDATA[Linux VM Disk Expand]]></category>
		<category><![CDATA[Sangfor HCI]]></category>
		<guid isPermaLink="false">http://www.thegioifirewall.com/?p=8173</guid>

					<description><![CDATA[Overview Việc mở rộng ổ đĩa thường được sử dụng để mở rộng dung lượng ổ đĩa máy ảo khi hệ điều hành hết dung lượng đĩa lưu trữ. Máy ảo dễ mở rộng dung lượng ổ đĩa hơn so với máy chủ vật lý truyền thống. 1.Hướng dẫn cấu hình. Bước 1: Trên Sangfor [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Overview</strong></p>



<p class="wp-block-paragraph">Việc mở rộng ổ đĩa thường được sử dụng để mở rộng dung lượng ổ đĩa máy ảo khi hệ điều hành hết dung lượng đĩa lưu trữ. Máy ảo dễ mở rộng dung lượng ổ đĩa hơn so với máy chủ vật lý truyền thống.</p>



<p class="wp-block-paragraph"><strong>1.Hướng dẫn cấu hình.</strong></p>



<p class="wp-block-paragraph"><strong>Bước 1:</strong> Trên Sangfor HCI tiến hành tắt máy ảo Linux cần mở rộng ổ đĩa. Chọn <strong>Edit</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img fetchpriority="high" decoding="async" width="491" height="193" src="https://thegioifirewall.com/wp-content/uploads/image-1387.png" alt="" class="wp-image-8174" srcset="https://thegioifirewall.com/wp-content/uploads/image-1387.png 491w, https://thegioifirewall.com/wp-content/uploads/image-1387-300x118.png 300w" sizes="(max-width: 491px) 100vw, 491px" /></figure></div>



<p class="wp-block-paragraph"><strong>Bước 2:</strong> Điền thông số mở rộng dung lượng ổ đĩa bạn muốn.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" width="494" height="327" src="https://thegioifirewall.com/wp-content/uploads/image-1388.png" alt="" class="wp-image-8175" srcset="https://thegioifirewall.com/wp-content/uploads/image-1388.png 494w, https://thegioifirewall.com/wp-content/uploads/image-1388-300x199.png 300w" sizes="(max-width: 494px) 100vw, 494px" /></figure></div>



<p class="wp-block-paragraph"><strong>Bước 4:</strong> Click Ok để lưu cài đặt. Sau đó tiến hành power on máy ảo.</p>



<p class="wp-block-paragraph"><strong>Bước 5:</strong> Kiểm tra Disk.</p>



<p class="wp-block-paragraph">Trong Linux terminal > gõ “<strong>sudo fdisk –l</strong>”. Như kết quả được hiển thị, kích thước ổ đĩa của vda là 500GB, tuy nhiên kích thước phân vùng vẫn giữ nguyên.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" width="495" height="380" src="https://thegioifirewall.com/wp-content/uploads/image-1389.png" alt="" class="wp-image-8176" srcset="https://thegioifirewall.com/wp-content/uploads/image-1389.png 495w, https://thegioifirewall.com/wp-content/uploads/image-1389-300x230.png 300w" sizes="(max-width: 495px) 100vw, 495px" /></figure></div>



<p class="wp-block-paragraph"><strong>Path / partition</strong> có 51.3GB</p>



<p class="wp-block-paragraph"><strong>Swap partition</strong> có 8.4GB</p>



<p class="wp-block-paragraph"><strong>Path /home partition</strong> có 25.1GB</p>



<p class="wp-block-paragraph"><strong>Bước 6:</strong> Tạo phân vùng mới.</p>



<p class="wp-block-paragraph">Để tránh việc mất dữ liệu, bạn sẽ thêm một phân vùng khác và tạo thành một ổ đĩa logical thay vì mở rộng phân vùng trực tiếp.</p>



<p class="wp-block-paragraph">Từ Linux terminal gõ “<strong>sudo fdisk /dev/vda</strong>”.</p>



<p class="wp-block-paragraph"> <strong>Lưu ý: /dev/vda</strong> là label phân vùng của ổ đĩa cứng được phát hiện, nó có thể được phát hiện là /<strong>dev/sda</strong> hoặc <strong>/dev/hda</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="486" height="495" src="https://thegioifirewall.com/wp-content/uploads/image-1390.png" alt="" class="wp-image-8177" srcset="https://thegioifirewall.com/wp-content/uploads/image-1390.png 486w, https://thegioifirewall.com/wp-content/uploads/image-1390-295x300.png 295w" sizes="auto, (max-width: 486px) 100vw, 486px" /></figure></div>



<p class="wp-block-paragraph"><strong>Bước 7:</strong> Sau khi gõ “<strong>w</strong>”, phân vùng mới <strong>vda3</strong> sẽ được tạo.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="443" height="186" src="https://thegioifirewall.com/wp-content/uploads/image-1391.png" alt="" class="wp-image-8178" srcset="https://thegioifirewall.com/wp-content/uploads/image-1391.png 443w, https://thegioifirewall.com/wp-content/uploads/image-1391-300x126.png 300w" sizes="auto, (max-width: 443px) 100vw, 443px" /></figure></div>



<p class="wp-block-paragraph"><strong>Bước 8:</strong> Reboot lại máy ảo Linux.</p>



<p class="wp-block-paragraph"><strong>Bước 9:</strong> Show và mở rộng group volume.</p>



<p class="wp-block-paragraph">Gõ lệnh: “<strong>vgdisplay</strong>” trong máy ảo.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="454" height="310" src="https://thegioifirewall.com/wp-content/uploads/image-1392.png" alt="" class="wp-image-8179" srcset="https://thegioifirewall.com/wp-content/uploads/image-1392.png 454w, https://thegioifirewall.com/wp-content/uploads/image-1392-300x205.png 300w" sizes="auto, (max-width: 454px) 100vw, 454px" /></figure></div>



<p class="wp-block-paragraph">Sử dụng lệnh “<strong>vgextend {VG Name} / dev/vda3</strong>” để mở rộng group volume “centos”.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="500" height="325" src="https://thegioifirewall.com/wp-content/uploads/image-1393.png" alt="" class="wp-image-8180" srcset="https://thegioifirewall.com/wp-content/uploads/image-1393.png 500w, https://thegioifirewall.com/wp-content/uploads/image-1393-300x195.png 300w" sizes="auto, (max-width: 500px) 100vw, 500px" /></figure></div>



<p class="wp-block-paragraph"><strong>Bước 10:</strong> Show và mở rộng logical volume.</p>



<p class="wp-block-paragraph">Gõ lệnh: “<strong>lvdisplay</strong>” để show logical volume size.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="481" height="444" src="https://thegioifirewall.com/wp-content/uploads/image-1394.png" alt="" class="wp-image-8181" srcset="https://thegioifirewall.com/wp-content/uploads/image-1394.png 481w, https://thegioifirewall.com/wp-content/uploads/image-1394-300x277.png 300w" sizes="auto, (max-width: 481px) 100vw, 481px" /></figure></div>



<p class="wp-block-paragraph">Để thêm hoặc mở rộng 100GB / dev / centos / home directory (23,33GB), sử dụng lệnh “<strong>lvextend &#8211; L + 100000M /dev/centos /home</strong>”</p>



<p class="wp-block-paragraph">Sử dụng lệnh “<strong>xfs_growfs /dev/centos/home</strong>” để áp dụng các thay đổi và resize logical volume.</p>



<p class="wp-block-paragraph">Bây giờ size phân vùng của <strong>/dev/centos/home</strong> được thay đổi thành 120GB +</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="624" height="75" src="https://thegioifirewall.com/wp-content/uploads/image-1395.png" alt="" class="wp-image-8182" srcset="https://thegioifirewall.com/wp-content/uploads/image-1395.png 624w, https://thegioifirewall.com/wp-content/uploads/image-1395-300x36.png 300w" sizes="auto, (max-width: 624px) 100vw, 624px" /></figure></div>
]]></content:encoded>
					
					<wfw:commentRss>https://thegioifirewall.com/sangfor-hci-huong-dan-mo-rong-dung-luong-o-dia-may-ao-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
