七牛evm主机主机快照和磁盘快照使用介绍
2016-07-14 14:59
288 查看
主机快照
主机快照,是用来创建新主机的时候,可以从主机快照为基础生成新的主机,并保持更原来主机相同的状态。创建过程为
选择快照
创建成功
挂载磁盘并写入数据
01,先在evm后台挂载磁盘,然后ssh到主机上面使用fdisk格式化磁盘,并用mkfs.ext4生成文件系统,最后mount到一个/mnt/disk1的目录下面,并创建一个1.jpg文件磁盘快照
创建磁盘快照
在磁盘管理中右键添加快照创建成功
从快照中创建磁盘
挂载磁盘,挂载时候不要格式化,直接挂载即可
root@ts-test:~# fdisk -l Disk /dev/vda: 21.5 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders, total 41943040 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 identifier: 0x00035540 Device Boot Start End Blocks Id System /dev/vda1 * 2048 39845887 19921920 83 Linux /dev/vda2 39847934 41940991 1046529 5 Extended /dev/vda5 39847936 41940991 1046528 82 Linux swap / Solaris Disk /dev/vdb: 10.7 GB, 10737418240 bytes 16 heads, 63 sectors/track, 20805 cylinders, total 20971520 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 identifier: 0x00000000 Disk /dev/vdb doesn't contain a valid partition table Disk /dev/vdd: 10.7 GB, 10737418240 bytes 16 heads, 63 sectors/track, 20805 cylinders, total 20971520 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 identifier: 0x00000000 Disk /dev/vdd doesn't contain a valid partition table root@ts-test:~# mount /dev/vdd /mnt/disk2 root@ts-test:~# cd /mnt/disk2 root@ts-test:/mnt/disk2# ls 1.jpg lost+found
我们看到了这个盘中也有一个1.jpg。代表数据已经copy到了备份中。
相关文章推荐
- oracle 11.2.0.4 physical standby failover
- swift版本的图片轮播(借鉴于前辈的思路)
- arp命令(windows ),nmap查看局域网内所有主机IP和MAC
- 目录
- 附2 rabbitmq用户管理、角色管理与权限管理
- arp命令(windows ),nmap查看局域网内所有主机IP和MAC
- 战争与和平 摘录一
- Java webSocket 网页聊天室
- -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-font-smoothing: antialiased
- android反编译
- C#基础-1:访问控制符、静态与非静态、参数传递
- Lucene全文搜索之分词器:使用IK Analyzer中文分词器(修改IK Analyzer源码使其支持lucene5.5.x)
- JAVA 比较两个日期相差的天数
- 图片打碎还原效果
- CSS经验分享
- 关于EMGU CV的那些事——1.环境搭建(win8 vs2012 emgucv3.0)
- python 利用openpyxl包处理excel数据并作图
- HDU 5493 Queue 线段树
- python 进程通信
- 尝试创建windows XP最长的路径名