ESX4.1 修改文件块大小

本文介绍如何重新配置ESX 4.x安装器以指定VMFS卷的块大小,并提供详细步骤指导用户完成从安装盘启动到编辑配置文件的过程。

Reconfiguring the ESX 4.x installer and formatting new VMFS volumes with a specific block size

To reconfigure the installer to format VMFS partitions with a specified block size:

  1. Boot the ESX installation DVD and choose Install in graphical mode.
  2. Press Ctrl+Alt+F2 to switch to the shell.
  3. Run:

    ps | grep Xorg
      
  4. Kill the PID which shows Xorg -br -logfile ...
     
    For example, run:
     
    kill 590
     
    Where 
    590
     is the PID, per above.
     
    Notes
    :
    • If you specified a GUI mode installation, killing the process identified as Xorg may switch you back to another console. If this occurs, press Ctrl+Alt+F2 to return to the previous console.
    • If after killing the Xorg process you get the message "Press <return> to reboot", press Ctrl+Alt+F3 to go to another console and continue working there without rebooting.
     
  5. To switch to the configuration directory, run:

    cd /usr/lib/vmware/weasel
     
      
  6. To edit the configuration script, run:

    vi fsset.py

    Note: For more information on editing files, see Editing configuration files in VMware ESX (1017022).
     
  7. Locate class vmfs3FileSystem(FileSystemType).

  8. Edit the blockSizeMB parameter to the block size that you want. It is currently be set to 1. The only values that work correctly are 1, 2, 4, and 8.

    Note: Press i for insert mode.
     
  9. To save and close the file, press Esc, type :wq! and press Enter. The exclamation mark is needed to force the action of saving as the file is read only.

  10. Verify that the content has been changed running:
     
    grep -i blockSizeMB fsset.py
     
  11. To switch back to the root directory, run:

    cd /
     
  12. To launch the installer with the new configuration, run:

    /bin/weasel
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值