Re: [zfs-discuss] zpool on fdisk partition
Hi, I read the other posts in this thread, they look fine. But still, I thing you have bad concept. Generally, it is a good idea to separate root pool from data, but as I understand, you have only one physical disk. I would install Solaris using ZFS as the root filesystem on the whole disk and after installation I would probably create another ZFS for data. Finaly I would tune ZFS quotas to achieve best storrage optimization for your needs. Then you can e.g. forget the liveupgrade storage problems. Btw., I read somewhere that one should build ZFS on top of whole disk rather then partitions. This is my opinion. Best, Jozef Hamar _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `- I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. And when it has gone past I will turn the inner eye to see its path. Where the fear has gone there will be nothing. Only I will remain. Hua wrote: I am building a system on a small x86 system by using Solaris 10 10/09. The system disk is 1TB. As Solaris only take 6GB, I plan to allocate the rest to a zpool for data. I want to keep system and data as separated as possible, therefore I tried a. Create a 10G Solaris partition for install system. Then after installation finish, I created second Solaris partition and then zpool for data. This disk layout works fine until the time when I tried to re-install Solaris. The installation program seems always assume there will be only one Solaris partition on a single disk. The new system won't boot although installation finish successfully. I guess the installer gets confused by the disk layout b. Create a 10G Solaris partition for system and an "other" type partition of 990G for data. The zpool is created on block device c0d0p2 by using zpool create pdata c0d0p2 c0d0p1 is the Solaris partition has the system. So far the zpool on top of a fdisk partition seems working fine. But I don't think this is usual/normal way to setup up a zpool, therefore I am not sure whether there are potential problem/risk. Any thoughts will be appreciated. Thanks ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] ZFS directory and file quota
Darren J Moffat wrote: Jozef Hamar wrote: Hi Darren, thanks for reply. E.g., I have mail quota implemented as per-directory quota. I know this can be solved in another way, but still, I would have to change many things in my system in order to make it work. And this is quite easy implementation of mail quota. Now I'm using UFS and ufs quota support. That sounds like you want a quota per user for a given directory. If that is what you need then ZFS provides for this by making the mail directory a ZFS filesystem then using userquota. That way you still only have one ZFS filesystem not one per user account. Agree, creating ZFS per account would solve my problems, but I can't use nfsv4 , nor automounter, so I can't export thousand of filesystems right now. Or using per userquotas, eg: # zfs set userqu...@bob=1g rpool/mail # zfs set userqu...@jane=2g rpool/mail Yes, this idea is good, but I wanted to prevent this. :-) In that case instead of rewriting the part of my code which handles quota creation/updating/checking, I would need to completely rewrite the quota logic. :-( But thanks anyway, I'll try to survive until NFSv4 deployment would by possible here and finally make use of everything ZFS offers. Jozef Hamar ... ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] ZFS directory and file quota
Hi Darren, thanks for reply. E.g., I have mail quota implemented as per-directory quota. I know this can be solved in another way, but still, I would have to change many things in my system in order to make it work. And this is quite easy implementation of mail quota. Now I'm using UFS and ufs quota support. Agree, creating ZFS per account would solve my problems, but I can't use nfsv4 , nor automounter, so I can't export thousand of filesystems right now. Thanks. Jozef Hamar _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `- I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. And when it has gone past I will turn the inner eye to see its path. Where the fear has gone there will be nothing. Only I will remain. Darren J Moffat wrote: Jozef Hamar wrote: Hi all, I can not find any instructions on how to set the file quota (i.e. maximum number of files per filesystem/directory) or directory quota (maximum size that files in particular directory can consume) in ZFS. That is because it doesn't exist. I understand ZFS has no support for this. Am I right? If I am, are there any plans to include this in the next releases of OpenSolaris/Solaris? Why would you want to do that rather than set a maximum amount of space a filesystem, user or group can consume? What is the real problem you are trying to solve by restricting the number of files that can be created ? ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[zfs-discuss] ZFS directory and file quota
Hi all, I can not find any instructions on how to set the file quota (i.e. maximum number of files per filesystem/directory) or directory quota (maximum size that files in particular directory can consume) in ZFS. I understand ZFS has no support for this. Am I right? If I am, are there any plans to include this in the next releases of OpenSolaris/Solaris? Thank you. -- Jozef Hamar _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `- I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. And when it has gone past I will turn the inner eye to see its path. Where the fear has gone there will be nothing. Only I will remain. ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss