- Community Home
- >
- HPE Community, Taiwan
- >
- HP-UX
- >
- 系統管理
- >
- 怎么更换系统磁盘
系統管理
1753838
會員
9485
線上
108806
解決方案
論壇
類別
Company
Local Language
返回
論壇
討論平台
返回
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
部落格
信息
社區語言
語言
論壇
部落格
文章選項
- 訂閱此主題的RSS 提要
- 將此主題標記為未讀
- 將主題標記為已讀
- 將主題在本帳號置頂
- 標示為書籤
- 訂閱此主題
- 列印此頁
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 02-19-2005 06:48 PM
在 02-19-2005 06:48 PM
怎么更换系统磁盘
硬件:c0t0d0,c1t0d0
软件:HP-UX11.i
我的系统盘为c0t0d0,上面只有vg00,在安装好系统后,使用c1t0d0对其做镜像,一切正常,二块盘都可以单独正常引导。
现在我的c1t0d0坏了,我想换掉它,请问我该怎么办呢?
在线更换怎么做? 如果是关机后更换又该怎么办?
我看过一些方案:
一。在线更换:
使用新盘更换掉c1t0d0然后ioscan
#ioscan -funCdisk
#vgcfgrestore -n /dev/vg00 /dev/dsk/c1t0d0
#mkboot /dev/../c1t0d0
#mkboot "hpux(;0)/stand/vmunix" /dev/../c1t0d0
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -d /dev/vg00/lvol2
#lvlnboot -s /dev/vg00/lvol2
#vgsync
但是当我完成这些操作后,并没有更换成功!请大家帮帮我!
二。如果是关机后更换磁盘,每次要重新做PV的时候提示已经存在,请问该怎么办呢?有没有一个完整的方案呢?
再次谢谢大家对我的帮助和问题的关注!
软件:HP-UX11.i
我的系统盘为c0t0d0,上面只有vg00,在安装好系统后,使用c1t0d0对其做镜像,一切正常,二块盘都可以单独正常引导。
现在我的c1t0d0坏了,我想换掉它,请问我该怎么办呢?
在线更换怎么做? 如果是关机后更换又该怎么办?
我看过一些方案:
一。在线更换:
使用新盘更换掉c1t0d0然后ioscan
#ioscan -funCdisk
#vgcfgrestore -n /dev/vg00 /dev/dsk/c1t0d0
#mkboot /dev/../c1t0d0
#mkboot "hpux(;0)/stand/vmunix" /dev/../c1t0d0
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -d /dev/vg00/lvol2
#lvlnboot -s /dev/vg00/lvol2
#vgsync
但是当我完成这些操作后,并没有更换成功!请大家帮帮我!
二。如果是关机后更换磁盘,每次要重新做PV的时候提示已经存在,请问该怎么办呢?有没有一个完整的方案呢?
再次谢谢大家对我的帮助和问题的关注!
1則回覆 1
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 02-21-2005 11:15 PM
在 02-21-2005 11:15 PM
怎么更换系统磁盘
您看到的online replace procedure有幾個指令的語法是錯
的哦, 解決方式請參考以下.
Online means you don't have to turn off the power, there is no system down time.
Offline means you have to turn off the power, there have system down time.
Replace Online: Disk is hot swappable, mirrored
Step 1:
# cd /dev/vg00
# for i in `ls lvol*`
>do
>lvreduce -m 0 -A n /dev/vg00/$i /dev/dsk/c1t0d0
>done
Step 2:
將壞掉的硬碟更換掉後, 下
# ioscan -f /dev/dsk/c1t0d0
檢查disk的狀態是否為claimed
Step 3:
# vgcfgrestore -n vg00 /dev/rdsk/c1t0d0
Step 4:
# vgchange -a y vg00
Step 5:
# mkboot -l /dev/rdsk/c1t0d0
# mkboot -a hpux /dev/rdsk/c1t0d0
# mkboot -a 'hpux -lq' /dev/rdsk/c1t0d0
接下來如果要安裝ODE工具的話, 你可參考上回的script.
http://h50163.www5.hp.com/TCForum/WebUI/Messages/ShowTopic.aspx?RID=4532ac5f-a67a-4005-9a11-44e5c4cf2e86
Step 6:
# cd /dev/vg00
# for i in `ls lvol*`
>do
>lvextend -m 1 /dev/vg00/$i /dev/dsk/c1t0d0
>done
Step 7: check if have any stale issues
# cd /dev/vg00
# for i in `ls lvol*`
>do
>lvdisplay -v /dev/vg00/$i|grep stale
>done
Replace offline: Disk is not hot swap, but it's mirrored
Step 1:
shutdown your workstation/server, go to BCH mode
BCH> SEA # 搜尋並且找到原來c0t0d0的path
BCH> boot xxxxx # 需要進入ISL
ISL> hpux -lq
.
.
.
Step 2:
將壞掉的硬碟換掉. 然後
# vgcfgrestore -n vg00 /dev/rdsk/c1t0d0
# vgchange -a y vg00
Step 3:
# mkboot -l /dev/rdsk/c1t0d0
# mkboot -a hpux /dev/rdsk/c1t0d0
# mkboot -a 'hpux -lq' /dev/rdsk/c1t0d0
接下來如果要安裝ODE工具的話, 你可參考上回的script.
http://h50163.www5.hp.com/TCForum/WebUI/Messages/ShowTopic.aspx?RID=4532ac5f-a67a-4005-9a11-44e5c4cf2e86
Step 4:
# vgsync vg00
Step 5: check if have any stale issues
# cd /dev/vg00
# for i in `ls lvol*`
>do
>lvdisplay -v /dev/vg00/$i|grep stale
>done
的哦, 解決方式請參考以下.
Online means you don't have to turn off the power, there is no system down time.
Offline means you have to turn off the power, there have system down time.
Replace Online: Disk is hot swappable, mirrored
Step 1:
# cd /dev/vg00
# for i in `ls lvol*`
>do
>lvreduce -m 0 -A n /dev/vg00/$i /dev/dsk/c1t0d0
>done
Step 2:
將壞掉的硬碟更換掉後, 下
# ioscan -f /dev/dsk/c1t0d0
檢查disk的狀態是否為claimed
Step 3:
# vgcfgrestore -n vg00 /dev/rdsk/c1t0d0
Step 4:
# vgchange -a y vg00
Step 5:
# mkboot -l /dev/rdsk/c1t0d0
# mkboot -a hpux /dev/rdsk/c1t0d0
# mkboot -a 'hpux -lq' /dev/rdsk/c1t0d0
接下來如果要安裝ODE工具的話, 你可參考上回的script.
http://h50163.www5.hp.com/TCForum/WebUI/Messages/ShowTopic.aspx?RID=4532ac5f-a67a-4005-9a11-44e5c4cf2e86
Step 6:
# cd /dev/vg00
# for i in `ls lvol*`
>do
>lvextend -m 1 /dev/vg00/$i /dev/dsk/c1t0d0
>done
Step 7: check if have any stale issues
# cd /dev/vg00
# for i in `ls lvol*`
>do
>lvdisplay -v /dev/vg00/$i|grep stale
>done
Replace offline: Disk is not hot swap, but it's mirrored
Step 1:
shutdown your workstation/server, go to BCH mode
BCH> SEA # 搜尋並且找到原來c0t0d0的path
BCH> boot xxxxx # 需要進入ISL
ISL> hpux -lq
.
.
.
Step 2:
將壞掉的硬碟換掉. 然後
# vgcfgrestore -n vg00 /dev/rdsk/c1t0d0
# vgchange -a y vg00
Step 3:
# mkboot -l /dev/rdsk/c1t0d0
# mkboot -a hpux /dev/rdsk/c1t0d0
# mkboot -a 'hpux -lq' /dev/rdsk/c1t0d0
接下來如果要安裝ODE工具的話, 你可參考上回的script.
http://h50163.www5.hp.com/TCForum/WebUI/Messages/ShowTopic.aspx?RID=4532ac5f-a67a-4005-9a11-44e5c4cf2e86
Step 4:
# vgsync vg00
Step 5: check if have any stale issues
# cd /dev/vg00
# for i in `ls lvol*`
>do
>lvdisplay -v /dev/vg00/$i|grep stale
>done
以上表述為作者個人觀點,不代表惠普公司,使用本網站,請遵守網站使用規則和條款
© 版权所有 2024 慧与发展有限责任合伙企业