登录
  • 欢迎访问老王的博客,本站用来做博主的技术学习,工作记录,技术分享,互动交流!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏老王的博客吧

AMH面板安装后,新增挂载数据盘以及迁移数据方法

linux wmhbcy 14925次浏览 13个评论 扫描二维码

本文引用:http://amh.sh/bbs/post-5351-1-1.htm

AMH面板安装后,新增挂载数据盘以及迁移数据方法
1、查看数据盘

在没有分区和格式化数据盘之前,使用 “df -h”命令,是无法看到数据盘的,可以使用“fdisk -l”命令查看!

2、 对数据盘进行分区执行“fdisk /dev/vdb”命令,对数据盘进行分区;(vdb为数据盘名称,请根据各自服务器商的实际名称自行更改)根据提示,依次输入“n”,“p”“1”,两次回车,“wq”,分区就开始了,很快就会完成。
3、 查看新的分区使用“fdisk -l”命令可以看到,新的分区vdb1已经建立完成了。

4、格式化新分区使用“mkfs.ext3 /dev/vdb1”命令对新分区进行格式化,格式化的时间根据硬盘大小有所不同。(也可自主决定选用其它文件格式,如ext4等)
5、AMH备份、迁移数据A – 创建备份目录mkdir /mnt/data # 新建临时目录用于转移数据
mount /dev/vdb1 /mnt/data #挂载临时目录

B – 迁移数据
mv /home/* /mnt/data # 迁移home中的数据,根据数据多少会有时间延迟,我们只要等待

6、修改启动选项echo ‘/dev/vdb1 /home ext3 defaults 1 2’ >> /etc/fstab

最后reboot重启VPS,登录AMH面板(5.0可以直观的显示)可以查看,或者使用df -h命令查看。





AMH5 极速安装
wget http://amh.sh/amh.sh && bash amh.sh acc 1937 2>&1 | tee amh.log


老王的博客 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明出处!
喜欢 (0)
[23419610@qq.com]
分享 (0)
关于作者:
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(13)个小伙伴在吐槽
  1. Some really nice and useful information on this web site, also I conceive the style and design holds superb features. dckfkdackeae
    Johnf1562019-07-07 11:05 回复
  2. Exclusively at Target 42 Bluray Combo Pack with exclusive fedfddfeebbf
    Johnc6162019-07-07 11:05 回复
  3. Keep on working, great job!
    카지노 룰렛2019-07-13 20:51 回复
  4. Hello would you mind letting me know which web host you're working with? I've loaded your blog in 3 different internet browsers and I must say this blog loads a lot quicker then most. Can you suggest a good internet hosting provider at a fair price? Cheers, I appreciate it!
  5. Hello! Do you know if they make any plugins to safeguard against hackers? I'm kinda paranoid about losing everything I've worked hard on. Any suggestions?
    바카라사이트2019-07-13 22:48 回复
  6. Keep on writing, great job!
  7. hello there and thank you for your info – I have certainly picked up something new from right here. I did however expertise a few technical points using this website, as I experienced to reload the site many times previous to I could get it to load correctly. I had been wondering if your web hosting is OK? Not that I am complaining, but sluggish loading instances times will often affect your placement in google and could damage your quality score if advertising and marketing with Adwords. Well I'm adding this RSS to my e-mail and could look out for much more of your respective interesting content. Make sure you update this again soon.
  8. My developer is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the expenses. But he's tryiong none the less. I've been using WordPress on numerous websites for about a year and am worried about switching to another platform. I have heard very good things about blogengine.net. Is there a way I can import all my wordpress posts into it? Any help would be greatly appreciated!
  9. I like the valuable information you provide in your articles. I'll bookmark your blog and check again here frequently. I'm quite sure I'll learn lots of new stuff right here! Good luck for the next!
  10. Someone essentially assist to make severely articles I would state. That is the very first time I frequented your web page and to this point? I surprised with the research you made to make this actual post amazing. Magnificent task!
    온카지노 먹튀2019-07-14 17:02 回复
  11. That is very interesting, You're an excessively professional blogger. I've joined your feed and look ahead to seeking extra of your excellent post. Also, I have shared your web site in my social networks
  12. At this moment I am ready to do my breakfast, after having my breakfast coming again to read additional news.