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

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

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
12下一頁(yè)
最近訪問(wèn)板塊 發(fā)新帖
查看: 6000 | 回復(fù): 13
打印 上一主題 下一主題

(原創(chuàng)) 利用lucreate克隆V880的系統(tǒng)盤詳細(xì)過(guò)程 [復(fù)制鏈接]

論壇徽章:
2
IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-03-19 06:20:00數(shù)據(jù)庫(kù)技術(shù)版塊每日發(fā)帖之星
日期:2016-07-05 06:20:00
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2007-06-20 16:43 |只看該作者 |倒序?yàn)g覽
今天有同事重裝了V880+S10,重新克隆了系統(tǒng)盤,建議先升級(jí)OS kernel patch到最新版本.

1、將目標(biāo)盤的分區(qū)信息設(shè)置與原系統(tǒng)一樣(目標(biāo)c0t1d0s2);

root@v880-2 # prtvtoc /dev/rdsk/c0t0d0s2 |fmthard -s - /dev/rdsk/c0t1d0s2

2、執(zhí)行復(fù)制

root@v880-2 # lucreate -c S10_org -m /:/dev/dsk/c0t1d0s0:ufs -m -:/dev/dsk/c0t1d0s1:swap  \
root@v880-2 >-m /globaldevices:/dev/dsk/c0t1d0s5:ufs \
root@v880-2 > -n BE_new

解釋:m 是mountpoint 具體看man lucreate
      

3、查看復(fù)制是否完整

root@v880-2 # lustatus
Boot Environment           Is       Active Active    Can    Copy      
Name                       Complete Now    On Reboot Delete Status   
-------------------------- -------- ------ --------- ------ ----------
S10_org                    yes      yes    yes       no     -         
BE_new                     yes      no     no        yes    -         

檢查Is Complete列下的目標(biāo)盤項(xiàng)是不是為yes,如不是則表明復(fù)制沒有完成或不完整,其它項(xiàng)請(qǐng)查看man lustatus


4、激活目標(biāo)盤,測(cè)試是否可以啟動(dòng)

root@v880-2 # luactivate BE_new


**********************************************************************

The target boot environment has been activated. It will be used when you
reboot. NOTE: You MUST NOT USE the reboot, halt, or uadmin commands. You
MUST USE either the init or the shutdown command when you reboot. If you
do not use either init or shutdown, the system will not boot using the
target BE.

**********************************************************************

In case of a failure while booting to the target BE, the following process
needs to be followed to fallback to the currently working boot environment:

1. Enter the PROM monitor (ok prompt).

2. Change the boot device back to the original boot environment by typing:

     setenv boot-device
/pci@8,600000/SUNW,qlc@2/fp@0,0/disk@w21000000876c1c54,0:a

3. Boot to the original boot environment by typing:

     boot

**********************************************************************

Activation of boot environment <BE_new> successful.


5、用命令啟動(dòng)服務(wù)器(注意不能用reboot, halt, or uadmin命令重啟)

  root@v880-2 # init 6

6、檢查是否從目標(biāo)盤啟動(dòng)(與format輸出比較)

root@v880-2 # prtpicl -v |grep bootpath

以上步驟在V880上操作成功完成.

論壇徽章:
2
雙魚座
日期:2014-02-23 12:10:03操作系統(tǒng)版塊每日發(fā)帖之星
日期:2015-12-17 06:20:00
2 [報(bào)告]
發(fā)表于 2007-06-20 17:21 |只看該作者
不錯(cuò),收藏先。。。。。

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2007-06-20 19:47 |只看該作者
It is easy to create a new boot environment, but the BEs are not esay to use
if you customer is not familiar with Solaris Live Upgrade.

If there is something wrong with the two BEs, you could be unable to
activate the alternate BE or to repair them. In that case, you might want to remove
all BEs and make the system back to the original status.

However, I have not seen a Sun doc on how to remove a primary BE from Solaris.

[ 本帖最后由 susbin 于 2007-6-20 21:27 編輯 ]

論壇徽章:
2
IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-03-19 06:20:00數(shù)據(jù)庫(kù)技術(shù)版塊每日發(fā)帖之星
日期:2016-07-05 06:20:00
4 [報(bào)告]
發(fā)表于 2007-06-21 09:15 |只看該作者
在這里我的想法是克隆一個(gè)系統(tǒng)盤.尤其光纖硬盤.當(dāng)然想使用live upgrade,則需要做更多的準(zhǔn)備,包括升級(jí)到什么版本,該升級(jí)哪些包等.
當(dāng)做完升級(jí)或想做的事后,用luactivate激活目標(biāo)盤后,然后用init ot shutdown重啟機(jī)器,即實(shí)現(xiàn)了用目標(biāo)啟動(dòng).
當(dāng)想回到原來(lái)的啟動(dòng)環(huán)境時(shí),其實(shí)在用luactivate時(shí)屏幕有提示如下:
*********************************************************************

The target boot environment has been activated. It will be used when you
reboot. NOTE: You MUST NOT USE the reboot, halt, or uadmin commands. You
MUST USE either the init or the shutdown command when you reboot. If you
do not use either init or shutdown, the system will not boot using the
target BE.

**********************************************************************

In case of a failure while booting to the target BE, the following process
needs to be followed to fallback to the currently working boot environment:

1. Enter the PROM monitor (ok prompt).

2. Change the boot device back to the original boot environment by typing:

     setenv boot-device
/pci@8,600000/SUNW,qlc@2/fp@0,0/disk@w21000000876c1c54,0:a

3. Boot to the original boot environment by typing:

     boot

**********************************************************************

或者從目標(biāo)啟動(dòng)后,運(yùn)行l(wèi)uactivate命令重新激活原來(lái)的系統(tǒng)盤,用命令init or shutdown即可恢復(fù)到原來(lái)的系統(tǒng)盤.

每次成功創(chuàng)建了一個(gè)BE后,在/etc/lutab將增加一行,當(dāng)覺得不想要時(shí),個(gè)人覺得可以簡(jiǎn)單地移除這個(gè)文件就行了.

個(gè)人認(rèn)為對(duì)于簡(jiǎn)單地復(fù)制系統(tǒng)盤來(lái)說(shuō)操作還是非常簡(jiǎn)單的.也不需要安裝額外的軟件包,復(fù)制完后也不需要做任何配置文件的修改,在需要時(shí)在ok 修改一下boot-device的路徑,或者直接boot diskx就行了.

[ 本帖最后由 bencyber 于 2007-6-21 09:30 編輯 ]

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2007-06-21 09:24 |只看該作者
不錯(cuò),好東西

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2007-06-21 09:37 |只看該作者
速度快不快? 跟 DD \ SDS \ flarcreate 相比速度怎樣?

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2007-06-23 09:20 |只看該作者
"每次成功創(chuàng)建了一個(gè)BE后,在/etc/lutab將增加一行,當(dāng)覺得不想要時(shí),個(gè)人覺得可以簡(jiǎn)單地移除這個(gè)文件就行了."

我原來(lái)也是像樓主這么想的,可是看到 /etc/lu 下被 lucreate 新建的這些文件,就覺得不是那么簡(jiǎn)單了。

# pwd
/etc/lu
# ls -l | grep Jun
-rw-r--r--   1 root     other        417 Jun  4 13:02 ICF.1
-rw-r--r--   1 root     other        448 Jun  4 13:12 ICF.2
drwxr-xr-x   2 root     sys          512 Jun  4 13:09 compare
-rw-r--r--   1 root     other       1761 Jun  4 13:02 ludb.global.xml
-rw-r--r--   1 root     other        286 Jun  4 13:12 ludb.local.xml
drwxr-xr-x   2 root     sys          512 Jun  4 13:02 tmp
-rw-r--r--   1 root     other        136 Jun  4 13:12 vtoc.1
-rw-r--r--   1 root     other        136 Jun  4 13:12 vtoc.2
#

論壇徽章:
0
8 [報(bào)告]
發(fā)表于 2007-06-25 11:15 |只看該作者
呵呵 努力,各位老大繼續(xù)研究~

論壇徽章:
2
IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-03-19 06:20:00數(shù)據(jù)庫(kù)技術(shù)版塊每日發(fā)帖之星
日期:2016-07-05 06:20:00
9 [報(bào)告]
發(fā)表于 2007-06-26 09:41 |只看該作者
原帖由 susbin 于 2007-6-23 09:20 發(fā)表
"每次成功創(chuàng)建了一個(gè)BE后,在/etc/lutab將增加一行,當(dāng)覺得不想要時(shí),個(gè)人覺得可以簡(jiǎn)單地移除這個(gè)文件就行了."

我原來(lái)也是像樓主這么想的,可是看到 /etc/lu 下被 lucreate 新建的這些文件,就覺得不是 ...

你非常仔細(xì),看得挺認(rèn)真!

不過(guò)在這里,我想的就是復(fù)制系統(tǒng)盤,那些文件的內(nèi)容也是關(guān)于這個(gè)硬盤的分區(qū)信息,還是校驗(yàn)信息,以及在升級(jí)過(guò)程中需要讀取的內(nèi)容.如果就是單一復(fù)制系統(tǒng)盤,我還是堅(jiān)持我的看法.

這個(gè)命令的目的主要是用于live升級(jí)OS.這不過(guò)是其中的一種用法.

論壇徽章:
0
10 [報(bào)告]
發(fā)表于 2007-06-29 04:24 |只看該作者
前天掉電,一個(gè) V250 出問(wèn)題,剛好用來(lái)做個(gè)實(shí)驗(yàn):

從CD 啟動(dòng), 用備用盤替換壞掉的系統(tǒng)盤 (c0t0d0s0), 拆除鏡像,再做兩處改動(dòng):

# mv /a/etc/lutab /a/etc/lutab-saved
# mv /a/etc/lu /a/etc/lu-saved
# reboot
...

系統(tǒng)可以正常啟動(dòng)。

# lustatus
ERROR: No boot environments are configured on this system
ERROR: cannot determine list of all boot environment names
#

# cd /etc
# mv lutab-saved lutab
# mv lu-saved lu
#
# lustatus
Boot Environment           Is       Active Active    Can    Copy      
Name                       Complete Now    On Reboot Delete Status   
-------------------------- -------- ------ --------- ------ ----------
d0_0518                    yes      yes    yes       no     -         
t10s3_0604                 yes      no     no        yes    -         
#

# lufslist t10s3_0604
               boot environment name: t10s3_0604

Filesystem              fstype    device size Mounted on          Mount Options
----------------------- -------- ------------ ------------------- --------------
/dev/md/dsk/d3          swap                ? -                   -
/dev/dsk/c0t10d0s3      ufs       18339594240 /                   logging
/dev/md/dsk/d6          ufs       18339594240 /usr/local          logging
/dev/md/dsk/d9          ufs       18339594240 /web.logs           logging
/dev/dsk/c0t1d0s1       ufs       18339594240 /backup           logging
/dev/dsk/c0t1d0s3       ufs       18339594240 /u01                logging
/dev/dsk/c0t2d0s1       ufs       18339594240 /u03                logging
/dev/dsk/c0t2d0s3       ufs       18339594240 /system.bak         logging
/dev/dsk/c0t9d0s1       ufs       18339594240 /access.logs        logging
#
# lufslist d0_0518
ERROR: mount: No such device or address
mount: Cannot open /dev/md/dsk/d0ERROR: cannot mount mount point </.alt.tmp.b-Ntb.mnt> device </dev/md/dsk/d0>
ERROR: cannot mount root device </dev/md/dsk/d0> to mount point </.alt.tmp.b-Ntb.mnt> for boot environment <d0_0518>
ERROR: cannot determine file system configuration for boot environment <d0_0518>
ERROR: cannot determine file system list of boot environment <d0_0518>
#

# mv lutab lutab-saved
# mv lu lu-saved
#
# lustatus
ERROR: No boot environments are configured on this system
ERROR: cannot determine list of all boot environment names
#
您需要登錄后才可以回帖 登錄 | 注冊(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