This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[SOLVED] zfs storage is double actual storage at present

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
al2lo
Starter
Starter
Posts: 22
Joined: 21 Jul 2014 10:55
Status: Offline

[SOLVED] zfs storage is double actual storage at present

Post by al2lo »

HI i am a newbee,

i have deployed a nas4free drive with 2x4tb seagate nas drives for backup storage for sbs 2008.

The data in du / is showing double the storage for each bit of data.

The directory shows 348g of data and du shows 700g storage used which matchs the amount left free. Where is this extra storage being used and can i stop it as the data will be copied offsite?

thanks in advance

albert

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: zfs storage is double actual storage at present

Post by raulfg3 »

please post how do you configure in ZFS your 2x4tb Disk, if are in mirror , perhaps are correct.

PD: and post info from Diagnostics|Information| Space used

http://wiki.nas4free.org/doku.php?id=do ... nformation
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

al2lo
Starter
Starter
Posts: 22
Joined: 21 Jul 2014 10:55
Status: Offline

Re: zfs storage is double actual storage at present

Post by al2lo »

could be anything as newbee - please make comments as you see fit - i am pretty thick skinned and need to learn this system better

config of zfs:

Code: Select all

-<zfs>


-<vdevices>


-<vdevice>

<uuid>1fe501b5-6029-4895-8525-4363c6865f96</uuid>

<name>VdataMirror</name>

<type>mirror</type>

<device>/dev/ada0</device>

<device>/dev/ada1</device>

<desc/>

</vdevice>

</vdevices>


-<pools>


-<pool>

<uuid>9f314195-30e0-4062-b80d-c9fb8c6c7de8</uuid>

<name>Pool1</name>

<vdevice>VdataMirror</vdevice>

<root/>

<mountpoint/>

<desc>Pool for Data in ZFS 1</desc>

</pool>

</pools>


-<datasets>


-<dataset>

<uuid>0be43518-59bb-43c6-82a7-aad7fad357bc</uuid>

<name>CAD Dataset</name>

<pool>Pool1</pool>

<compression>off</compression>

<dedup>off</dedup>

<sync>standard</sync>

<atime>on</atime>

<canmount/>

<xattr/>

<quota/>

<reservation/>

<desc>CAD Data Storage Dataset</desc>


-<accessrestrictions>

<owner>root</owner>

<group>wheel</group>

<mode>0777</mode>

</accessrestrictions>

</dataset>


-<dataset>

<uuid>ffd3bad2-161c-4317-bee8-e70c8106fbb9</uuid>

<name>Mail Dataset</name>

<pool>Pool1</pool>

<compression>off</compression>

<dedup>off</dedup>

<sync>standard</sync>

<atime>on</atime>

<canmount/>

<xattr/>

<quota/>

<reservation/>

<desc>Mail Dataset Storage</desc>


-<accessrestrictions>

<owner>root</owner>

<group>wheel</group>

<mode>0777</mode>

</accessrestrictions>

</dataset>


-<dataset>

<uuid>d243038e-9967-4512-849d-02a2b8117fcb</uuid>

<name>SBS Backups</name>

<pool>Pool1</pool>

<compression>off</compression>

<dedup>off</dedup>

<sync>standard</sync>

<atime>on</atime>

<canmount/>

<xattr/>

<quota/>

<reservation/>

<desc>Petal SBS Backups DATASET</desc>


-<accessrestrictions>

<owner>root</owner>

<group>wheel</group>

<mode>0777</mode>

</accessrestrictions>

</dataset>


-<dataset>

<uuid>17c7825b-fafc-4152-98bd-458b37cea0db</uuid>

<name>SQL Backup</name>

<pool>Pool1</pool>

<compression>off</compression>

<dedup>off</dedup>

<sync>standard</sync>

<atime>on</atime>

<canmount/>

<xattr/>

<quota/>

<reservation/>

<desc>Petal SQL Backups DATASET</desc>


-<accessrestrictions>

<owner>root</owner>

<group>wheel</group>

<mode>0777</mode>

</accessrestrictions>

</dataset>

</datasets>

</zfs>

<mounts> </mounts>


-<samba>

<netbiosname>DataStore</netbiosname>

<workgroup>PETAL</workgroup>

<serverdesc>File Server Data</serverdesc>

<security>ads</security>

<maxprotocol>SMB2</maxprotocol>

<guestaccount>ftp</guestaccount>

<maptoguest>Bad User</maptoguest>

<localmaster>no</localmaster>

<rcvbuf>64240</rcvbuf>

<sndbuf>64240</sndbuf>

<storedosattributes/>

<largereadwrite/>

<aiorsize>4096</aiorsize>

<aiowsize>4096</aiowsize>

<aiowbehind/>

<if/>

<pwdsrv>10.0.0.4</pwdsrv>

<winssrv>10.0.0.4</winssrv>

<timesrv>no</timesrv>

<doscharset>CP437</doscharset>

<unixcharset>UTF-8</unixcharset>

<loglevel>3</loglevel>

<easupport/>

<aio/>

<enable/>


-<share>

<uuid>2d034379-a6f1-44d7-8ecb-39ec2ae8d66e</uuid>

<name>Barry</name>

<path>/mnt/Pool1/Mail Dataset/Barry/</path>

<comment>Barrys Email Store</comment>

<browseable/>

<guest/>

<inheritpermissions/>

<hidedotfiles/>

<shadowcopy/>

<shadowformat>auto-%Y%m%d-%H%M%S</shadowformat>

<zfsacl/>

<hostsallow/>

<hostsdeny/>

</share>


-<share>

<uuid>861005b8-75dc-473c-b0ec-14479a15a14b</uuid>

<name>CAD</name>

<path>/mnt/Pool1/Cad Dataset/CAD/</path>

<comment>CAD Data Store</comment>

<browseable/>

<guest/>

<inheritpermissions/>

<hidedotfiles/>

<shadowcopy/>

<shadowformat>auto-%Y%m%d-%H%M%S</shadowformat>

<zfsacl/>

<hostsallow/>

<hostsdeny/>

</share>


-<share>

<uuid>0dca5f72-547b-4db3-91f7-a4555dbbb0f4</uuid>

<name>Keith</name>

<path>/mnt/Pool1/Mail Dataset/Keith/</path>

<comment>Keith Mail Store</comment>

<browseable/>

<guest/>

<inheritpermissions/>

<hidedotfiles/>

<shadowcopy/>

<shadowformat>auto-%Y%m%d-%H%M%S</shadowformat>

<zfsacl/>

<hostsallow/>

<hostsdeny/>

</share>


-<share>

<uuid>0cfb5adf-a970-413f-8448-3d1a3c08ab02</uuid>

<name>Mail Archve</name>

<path>/mnt/Pool1/Mail Dataset/Mail Archive/</path>

<comment>Mail Data Store</comment>

<browseable/>

<guest/>

<inheritpermissions/>

<hidedotfiles/>

<shadowcopy/>

<shadowformat>auto-%Y%m%d-%H%M%S</shadowformat>

<zfsacl/>

<hostsallow/>

<hostsdeny/>

</share>


-<share>

<uuid>f2ce2d29-fb30-4a56-b738-18513c277c2f</uuid>

<name>PETALSBS Backup</name>

<path>/mnt/Pool1/SBS Backups/PetalSBS Backups/</path>

<comment>Petal SBS Backups</comment>

<browseable/>

<guest/>

<inheritpermissions/>

<hidedotfiles/>

<shadowcopy/>

<shadowformat>auto-%Y%m%d-%H%M%S</shadowformat>

<zfsacl/>

<hostsallow/>

<hostsdeny/>

<auxparam>inheritpermissions=Yes</auxparam>

<auxparam>inheritacls=Yes</auxparam>

<auxparam>inheritowner=Yes</auxparam>

<auxparam>maparchive=No</auxparam>

<auxparam>mapreadonly=no</auxparam>

<auxparam>vfs objects=zfsacl</auxparam>

<auxparam>nfs4:mode=special</auxparam>

<auxparam>nfs4:acedup=merge</auxparam>

<auxparam>nfs4:chown=yes</auxparam>

</share>


-<share>

<uuid>56bcd08f-3e63-441f-be94-1fb00b5294e5</uuid>

<name>PETALSQL Backup</name>

<path>/mnt/Pool1/SQL Backups/PetalSQL Backups/</path>

<comment>Petal SQL Backups</comment>

<browseable/>

<guest/>

<inheritpermissions/>

<hidedotfiles/>

<shadowcopy/>

<shadowformat>auto-%Y%m%d-%H%M%S</shadowformat>

<zfsacl/>

<hostsallow/>

<hostsdeny/>

<auxparam>inheritpermissions=Yes</auxparam>

<auxparam>inheritacls=Yes</auxparam>

<auxparam>inheritowner=Yes</auxparam>

<auxparam>maparchive=No</auxparam>

<auxparam>mapreadonly=no</auxparam>

<auxparam>vfs objects=zfsacl</auxparam>

<auxparam>nfs4:mode=special</auxparam>

<auxparam>nfs4:acedup=merge</auxparam>

<auxparam>nfs4:chown=yes</auxparam>

</share>


-<share>

<uuid>ea5fd9cd-f982-43b2-81c8-f872e15ad7ef</uuid>

<name>Pat</name>

<path>/mnt/Pool1/Mail Dataset/Pat/</path>

<comment>Pat Email Store</comment>

<browseable/>

<guest/>

<inheritpermissions/>

<hidedotfiles/>

<shadowcopy/>

<shadowformat>auto-%Y%m%d-%H%M%S</shadowformat>

<zfsacl/>

<hostsallow/>

<hostsdeny/>

</share>

</samba>

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: zfs storage is double actual storage at present

Post by raulfg3 »

Please post info from Diagnostics|Information| Space used

and keep in mind that you configure your ZFS pool as a mirror

Code: Select all

<type>mirror</type>

<device>/dev/ada0</device>

<device>/dev/ada1</device>
This mean that all files copied to one disk, are copied to second disk too, so your free space is really free space of only one disk.

this is a good config to have data mirrored, so if you lose a disk, your data can be still accesible, and you only need to insert/replace defective disk, and reconstruct the mirror.

This clarify your question?.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

al2lo
Starter
Starter
Posts: 22
Joined: 21 Jul 2014 10:55
Status: Offline

Re: zfs storage is double actual storage at present

Post by al2lo »

Thanks for the prompt replies.

I expect mirroring on disks so 2x4tb becomes 1 Tb disk.

What is happening is that du is showing 700g for disk space of 348g.

maybe du is showing both disk copies?

info requested:
Free disk space
Filesystem Size Used Avail Capacity Mounted on
/dev/md0 223M 219M 4.0M 98% /
devfs 1.0k 1.0k 0B 100% /dev
/dev/da0a 117M 114M 2.4M 98% /cf
procfs 4.0k 4.0k 0B 100% /proc
Pool1 3.6T 3.3T 319G 91% /mnt/Pool1
/dev/md1 61M 9.1M 50M 15% /var

maybe the total is correct for pool1 - i have other datasets and will check further as well.

al2lo
Starter
Starter
Posts: 22
Joined: 21 Jul 2014 10:55
Status: Offline

Re: zfs storage is double actual storage at present

Post by al2lo »

hi,

does seem that du / is reporting total disk usage on both disks.

I assume that is right and zfs mirroring is above that?

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: zfs storage is double actual storage at present

Post by raulfg3 »

yes.

try

Code: Select all

du  /mnt/Pool1
instead
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

al2lo
Starter
Starter
Posts: 22
Joined: 21 Jul 2014 10:55
Status: Offline

Re: zfs storage is double actual storage at present

Post by al2lo »

much appreciated for the quick and good answers.

du /mnt/Pool1 gives same stuff only the datasets though.

thanks again

albert

al2lo
Starter
Starter
Posts: 22
Joined: 21 Jul 2014 10:55
Status: Offline

Re: zfs storage is double actual storage at present

Post by al2lo »

how do i mark as closed /answered etc..

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [SOLVED] zfs storage is double actual storage at present

Post by raulfg3 »

you only need to edit your first post.

but this time I done it for you.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

al2lo
Starter
Starter
Posts: 22
Joined: 21 Jul 2014 10:55
Status: Offline

Re: [SOLVED] zfs storage is double actual storage at present

Post by al2lo »

again thanks

albert

Post Reply

Return to “ZFS (only!)”