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

本文介绍在Solaris系统中如何手动扩展LUN的步骤,适用于未使用卷管理软件的情况。文章详细说明了使用format命令调整VTOC以实现LUN扩展的过程,并提供了必要的警告和建议。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在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博客 ” ,链接:http://blog.itpub.net/228190/viewspace-625523/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/228190/viewspace-625523/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值