solaris主机基于metaLUN动态扩展文件系统

在Solaris系统上,如果使用了VxVM或Sun Volume Manager则不支持LUN的动态扩展。一般仅在单分区LUN且在无卷管理软件的情况下才支持LUN的动态扩展。

由于devfsadm无法探测到LUN的动态扩展,需要使用format命令修改VTOC。步骤如下:

  1. Unmount the file system to be expanded.
  2. Run the format command.
  3. Select the disk. (It doesn't matter if it's the cXtYdZ version or the emcpowerXa version, but I use the emcpowerXa.)
  4. Type partition.
  5. Type print. (Take note of the layout.) 
  6. Type quit.
  7. Type type.
  8. Choose option 0 (autoconfigure).
  9. Type partition.
  10. Type print. (Check the layout.)
  11. If needed, type modify.
  12. Make any changes to the slices, as necessary, based on the initial layout. Generally slice 2 (whole disk) is used when dealing with LUNs, in which case, the slice layout does not really matter.
  13. Select print. (Check that the layout is the same as the original layout with the required slice being at the new size.)
  14. Select label. (The changes need to be written to disk to take effect.)
  15. Type quit.
  16. Type quit.
  17. Run growfs /dev/rdsk/emcpowerXc. (Note: Solaris slices are 0 through 7 and equate to emcpowerXa through emcpowerXh, and emcpowerXc equals slice 2.)
  18. Run fsck (optional)
  19. Run mount /dev/dsk/emcpowerXc /.
参考:
http://www.sun.com/bigadmin/content/submitted/emc_metaluns.jsp
http://www.prefetch.net/articles/solarisgrowclariionlun.html

请使用浏览器的分享功能分享到微信等