Here’s a simple script for creating daily zfs snapshots that get rotated every week (so you always have one for Mon, Tues, Wed, etc) #!/usr/bin/perl use warnings; use strict; my $zfsname = shift || die “Need a filesystem name\n”; my $day = `date`; $day =~ s/(Sun|Mon|Tue|Wed|Thu|Fri|Sat)[\S\s]+/$1/gi; my $snapname = “$zfsname\@$day”; my $exist = system(“zfs list […]
# # IP Filter rules to be loaded during startup # # See ipf(4) manpage for more information on # IP Filter rules syntax. # Block evil packets block in log quick all with short # Allow everything from our DNS servers in pass in quick from 128.222.228.235/32 to any keep state pass in quick […]
Firstly, the easy one: RAID0: Given 4 slices, each ~5g: First, need a metadb, I created a 100MB slice on c1t1d0s0 (which I am NOT using for the RAID, entirely separate drive) and ran this command to initiate the database. It is a good idea to mirror the database in a minimum of 3 positions, […]
For fun and profit! Basically, for my own categorization: 1. Celerra-side: Create filesystems (I am using 4 because I want to stripe across all 4: nas_fs -n iscsiRAID1_5g -c size=5G pool=clar_r5_performance nas_fs -n iscsiRAID2_5g -c size=5G pool=clar_r5_performance nas_fs -n iscsiRAID3_5g -c size=5G pool=clar_r5_performance nas_fs -n iscsiRAID4_5g -c size=5G pool=clar_r5_performance Mount filesystems: server_mount server_2 iscsiRAID1_5g /iscsiRAID1_5g […]