Richard L. Hamilton wrote, On 06/18/10 16:15:
Hi
Currently I have 400+ users with quota set to 500MB
limit. Currently the file system is using veritas
file system.
I am planning to migrate all these home directory to
a new server with ZFS. How can i migrate the quotas.
I can create 400+ file system for each users,
but will this affect my system performance during the
system boot up?
Is this recommanded or any alternate is available for
this issue.
user and group quotas have been added to zfs; I think from build 114,
and Solaris 10 10/09 on, they should be available.
See http://docs.sun.com/app/docs/doc/819-5461/gigaz?a=view
for how to set them. This is different from how you set them in
ufs (and I think VxFS lets you set them the same way as with ufs),
and I don't think there's a tool to convert. But if you're setting it
the same for all users, it shouldn't be too hard to script that.
The one thing that bothers me is that "quota" and so on probably will
not report getting close, and there's no soft vs hard limit, so I imagine
that a lot of users would scream that they hadn't been warned when
they hit their limit and can't use any more space on a zfs filesystem
with a user quota affecting them.
Just make sure you create your users home directories as zfs datasets to
be able to use the zfs quota. You may want to look at refquota and
reservation as well. In other words you have a zfs property called a
quota for the dataset and you also have the original Unix quotas.
zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 67.6G 79.1G 77.5K /rpool
rpool/ROOT 20.3G 79.1G 18K legacy
rpool/ROOT/134a-1 26.7M 79.1G 13.4G /
rpool/ROOT/134b 19.8G 79.1G 13.4G /
rpool/ROOT/134b-ABE 272K 79.1G 13.4G /
rpool/ROOT/opensolaris-sru10 456M 79.1G 12.0G /
rpool/ROOT/opensolaris-sru9 21.0M 79.1G 12.0G /
rpool/dump 1023M 79.1G 1023M -
rpool/export 45.2G 79.1G 24K /export
rpool/export/home 19.8G 79.1G 1012K /export/home
rpool/export/home/lw31248 19.8G 79.1G 4.32G /export/home/lwxxxx
rpool/export/install 2.57G 79.1G 2.57G /export/install
rpool/export/opt 2.43G 79.1G 1.66G /export/opt
rpool/export/vbox 20.4G 79.1G 20.4G /export/vbox
rpool/swap 1.02G 79.1G 1.02G -
I have multiple normal Unix directories under my home dataset but a zfs
quota would control all the files and directories under it or datasets.
Confusing but worth a read and a play to see how it works.
_______________________________________________
opensolaris-help mailing list
opensolaris-help@opensolaris.org