find the file
find / -name esx.conf
backup existing config:
cp /etc/vmware/esx.conf /etc/vmware/esx.conf.bak
(or cp /etc/vmware/esx.conf / and mv esx.conf esx.conf.bak )
edit the file
vi /etc/vmware/esx.conf
verify
cat /etc/vmware/esx.conf | grep vmhba
reboot the esx
-----------------------example----------------
correct names
---------------- vi help ---------------------
Vi: Search and Replace
Change to normal mode with.
Search (Wraped around at end of file):
Search STRING forward : / STRING.
Search STRING backward: ? STRING.
Repeat search: n
Repeat search in opposite direction: N (SHIFT-n)
Replace: Same as with sed, Replace OLD with NEW:
First occurrence on current line: :s/OLD/NEW
Globally (all) on current line: :s/OLD/NEW/g
Between two lines #,#: :#,#s/OLD/NEW/g
Every occurrence in file: :%s/OLD/NEW/g
find / -name esx.conf
backup existing config:
cp /etc/vmware/esx.conf /etc/vmware/esx.conf.bak
(or cp /etc/vmware/esx.conf / and mv esx.conf esx.conf.bak )
edit the file
vi /etc/vmware/esx.conf
verify
cat /etc/vmware/esx.conf | grep vmhba
reboot the esx
-----------------------example----------------
correct names
/device/000:000:31.2/vmkname = "vmhba0"
/device/000:003:00.0/vmkname = "vmhba1"
/device/000:011:00.0/vmkname = "vmhba2"
/device/000:011:00.1/vmkname = "vmhba3"
/device/000:132:00.0/vmkname = "vmhba4"
/device/000:132:00.1/vmkname = "vmhba5"
incorrect names
-------------------------------------------------------------------------------
/device/000:000:31.2/vmkname = "vmhba5" -> "vmhba0"
/device/000:003:00.0/vmkname = "vmhba0" -> "vmhba1"
/device/000:011:00.0/vmkname = "vmhba1" -> "vmhba2"
/device/000:011:00.1/vmkname = "vmhba2" -> "vmhba3"
/device/000:132:00.0/vmkname = "vmhba3" -> "vmhba4"
/device/000:132:00.1/vmkname = "vmhba4" -> "vmhba5"
---------------- vi help ---------------------
Vi: Search and Replace
Change to normal mode with
Search (Wraped around at end of file):
Search STRING forward : / STRING.
Search STRING backward: ? STRING.
Repeat search: n
Repeat search in opposite direction: N (SHIFT-n)
Replace: Same as with sed, Replace OLD with NEW:
First occurrence on current line: :s/OLD/NEW
Globally (all) on current line: :s/OLD/NEW/g
Between two lines #,#: :#,#s/OLD/NEW/g
Every occurrence in file: :%s/OLD/NEW/g
No comments:
Post a Comment