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. 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. -- This message posted from opensolaris.org
Hello, Zfs filesystems != zpool this is your mistake I think, Have you tried to export and import your zpool ? I ''ve read something like that on the list but not sure... -C -----Message d''origine----- De?: zfs-discuss-bounces at opensolaris.org [mailto:zfs-discuss-bounces at opensolaris.org] De la part de gsorin Envoy??: mardi 9 d?cembre 2008 04:17 ??: zfs-discuss at opensolaris.org Objet?: [zfs-discuss] ZFS resize partitions 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. 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. -- This message posted from opensolaris.org _______________________________________________ zfs-discuss mailing list zfs-discuss at opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
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. >
Well, when I wanted to export and import the partition, the root partition said it was busy (obviously) and I tried using a secondary attached hdd. By miracle, the zpool increased the size automatically after the reboot. So, it''s that simple. -- This message posted from opensolaris.org
Lol ;D I didn''t not see that was the root pool... -C -----Message d''origine----- De?: zfs-discuss-bounces at opensolaris.org [mailto:zfs-discuss-bounces at opensolaris.org] De la part de gsorin Envoy??: mardi 9 d?cembre 2008 20:49 ??: zfs-discuss at opensolaris.org Objet?: Re: [zfs-discuss] ZFS resize partitions Well, when I wanted to export and import the partition, the root partition said it was busy (obviously) and I tried using a secondary attached hdd. By miracle, the zpool increased the size automatically after the reboot. So, it''s that simple. -- This message posted from opensolaris.org _______________________________________________ zfs-discuss mailing list zfs-discuss at opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss