Hot answers tagged

39

I have been using freenas on a spare machine with 4x 1TB hard drives (2 raid 1's, so 2TB usable). It has been up 24/7 for 6 months. I find it brilliant! I tested many NAS's devices and only got a maximum of 10Mb/s on a gigabit port, and that was rare, typically it was around 3-4. My main reason for a device was to save energy, however 2x 2 drive nas's = ...


27

You can use rsync's --iconv option to convert between UTF-8 NFC & NFD, at least if you're on a Mac. There is a special utf-8-mac character set that stands for UTF-8 NFD. So to copy files from your Mac to your NAS, you'd need to run something like: rsync -a --iconv=utf-8-mac,utf-8 localdir/ mynas:remotedir/ This will convert all the local filenames ...


16

You are thinking about things from the wrong level, is all. If you move a file within the confines of a single ZFS dataset, it will react similarly to what you're expecting. If you move a file within the confines of a pool, but between datasets, it is a real move. Yes, technically the data just went from point A to point B and both points are on the same ...


15

FreeNAS is a NAS solution, as such, some technical choices are hidden behind whatever firmware, system or GUI such appliance can use. If you get the partition schema used on a given disk inside a ZFS pool made with FreeNAS (small VM example): $ glabel status Name Status Components gptid/a699226f-bcc4-11e3-952d-...


14

I think you should reconsider your use of FreeNAS. You've had an uncharacteristically. large. number. of issues. with. your. FreeNAS. installation(s). over. the years. Many of these issues were planning and ZFS design problems. It may be time to refactor or rebuild your environment now that you have some knowledge of best or better-practices.


13

ZFS only protects your investment in the data on the disk. If the server is to be in production then you want the highest possible uptime and ECC helps this by allowing the server to tolerate a ONE BIT error in failing memory. This can give you time to schedule and replace failing memory without a panic.


12

I'd say the main advantage is ease of configuration - using something that's specifically designed for the role of a NAS server, as opposed to an all-around Linux distro. FreeNAS and OpenFiler also have features within easy reach that stock Ubuntu doesn't.


12

ECC RAM is a good thing, but let's look at the context... For your intended use, a ProLiant Microserver is a nice small form-factor low-impact server. It lacks some of the attributes commonly associated with production-quality systems (only four drive bays, single power supply, weaker CPU). So, I think you'll run into problems associated with those ...


11

After much research on this I discovered what the problem was. Both pfSense and FreeNAS provide SNMP support through the FreeBSD begemot SNMP daemon (bsnmpd). In order to provide memory usage, CPU usage, and Load Average information, the begemot SNMP daemon needs to have an additional module, snmp_ucd.so loaded. I found the following forum thread explaining ...


11

You really can't monitor the array status that well on your platform. One tacky option is cciss_vol_status, but it's far from the mainstream approach. This is kind of a bad combination of hardware and software. FreeBSD ProLiant support is a bit Meh... Okay, it's actually worse than that... So a few things to consider: ZFS is a software RAID and volume ...


10

Map a drive as normal, only instead of \\server\share format you use server:/share format (don't forget the colon). Here's a nice post from the Ubuntu forums, but should be the same for NFS served by others.


10

Always run: "cd /filesystem; find . -type f -exec md5sum {} \; >& /filesystem-md5.log" and then "cd /filesystem-new; md5sum -c /filesystem-md5.log" before and after copying a large amount of data. You'll be surprised how much random data corruption you experience in the real world. When you find a corrupt file, "cmp -l badfile goodfile" to attempt to ...


10

To get a disk serial requires that it is running and available: camcontrol identify <device> |grep ^serial (this might be (S)ATA specific) smartcl -i <device> |grep ^Serial reading the disk label once removed from the enclosure In your case, I think the 3rd solution is the only available. So, Assuming you just want first identify the disk: ...


9

Current versions of FreeNAS use nginx and the Django framework. They can be restarted as follows: service nginx restart service django restart or /usr/local/etc/rc.d/nginx restart /usr/local/etc/rc.d/django restart


9

There's no software RAID option for the setup you've described. VMware won't support it. If your hosts were Linux/Windows, you'd have some additional options. If your concern is system stability, you could have used RAID 1+0 and/or designated hot-spare drives in your setup. If performance isn't a concern (e.g. the use of RAID6), why worry about the ...


9

Yes, it all works... Dedupe, compression, checksumming, caching are all present when using zvols in ZFS. But I really prefer NFS for virtualization purposes because of the transparency. But either will do the job. Can you elaborate a bit more on your intended use for ZFS? I ask because there are a lot of potential design/planning issues. Take a good read ...


8

I have a number of these servers and it is awkward to disconnect, although it does sound odd you are having this amount of trouble Tips, because of how the cable is routed and cable tied, also the length of the connector, you need to pull directly up while putting a kink in the actual cable. The metal clip seems to depress further if you place your finger ...


7

I'm not sure what you mean. You can ask the disk to run a (SMART) self-test. This usually takes some time, and is somewhat stressful for the disk. I'd not recommend to run it more than once in a long while. On the other hand, you can check the SMART status from the disk. In other words, this means "read the SMART meters from the disk". This operation is ...


7

Rename can do this.. try something like find dir -depth -exec rename -n 's/[^[:ascii:]]/_/g' {} \; | cat -v you may need the cat -v to properly display any weird characters without your terminal getting screwed. if that prints acceptable substitutions change the -n to -v. That said, it sounds like the charset on your filesystem is wrong(mount -o utf8 ?)...


7

Solution eventually came via the zfs-discuss mailing list - this post. It appears the output of zfs list -t snapshot changed at some point, and there was a hidden snapshot consuming the extra space: There was a change where snapshots are no longer shown by default. This can be configured back to the old behaviour setting the zpool "listsnapshots" property ...


7

A RAID-Z group within a ZFS pool will always lock the size to the smallest disk within the pool. So, currently, you have what is essentially a RAID-Z of 3x 40GB drives. One disk worth is dedicated to parity bits, so you've got 2x 40GB, which is 76.29 GiB. The way that you can work around this limitation is by not using RAID-Z at all. ZFS also lets you ...


7

There is a better way, create a single 3 TB pool composed of two mirrors. zpool create test mirror disk1 disk2 mirror disk3 disk4 with disk1 and disk2 being the 1TB disks and disk3 and disk4 being the 2 TB ones. Edit: Should you want to maximize size and do not care that much about performance or best practices, you can partition all the drives with ...


7

As you probably already know, DAVG refers to disk latency, and yeah, greater than 30msec is usually going to give you a noticeable decrease in performance and responsiveness. Latency can be caused by a lot of issues but first and foremost your disks must be able to handle the IO load you are throwing at them. IO load refers not only to the # of IO's per ...


7

As ewwhite said, pool shrinking isn't currently possible with ZFS. If you need to do it, you'll have to backup to another storage medium (another pool, tape, SAN, etc) create a new pool and restore. As for expanding there are a number of options of how to grow your ZFS 5x3TB raidz pool: Add a mirror VDEV (pairs of disks) pool spans the two VDEVs (12TB ...


7

Freenas/Zfs reserves a small fragment of drive space. So besides having only ~1.82TB of actual space. ZFS reserves 1/64th of drive space for its own means, thus 'stealing' another ~28gb from you on every drive. Also freenas makes a 2gb swap file on every drive, Then losing the 1 drive to Raidz, 8.6TB seems pretty close. Source: http://cuddletech.com/blog/?p=...


7

You should pay close attention to the zpool versions. That's the major differentiator between the Oracle, former-OpenSolaris, Linux and *BSD variants of ZFS. Basically, you can upgrade an older zpool to a newer version, but you cannot downgrade. Oddly-enough, Wikipedia has the best summary of the different zpool versions and the differences between them. ...


7

Edit the username, groupname and home path in the passwd file with vipw Edit the groupname in the group file with vipw -g Rename your homefolder with mv Reboot the server


7

You have various options. I'm assuming here that you have the 4 disks arranged as a raidz1 (like raid5) layout. Not ideal, but I won't go into discussions about the best disk layout. You can go and buy big 4/5/8/XTB disks in a few years and just replace the disks one by one. When they have all been replaced the size of the pool should increase. You can add ...


7

I think there are a few obvious solutions to finding out more: Hook up an additional device to the same UPS output. If both devices reboot simultaneously, that would be evidence of a power issue. Hook up some equipment that can monitor the actual voltage output by the UPS output and record changes over time.


6

$ date "+%Z" Will give you the current timezone $ date "+%z" Will give the offset from DST



Only top voted, non community-wiki answers of a minimum length are eligible