In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "Linux Xen virtual hard disk space is insufficient how to expand", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Linux Xen virtual hard disk space insufficient how to expand" it!
Xen virtual machine can be used for server application integration, software development testing and so on, and it is more and more widely used, but in the process of use, it will encounter the problem of insufficient space of Xen virtual hard disk, how to solve it? The following editor will introduce to you how to expand the space of Xen virtual hard disk. Let's learn it together.
The method here is suitable for the case of mirrored files on ext2 and ext3 file systems:
Shut down the virtual machine:
The code is as follows:
# / usr/sbin/xm shutdown vm01
Append 4GB space to the virtual machine image file (.img):
The code is as follows:
# dd if=/dev/zero bs=1024k count=4096 "" / vm/vm01.img
Scan to check the image file:
The code is as follows:
# / sbin/e2fsck-f / vm/vm01.img
At this time, the size of the image file (hard disk) is only increased. This image file is not an ordinary file. It contains a mount/umount-capable loop file system, so you need to adjust the file system size. Otherwise, df will find that the hard disk size has not changed after entering the virtual machine:
The code is as follows:
# / sbin/resize2fs / vm/vm01.img
Restart the Xen virtual machine:
The code is as follows:
# / usr/sbin/xm create vm01
Check the hard disk size after entering the virtual machine:
The code is as follows:
# / usr/sbin/xm console vm01
# df-h
Mount/umount is mentioned here, and to say a little beside the point, from a technical point of view, VPS is actually not secure, because VPS service providers can mount/umount your virtual machine files, partitions to read or even write content at any time. If the root password of the server where your virtual machine is located is obtained by the bad guys, there is no security at all, and the bad guys can tamper with your virtual machine at will. Therefore, security is a big problem in cloud computing, especially those based on virtual technology, which may also be the reason why enterprises are reluctant to use public clouds. Some Startup only store unimportant data on cloud storage such as Amazon S3, so it is better to keep confidential data on their own. So VPSee believes that private clouds will have more room for growth.
Thank you for your reading, the above is "Linux Xen virtual hard disk space insufficient how to expand" the content, after the study of this article, I believe you on the Linux Xen virtual hard disk space shortage how to expand this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.