由于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