在Solaris系统上,如果使用了VxVM或Sun Volume Manager则不支持LUN的动态扩展。一般仅在单分区LUN且在无卷管理软件的情况下才支持LUN的动态扩展。
由于devfsadm无法探测到LUN的动态扩展,需要使用format命令修改VTOC。步骤如下:
http://www.sun.com/bigadmin/content/submitted/emc_metaluns.jsp
http://www.prefetch.net/articles/solarisgrowclariionlun.html
由于devfsadm无法探测到LUN的动态扩展,需要使用format命令修改VTOC。步骤如下:
- Unmount the file system to be expanded.
- Run the format command.
- Select the disk. (It doesn't matter if it's the cXtYdZ version or the emcpowerXa version, but I use the emcpowerXa.)
- Type partition.
- Type print. (Take note of the layout.)
- Type quit.
- Type type.
- Choose option 0 (autoconfigure).
- Type partition.
- Type print. (Check the layout.)
- If needed, type modify.
- 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.
- Select print. (Check that the layout is the same as the original layout with the required slice being at the new size.)
- Select label. (The changes need to be written to disk to take effect.)
- Type quit.
- Type quit.
- Run growfs /dev/rdsk/emcpowerXc. (Note: Solaris slices are 0 through 7 and equate to emcpowerXa through emcpowerXh, and emcpowerXc equals slice 2.)
- Run fsck (optional)
- 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/