更改sybase下設備名

一:基本情況

環境:aix+ha+sybase 互備

起因:由於之前擴tempdb空間,在兩臺aix上建了相同的lv_tempdb名字,服務切換到同一臺機器上,導致卷組不能激活,服務啓動失敗

處理辦法:更改系統表sysdevices

停止sybase服務

使用chlv -n 重命名lv名字

啓動syabase服務

除此還需兩邊導出卷組在重新導入,ha同步校驗等
 
二:以windows爲例模擬該步驟(重命名tempdb設備)
1 設備基本狀況
 

 
2 更新設備tempdb 設備物理名字
use master
go
sp_configure 'allow updates to system tables',1
go
update sysdevices set phyname=’E:\data\newtempdb’ where name=’tempdb’
go
sp_configure 'allow updates to system tables',0
go
 
3 停止sybase服務,在操作系統更改設備名字
E:\data\tempdb----------------àE:\data\newtempdb
 
4 啓動sybase服務
 

5 驗證
 

 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章