Je suis en train de jouer avec un serveur en pré-prod sous FreeBSD.
J'ai un disque de 150 Go, formaté d'un seul tenant en ZFS :
zpool create tank da1
zfs set compression=gzip tank
J'ai créé les FS "user" et "Sites" :
zfs create tank/user
zfs set mountpoint=/user tank/user
zfs create tank/Sites
zfs set mountpoint=/Sites tank/Sites
puis les FS de "second niveau" :
zfs create tank/Sites/asso
zfs create tank/Sites/recherche
zfs create tank/Sites/sites
+ un tas d'autres pour un total de 251 file systems
À ce stade j'avais bien tank, tank/user, tank/Sites avec 147 Go d'espace
total chacun.
Quand j'ai commencé à remplir tank/Sites à partir des données du serveur
de prod, l'espace total disponible sur tank/user s'est mis à diminuer.
Cet espace total disponible est calculé comme étant la somme
usedbydataset + usedbychildren + usedbysnapshots + usedbyrefreservation
+ available , ça correspond donc à la taille du "disque", pour un FS
classique.
De même, quand j'ai transféré les données de prod dans tank/user, c'est
tank/Sites qui a commencé à rétrécir.
tank/Sites affiche maintenant un espace total de 95,7 Go dont 17,5 Go
utilisés (usedbychildren uniquement).
tank/user affiche 129,2 Go dont 51 Go utilisés (usedbychildren
uniquement)
tank quant à lui dispose toujours d'un espace total de 147 Go.
Je n'avais pas constaté ce comportement avant. Est-ce normal, ou est ce
que c'est un bug de mon install ? (FreeBSD 8.2 RC3)
patpro
--
A vendre ! http://www.patpro.net/blog/index.php/2008/01/12/133
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Philippe Michel
On 2011-02-18, patpro ~ Patrick Proniewski wrote:
Je n'avais pas constaté ce comportement avant. Est-ce normal, ou est ce que c'est un bug de mon install ? (FreeBSD 8.2 RC3)
Je n'ai jamais utilisé ZFS sous FreeBSD mais je parierais que c'était déjà le cas avant et que tu n'y avais pas fait attention.
Les filesystems ZFS sont quelque-chose de plus "léger" que les filesystems traditionnels, essentiellment un sous-ensemble du pool qui a telles ou telles propriétés.
"ZFS file systems will grow to the size of their storage pools automatically.
ZFS file systems must be built in one and only one storage pool, but a storage pool may have more than one defined file system. Each file system in a storage pool has access to all the unused space in the storage pool. As any one file system uses space, that space is reserved for that file system until the space is released back to the pool by removing the file(s) occupying the space. During this time, the available free space on all the file systems based on the same pool will decrease."
On 2011-02-18, patpro ~ Patrick Proniewski <patpro@boleskine.patpro.net> wrote:
Je n'avais pas constaté ce comportement avant. Est-ce normal, ou est ce
que c'est un bug de mon install ? (FreeBSD 8.2 RC3)
Je n'ai jamais utilisé ZFS sous FreeBSD mais je parierais que c'était
déjà le cas avant et que tu n'y avais pas fait attention.
Les filesystems ZFS sont quelque-chose de plus "léger" que les filesystems
traditionnels, essentiellment un sous-ensemble du pool qui a telles ou
telles propriétés.
"ZFS file systems will grow to the size of their storage pools
automatically.
ZFS file systems must be built in one and only one storage pool, but a
storage pool may have more than one defined file system. Each file system
in a storage pool has access to all the unused space in the storage pool.
As any one file system uses space, that space is reserved for that file
system until the space is released back to the pool by removing the
file(s) occupying the space. During this time, the available free space on
all the file systems based on the same pool will decrease."
Je n'avais pas constaté ce comportement avant. Est-ce normal, ou est ce que c'est un bug de mon install ? (FreeBSD 8.2 RC3)
Je n'ai jamais utilisé ZFS sous FreeBSD mais je parierais que c'était déjà le cas avant et que tu n'y avais pas fait attention.
Les filesystems ZFS sont quelque-chose de plus "léger" que les filesystems traditionnels, essentiellment un sous-ensemble du pool qui a telles ou telles propriétés.
"ZFS file systems will grow to the size of their storage pools automatically.
ZFS file systems must be built in one and only one storage pool, but a storage pool may have more than one defined file system. Each file system in a storage pool has access to all the unused space in the storage pool. As any one file system uses space, that space is reserved for that file system until the space is released back to the pool by removing the file(s) occupying the space. During this time, the available free space on all the file systems based on the same pool will decrease."
talon
Philippe Michel wrote:
ZFS file systems must be built in one and only one storage pool, but a storage pool may have more than one defined file system. Each file system in a storage pool has access to all the unused space in the storage pool. As any one file system uses space, that space is reserved for that file system until the space is released back to the pool by removing the file(s) occupying the space. During this time, the available free space on all the file systems based on the same pool will decrease."
Chez moi:
niobe% zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT jails 18,1G 9,95G 8,18G 54% ONLINE -
Donc les chiffres ne sont pas limpides. Il sembleque l'espace disponible est moindre que l'espace rééllement disponible, peut être une réserve?
--
Michel TALON
Philippe Michel <philippe.michel7@sfr.fr.invalid> wrote:
ZFS file systems must be built in one and only one storage pool, but a
storage pool may have more than one defined file system. Each file system
in a storage pool has access to all the unused space in the storage pool.
As any one file system uses space, that space is reserved for that file
system until the space is released back to the pool by removing the
file(s) occupying the space. During this time, the available free space on
all the file systems based on the same pool will decrease."
Chez moi:
niobe% zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
jails 18,1G 9,95G 8,18G 54% ONLINE -
ZFS file systems must be built in one and only one storage pool, but a storage pool may have more than one defined file system. Each file system in a storage pool has access to all the unused space in the storage pool. As any one file system uses space, that space is reserved for that file system until the space is released back to the pool by removing the file(s) occupying the space. During this time, the available free space on all the file systems based on the same pool will decrease."
Chez moi:
niobe% zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT jails 18,1G 9,95G 8,18G 54% ONLINE -
"ZFS file systems will grow to the size of their storage pools automatically.
ZFS file systems must be built in one and only one storage pool, but a storage pool may have more than one defined file system. Each file system in a storage pool has access to all the unused space in the storage pool. As any one file system uses space, that space is reserved for that file system until the space is released back to the pool by removing the file(s) occupying the space. During this time, the available free space on all the file systems based on the same pool will decrease."
ça ressemble bien à ce que je constate. Heureusement que j'ai mis des quotas sur tous les FS de dernière niveau pour pas que ça dégénère :)
patpro
-- A vendre : KVM IP 16 ports APC http://patpro.net/blog/index.php/2008/01/12/133
In article <ijml3q$l9$1@news.eternal-september.org>,
Philippe Michel <philippe.michel7@sfr.fr.invalid> wrote:
"ZFS file systems will grow to the size of their storage pools
automatically.
ZFS file systems must be built in one and only one storage pool, but a
storage pool may have more than one defined file system. Each file system
in a storage pool has access to all the unused space in the storage pool.
As any one file system uses space, that space is reserved for that file
system until the space is released back to the pool by removing the
file(s) occupying the space. During this time, the available free space on
all the file systems based on the same pool will decrease."
ça ressemble bien à ce que je constate. Heureusement que j'ai mis des
quotas sur tous les FS de dernière niveau pour pas que ça dégénère :)
patpro
--
A vendre : KVM IP 16 ports APC
http://patpro.net/blog/index.php/2008/01/12/133
"ZFS file systems will grow to the size of their storage pools automatically.
ZFS file systems must be built in one and only one storage pool, but a storage pool may have more than one defined file system. Each file system in a storage pool has access to all the unused space in the storage pool. As any one file system uses space, that space is reserved for that file system until the space is released back to the pool by removing the file(s) occupying the space. During this time, the available free space on all the file systems based on the same pool will decrease."
ça ressemble bien à ce que je constate. Heureusement que j'ai mis des quotas sur tous les FS de dernière niveau pour pas que ça dégénère :)
patpro
-- A vendre : KVM IP 16 ports APC http://patpro.net/blog/index.php/2008/01/12/133