gsorin 写道: > Hello, > > I have the following issue: > > I'm running solaris 10 in a vmware enviroment. I have a virtual hdd of 8gig > (for example). At some point I can increase the hard drive to 10gig. How can > I resize the ZFS pool to take advantage of the new available space? > The same question applies for physical machines connected to SAN or other > kind of RAID which can increase the "hard drive" size. > export the zpool, relabel the disk through format(1M), import the zpool again.
This could be done automatically after the following projects are integrated: http://bugs.opensolaris.org/view_bug.do?bug_id=6475340 http://bugs.opensolaris.org/view_bug.do?bug_id=6606879 Larry > The following documentation was found but without any real success: > -- > http://www.sun.com/emrkt/campaign_docs/expertexchange/knowledge/solaris_zfs_perf.html > Q: Are ZFS file systems shrinkable? How about fragmentation? Any need to > defrag them? > A: ZFS file systems can be dynamically resized; they can grow or shrink as > needed. The allocation algorithms are such that defragmentation is not an > issue. > -- > Over here (http://harryd71.blogspot.com/2008/08/how-to-resize-zfs.html) we > can see that we can "mirror" the original hard drive if we have 2 hard drives > available, which we don't. > -- > At some googling I found: > zfs set volsize=2G pool/name > but zfs get volsize command returns: > name property value source > poolname volsize - - > poolname/ROOT volsize - - > -- > if I try set i get: > cannot set property for "poolname/whatever" 'volsize' does not apply to > datasets of this type. > > If i trype format -> fdisk I can see that the first (only) partition is > active, has the same first and end cilinder and the percent is lower (80% or > whatever value I increased the hard drive). I can create a new partition. > > I also tried in format -> type but I don't have an autoconfigure option, i > have only default and other, which don't help. > > It is not mandatory to increase the size of the root (operating system) > partition in case this is an issue, I can use another virtual disk for the > increasing part. > > Any hints are really appreciated. > > Thanks. > _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss