ITPub博客

首页 > Linux操作系统 > Linux操作系统 > solaris主机基于metaLUN动态扩展文件系统

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

原创 Linux操作系统 作者:cqubityj 时间:2010-01-19 22:41:54 0 删除 编辑
在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

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/228190/viewspace-625523/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2007-12-19

  • 博文量
    133
  • 访问量
    454944