Ikoula Corporate
Espace client
Support
Blog
Wiki
Site web Ikoula
查看“在Cloud Ikoula One 的VPS云上恢复Kimsufi服务器:”的源代码
←
在Cloud Ikoula One 的VPS云上恢复Kimsufi服务器:
Jump to navigation
Jump to search
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看和复制此页面的源代码。
==在Cloud Ikoula One 的VPS云上恢复Kimsufi服务器:=== 我们将备份Kimsufi服务器[https://www.kimsufi.com/us/en/],然后在VPS CIO上进行还原。 ==什么是VPS Coud Ikoula One?== Coud Ikoula One [https://www.ikoula.cn/zh/cloudikoulaone]是一个交钥匙解决方案,包括编排工具,负载平衡器,防火墙和与EC2兼容的API。 ==Coud Ikoula One的优势 :== *成本控制:预先建立发票 *专用的基础架构:vm部署 *低延迟保证 *编排工具 *管理服务[https://www.ikoula.cn/zh/managed-application-outsourcing] ==配置Kimsufi服务器== *在liveCD上启动我们的虚拟机,例如DebianLive: *定义主机名以轻松识别还原的目的地 <pre> root@debian:~# hostname testrestore </pre> *安装Acronis云备份安装_agent_Linux *手动创建分区 *如果您不想使用太多磁盘空间 <pre> root@debian:~# fdisk /dev/xvda Welcome to fdisk (util-linux 2.33.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): n Partition number (1-128, default 1): First sector (34-209715166, default 2048): 40 Last sector, +/-sectors or +/-size{K,M,G,T,P} (40-209715166, default 209715166): 2048 Created a new partition 1 of type 'Linux filesystem' and of size 1004.5 KiB. Command (m for help): n Partition number (2-128, default 2): First sector (2049-209715166, default 4096): Last sector, +/-sectors or +/-size{K,M,G,T,P} (4096-209715166, default 209715166): +97G Created a new partition 2 of type 'Linux filesystem' and of size 97 GiB. Command (m for help): n Partition number (3-128, default 3): First sector (203427840-209715166, default 203427840): Last sector, +/-sectors or +/-size{K,M,G,T,P} (203427840-209715166, default 209715166): Created a new partition 3 of type 'Linux filesystem' and of size 3 GiB. Command (m for help): t Partition number (1-3, default 3): 1 Partition type (type L to list all types): 4 Changed type of partition 'Linux filesystem' to 'BIOS boot'. Command (m for help): t Partition number (1-3, default 3): Partition type (type L to list all types): 19 Changed type of partition 'Linux filesystem' to 'Linux swap'. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. root@debian:~# </pre> **如果您需要备份 备份: <pre> sfdisk -d /dev/sda > partition.bak </pre> 恢复: <pre> sfdisk /dev/xvda < partition.bak </pre> 格式化分区: <pre> root@debian:~# mkfs.ext4 /dev/xvda2 mke2fs 1.44.5 (15-Dec-2018) Creating filesystem with 25427968 4k blocks and 6356992 inodes Filesystem UUID: 675556c0-d8a0-4c4e-b1fd-87d2b3a0f19e Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872 Allocating group tables: done Writing inode tables: done Creating journal (131072 blocks): done Writing superblocks and filesystem accounting information: done root@debian:~# mkswap /dev/xvda3 mkswap: /dev/xvda3: warning: wiping old swap signature. Setting up swapspace version 1, size = 3 GiB (3219103744 bytes) no label, UUID=315aee13-ed19-4408-8d20-74253a3edbff root@debian:~# </pre> 分区或本例中分区的组装: <pre> root@debian:~# mount /dev/xvda1 /mnt </pre ==恢复== 从Acronis界面,我们将还原 * 选择要还原的服务器,然后单击“恢复” [[File:recover-ovh.png]] * 单击'''More ways to recover... ''',然后单击'''Files/folders''' [[File:Recover-select-host-ovh.png]] * 单击'''Recover...'' 然后单击'''Files/folders''' [[File:recover-files-folders-ovh.png]] * 导航界面以选择分区中包含的所有文件和文件夹 [[File:Recover-files-ovh.png]] * 确认目的地,选择分区还原安装 [[File:Recover-start-ovh.png]] * 不要选择目的地机器,因为我们尚未完成 [[File:Recover-proceed.png]] ==恢复grub== 为此,我们将在chroot中使用grub-install方法。 *我们在chroot中执行grub-install所需的环境 <pre> mount --bind /dev/ /mnt/dev mount -t proc /proc /mnt/proc mount -t sysfs /sys /mnt/sys </pre> *我们现在开始chroot并启动一个update-grud <pre> root@debian:~# chroot /mnt/ </pre> <pre> root@testrestore:/# grub-install Installation pour la plate-forme i386-pc. grub-install : erreur : le périphérique d'installation n'est pas indiqué. root@testrestore:/# grub-install /dev/xvda Installation pour la plate-forme i386-pc. Installation terminée, sans erreur. root@testrestore:/# </pre> * Modifier le fichier '''/etc/fstab''' afin de prendre en compte <pre> root@testrestore:/# cat /etc/fstab UUID="675556c0-d8a0-4c4e-b1fd-87d2b3a0f19e" / ext4 defaults 0 0 UUID="2ca7f39a-6609-884a-ac1e-8456b66ca755" swap swap defaults 0 0 root@testrestore:/# blkid /dev/xvda2: UUID="675556c0-d8a0-4c4e-b1fd-87d2b3a0f19e" TYPE="ext4" PARTUUID="ba22cf4d-5988-254b-9f28-d58bc50f7a4f" /dev/xvda3: UUID="315aee13-ed19-4408-8d20-74253a3edbff" TYPE="swap" PARTUUID="2ca7f39a-6609-884a-ac1e-8456b66ca755" /dev/sr0: UUID="2019-11-16-10-15-29-00" LABEL="d-live 10.2.0 st amd64" TYPE="iso9660" PTUUID="1bf56f01" PTTYPE="dos" /dev/loop0: TYPE="squashfs" /dev/xvda1: PARTUUID="f40c93d3-7954-784b-afbb-608d428571fc" root@testrestore:/# </pre> ==为了走得更远== 为了提高服务器与CIO和XenServer云环境的兼容性[4],我们能够安装cloud-init和XenTools:Installation_des_XenTools_sur_une_instance_CloudStack ==配置适配器== *此迁移将涉及IP地址的更改,您将必须调整服务配置文件(apache,MariaDB,bind ...),以便它们兼容CIO的IP地址。 *如果使用PLESK, [5] 可让您更简单地执行此修改。 如何更改plesk的IP地址
返回至
在Cloud Ikoula One 的VPS云上恢复Kimsufi服务器:
。
导航菜单
个人工具
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息
投稿
fr-wiki.ikoula.com
en-wiki.ikoula.com
es-wiki.ikoula.com
it-wiki.ikoula.com
nl-wiki.ikoula.com
de-wiki.ikoula.com
pt-wiki.ikoula.com
ru-wiki.ikoula.com
pl-wiki.ikoula.com
ro-wiki.ikoula.com
ja-wiki.ikoula.com
zh-wiki.ikoula.com
he-wiki.ikoula.com
ar-wiki.ikoula.com