亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問板塊 發(fā)新帖
查看: 1603 | 回復(fù): 1
打印 上一主題 下一主題

clonesuse [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2010-07-14 00:04 |只看該作者 |倒序?yàn)g覽
clonesuse.tar (24.5 KB, 下載次數(shù): 15)

做了個(gè)小工具,備份恢復(fù)SUSE企業(yè)版的腳本。

./clonesuse [options]
options :
        -clone                          <backup name>
        -restore                        <backup name>
        -d                              <path of backup>
        --hw-reconfig                  
        -v                              

Description :

Clonesuse is a command line tool to backup and restore SLES 9/10/11 system,
including the files of system and 3rd party softwares.The -clone mode can run
on running system,but -restore mode can only run on SLES 10's Rescue System
which boot from installation CD/DVD or PXE.

By default,backup can be only saved to network filesystems like smbfs/cifs/nfs,
to ignore this limit,please add a parameter "--ignore-netfs", for example :

# ./clonesuse -clone sles-10-sp3 -d /mnt/hd --ignore-netfs

To restore a backup to different hardware environment,set the --hw-reconfig,it
will automatically detect and re-config SATA/SCSI/Network/X11

# ./clonesuse -restore sles-10-sp3 -d /mnt/hd --hw-reconfig

If you only want to mount the volumes in /etc/fstab to /dev/shm/hd,the clone or
restore mode is not required to specified:

# ./clonesuse --mount-fstab
# ./clonesuse --umount-fstab

恢復(fù)的時(shí)候需要一個(gè)急救系統(tǒng),要求必須是SLES10/11的rescue system,可以用sles10/11
的安裝盤啟動(dòng)到rescue system,也可以把急救系統(tǒng)做到移動(dòng)硬盤啟動(dòng),方法如下:

一、準(zhǔn)備一個(gè)移動(dòng)硬盤
不推薦使用U盤,因?yàn)閁盤的寫入性能和數(shù)據(jù)可靠性比較差。
二、在一個(gè)現(xiàn)有的SLES10環(huán)境下給移動(dòng)硬盤分區(qū)
1、插入移動(dòng)硬盤,用lsscsi命令查看是否識(shí)別出型號(hào)
# lsscsi
2、假設(shè)識(shí)別出來(lái)的硬盤為/dev/sdb,首先清空硬盤分區(qū)表
# parted /dev/sdb -s mklabel msdos
3、創(chuàng)建一個(gè)linux分區(qū)
# cfdisk /dev/sdb
在cfdisk界面中創(chuàng)建一個(gè)大小至少為4GB的Linux分區(qū),最后移動(dòng)光標(biāo)到”write”菜單寫入新分區(qū)表。
4、格式化新分區(qū)
# mkfs.ext3 /dev/sdb1
除了上述方法,您也可以插入移動(dòng)硬盤之后用yast的分區(qū)管理器來(lái)創(chuàng)建分區(qū)。
三、將急救環(huán)境的文件拷貝到移動(dòng)硬盤上
# mkdir /mnt/usb
# mount /dev/sdb1 /mnt/usb
# cd /mnt/usb
# tar zxf /tmp/rescue.tar.gz
# cd /
# umount /mnt/usb

rescue.tar.gz從這里下載:
http://d.namipan.com/d/601b2c05d ... 3adc976ad7861024304

注意,里面的clonesuse比較舊,建議用附件的版本。


四、給移動(dòng)硬盤配置啟動(dòng)管理器
1、首先檢查/boot/grub/device.map文件,確保有類似一行
(hd2) /dev/sdb
如果沒有,手動(dòng)加上
2、執(zhí)行g(shù)rub程序
# grub --no-floppy
grub> root (hd2,0)
grub> setup (hd2)

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2010-07-14 10:25 |只看該作者
學(xué)習(xí)+關(guān)注
等待有人測(cè)試
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP