Gregory Edwards - Software Support
2009-Jan-16 23:02 UTC
[zfs-discuss] Problem setting quotas on a zfs pool
Solaris 10 5/08 Customer migrated to a new emc array with a snap shot and did a send and receive. He is now trying to set quotas on the zfs file system and getting the following error. [root at osprey /] # zfs set quota=800g target/u05 cannot set property for ''target/u05'': size is less than current used or reserved space [root at osprey /] # zfs list -o name,used,available NAME USED AVAIL target 1.32T 206G target/u02 72.2G 148G target/u02 at 1 12.0G - target/u03 61.1G 159G target/u03 at 1 12.1G - target/u04 126G 93.6G target/u04 at 1 14.5G - target/u05 1.06T 206G target/u05 at 1 671G - target/zoneroot 3.70G 4.30G target/zoneroot at 1 12.9M - zfspool 553G 1018G zfspool/u02 60.0G 160G zfspool/u02 at 1 0 - zfspool/u03 48.8G 171G zfspool/u03 at 1 0 - zfspool/u04 112G 108G zfspool/u04 at 1 0 - zfspool/u05 328G 472G zfspool/u05 at 1 0 - zfspool/zoneroot 3.69G 4.31G zfspool/zoneroot at 1 55K - He was able to set them all all pools except target/u05. He is also asking if it is safe for him to delete the snap shot without causing any problems? target/u05 at 1 671G -- <http://www.sun.com> * Gregory D Edwards * Technical Support Engineer - Operating Systems *Sun Microsystems * Phone: 1 800 872 4786 ref case # Email: greg.edwards at sun.com Working Hours: 0900-1800 Mon-Fri MST <http://www.sun.com/storage> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090116/333851c7/attachment.html>
Gregory Edwards - Software Support wrote:> [root at osprey /] # zfs set quota=800g target/u05 > > cannot set property for ''target/u05'': size is less than current used or > reserved space...> target/u05 1.06T 206G > > target/u05 at 1 671G -...> He was able to set them all all pools except target/u05. He is also > asking if it is safe for him to delete the > snap shot without causing any problems? target/u05 at 1 671GWell, he''ll lose the snapshot, but otherwise it should be fine. Unless there''s data he needs to recover from the snap, I don''t see any issues. -- Carson
Carson Gaspar wrote:> Gregory Edwards - Software Support wrote: > >> [root at osprey /] # zfs set quota=800g target/u05 >> >> cannot set property for ''target/u05'': size is less than current used or >> reserved space > ... >> target/u05 1.06T 206G >> >> target/u05 at 1 671G - > ... >> He was able to set them all all pools except target/u05. He is also >> asking if it is safe for him to delete the >> snap shot without causing any problems? target/u05 at 1 671G > > Well, he''ll lose the snapshot, but otherwise it should be fine. Unless > there''s data he needs to recover from the snap, I don''t see any issues.They may want to use "refquota" instead of "quota" However, I do not believe refquota is available in Solaris 10 5/08, so they would need to upgrade. Description of refquota from zfs(1m): refquota=size | none Limits the amount of space a dataset can consume. This property enforces a hard limit on the amount of space used. This hard limit does not include space used by descendents, including file systems and snapshots. -- richard-who-has-been-RTFMing-all-day