HP-UX 識別儲存碟符不一致解決辦法(轉)
在HP-UX上安裝RAC或者配置雙機時經常會遇到碟符不一致的情況,下面是從網上搜到的帖子,根據其修改可以修改碟符及instance number。
1.可以在2臺主機上通過scsimgr -p get_attr all_lun -a hw_path -a device_file -a wwid來檢視wwn,wwn一致的為同一個盤,也可以通過它與儲存劃得每個lun對應起來
2.通過ioinit來修改,具體過程如下:
備份先:備份ioconfig及ioscan的輸出
更改過程
# ioscan –funNCdisk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 3 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 300 GMBA3300NC
/dev/disk/disk3 /dev/disk/disk3_p2 /dev/rdisk/disk3 /dev/rdisk/disk3_p2
/dev/disk/disk3_p1 /dev/disk/disk3_p3 /dev/rdisk/disk3_p1 /dev/rdisk/disk3_p3
disk 4 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HL-DT-STDVD-RAM GH40L
/dev/disk/disk4 /dev/rdisk/disk4
disk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP 300 GMBA3300NC
/dev/disk/disk5 /dev/rdisk/disk5
disk 12 64000/0xfa00/0x6 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk12 /dev/rdisk/disk12
disk 13 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk13 /dev/rdisk/disk13
disk 14 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk14 /dev/rdisk/disk14
disk 15 64000/0xfa00/0x9 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk15 /dev/rdisk/disk15
disk 16 64000/0xfa00/0xa esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk16 /dev/rdisk/disk16
disk 17 64000/0xfa00/0xb esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk17 /dev/rdisk/disk17
現在要將disk17改為disk28,因為我僅僅是要修改一個disk,所以就直接vi一個infile檔案,如果disk比較多,ioscan加awk來做
#cat infile
64000/0xfa00/0xb disk 28
這裡的64000/0xfa00/0xb是ioscan裡面的disk17的H/W Path
# ioinit -f infile
# ioscan -funNCdisk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 3 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 300 GMBA3300NC
/dev/disk/disk3 /dev/disk/disk3_p2 /dev/rdisk/disk3 /dev/rdisk/disk3_p2
/dev/disk/disk3_p1 /dev/disk/disk3_p3 /dev/rdisk/disk3_p1 /dev/rdisk/disk3_p3
disk 4 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HL-DT-STDVD-RAM GH40L
/dev/disk/disk4 /dev/rdisk/disk4
disk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP 300 GMBA3300NC
/dev/disk/disk5 /dev/rdisk/disk5
disk 12 64000/0xfa00/0x6 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk12 /dev/rdisk/disk12
disk 13 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk13 /dev/rdisk/disk13
disk 14 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk14 /dev/rdisk/disk14
disk 15 64000/0xfa00/0x9 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk15 /dev/rdisk/disk15
disk 16 64000/0xfa00/0xa esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk16 /dev/rdisk/disk16
disk 28 64000/0xfa00/0xb esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk17 /dev/disk/disk28 /dev/rdisk/disk17 /dev/rdisk/disk28
# rmsf /dev/disk/disk17
# rmsf /dev/rdisk/disk17
# ioscan -funNCdisk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 3 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 300 GMBA3300NC
/dev/disk/disk3 /dev/disk/disk3_p2 /dev/rdisk/disk3 /dev/rdisk/disk3_p2
/dev/disk/disk3_p1 /dev/disk/disk3_p3 /dev/rdisk/disk3_p1 /dev/rdisk/disk3_p3
disk 4 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HL-DT-STDVD-RAM GH40L
/dev/disk/disk4 /dev/rdisk/disk4
disk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP 300 GMBA3300NC
/dev/disk/disk5 /dev/rdisk/disk5
disk 12 64000/0xfa00/0x6 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk12 /dev/rdisk/disk12
disk 13 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk13 /dev/rdisk/disk13
disk 14 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk14 /dev/rdisk/disk14
disk 15 64000/0xfa00/0x9 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk15 /dev/rdisk/disk15
disk 16 64000/0xfa00/0xa esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk16 /dev/rdisk/disk16
disk 28 64000/0xfa00/0xb esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk28 /dev/rdisk/disk28
主機重啟後disk instance number不會發生變化
原文地址:http://bbs.chinaunix.net/thread-1754361-1-1.html
1.可以在2臺主機上通過scsimgr -p get_attr all_lun -a hw_path -a device_file -a wwid來檢視wwn,wwn一致的為同一個盤,也可以通過它與儲存劃得每個lun對應起來
2.通過ioinit來修改,具體過程如下:
備份先:備份ioconfig及ioscan的輸出
更改過程
# ioscan –funNCdisk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 3 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 300 GMBA3300NC
/dev/disk/disk3 /dev/disk/disk3_p2 /dev/rdisk/disk3 /dev/rdisk/disk3_p2
/dev/disk/disk3_p1 /dev/disk/disk3_p3 /dev/rdisk/disk3_p1 /dev/rdisk/disk3_p3
disk 4 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HL-DT-STDVD-RAM GH40L
/dev/disk/disk4 /dev/rdisk/disk4
disk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP 300 GMBA3300NC
/dev/disk/disk5 /dev/rdisk/disk5
disk 12 64000/0xfa00/0x6 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk12 /dev/rdisk/disk12
disk 13 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk13 /dev/rdisk/disk13
disk 14 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk14 /dev/rdisk/disk14
disk 15 64000/0xfa00/0x9 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk15 /dev/rdisk/disk15
disk 16 64000/0xfa00/0xa esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk16 /dev/rdisk/disk16
disk 17 64000/0xfa00/0xb esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk17 /dev/rdisk/disk17
現在要將disk17改為disk28,因為我僅僅是要修改一個disk,所以就直接vi一個infile檔案,如果disk比較多,ioscan加awk來做
#cat infile
64000/0xfa00/0xb disk 28
這裡的64000/0xfa00/0xb是ioscan裡面的disk17的H/W Path
# ioinit -f infile
# ioscan -funNCdisk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 3 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 300 GMBA3300NC
/dev/disk/disk3 /dev/disk/disk3_p2 /dev/rdisk/disk3 /dev/rdisk/disk3_p2
/dev/disk/disk3_p1 /dev/disk/disk3_p3 /dev/rdisk/disk3_p1 /dev/rdisk/disk3_p3
disk 4 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HL-DT-STDVD-RAM GH40L
/dev/disk/disk4 /dev/rdisk/disk4
disk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP 300 GMBA3300NC
/dev/disk/disk5 /dev/rdisk/disk5
disk 12 64000/0xfa00/0x6 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk12 /dev/rdisk/disk12
disk 13 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk13 /dev/rdisk/disk13
disk 14 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk14 /dev/rdisk/disk14
disk 15 64000/0xfa00/0x9 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk15 /dev/rdisk/disk15
disk 16 64000/0xfa00/0xa esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk16 /dev/rdisk/disk16
disk 28 64000/0xfa00/0xb esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk17 /dev/disk/disk28 /dev/rdisk/disk17 /dev/rdisk/disk28
# rmsf /dev/disk/disk17
# rmsf /dev/rdisk/disk17
# ioscan -funNCdisk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 3 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 300 GMBA3300NC
/dev/disk/disk3 /dev/disk/disk3_p2 /dev/rdisk/disk3 /dev/rdisk/disk3_p2
/dev/disk/disk3_p1 /dev/disk/disk3_p3 /dev/rdisk/disk3_p1 /dev/rdisk/disk3_p3
disk 4 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HL-DT-STDVD-RAM GH40L
/dev/disk/disk4 /dev/rdisk/disk4
disk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP 300 GMBA3300NC
/dev/disk/disk5 /dev/rdisk/disk5
disk 12 64000/0xfa00/0x6 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk12 /dev/rdisk/disk12
disk 13 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk13 /dev/rdisk/disk13
disk 14 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk14 /dev/rdisk/disk14
disk 15 64000/0xfa00/0x9 esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk15 /dev/rdisk/disk15
disk 16 64000/0xfa00/0xa esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk16 /dev/rdisk/disk16
disk 28 64000/0xfa00/0xb esdisk CLAIMED DEVICE HP EF0300FATFD
/dev/disk/disk28 /dev/rdisk/disk28
主機重啟後disk instance number不會發生變化
原文地址:http://bbs.chinaunix.net/thread-1754361-1-1.html
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26194851/viewspace-732384/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- emc powerpath 識別裝置名不一致解決辦法
- EMC LUN ON HP UNIX碟符不一致的解決方法
- HP-UX磁碟儲存知識UX
- 行動硬碟不能識別的解決辦法硬碟
- 隨身碟無法停止通用卷的解決辦法
- C++儲存修飾符解釋 (轉)C++
- RAC中通過nkmod解決各個節點碟符不一致問題
- 電腦無法識別隨身碟是什麼原因,怎麼解決?
- ISCSI碟符飄逸問題解決
- Windows中隨身碟無法格式化的解決辦法Windows
- 隨身碟無法停止通用卷的幾種解決辦法
- WM Define Storage Type Indicators定義儲存型別識別符號(八)Indicator型別符號
- USB儲存裝置無法識別的原因
- Win10系統隨身碟/行動硬碟無法識別怎麼辦 win10識別不了隨身碟/行動硬碟如何解決Win10硬碟
- C++儲存修飾符解釋 zosatapo(原作) (轉)C++
- Windows安裝時不識別硬碟(儲存器)的解決思路.Windows硬碟
- 命令識別符號(轉)符號
- win10行動硬碟無法顯示碟符怎麼恢復 win10無法顯示行動硬碟碟符解決方法Win10硬碟
- 淺談常見的行動硬碟無法識別的解決辦法硬碟
- java基本無法-識別符號Java符號
- 無法識別usb裝置怎麼辦_win10無法識別usb裝置的解決方法Win10
- WM Defining Bulk Storage Indicator定義大容量儲存識別符號(十一)Indicator符號
- WM Defining Storage Section Indicator定義儲存區識別符號(十)Indicator符號
- 瞭解HP-UX命令語法(轉)UX
- Linux下使用Matlab符號函式出錯的解決辦法(轉)LinuxMatlab符號函式
- cad點選儲存或另存為時軟體卡死的解決辦法
- Mac截圖軟體CleanShot X 不能識別文字的解決辦法Mac
- Android--系統不識別adb命令的解決辦法Android
- win10更換碟符報引數錯誤怎麼辦_win10系統碟符改不了引數錯誤解決方法Win10
- 隨身碟插入蘋果mac系統不能識別的解決方法蘋果Mac
- win10 無法識別顯示器怎麼辦 win10無法識別顯示器解決方法Win10
- win10 3屏無法識別怎麼辦_win10電腦3屏無法識別解決方法Win10
- 儲存_硬碟_小知識_轉硬碟
- 執行powermt 顯示儲存鏈路狀態為dead的解決辦法
- 標準HTML識別符號 (轉)HTML符號
- WIN10識別不到音響怎麼辦 WIN10無法識別音響解決方法Win10
- python無法識別命令的解決Python
- root鎖屏解決辦法之一(轉)