Setting hostname via DHCP on CentOS 6

# cat /etc/dhcp/dhclient6-eth0.conf
timeout 5;
also request host-name;
廣告

Preparing a disk in FreeNAS using geom commands

Working on disk /dev/da0:

# gpart create -s gpt /dev/da0
# gpart add -t freebsd-swap -b 128 -s 2147483648b da0
# gpart add -t freebsd-zfs -b 4194432 -s 7999415652352b da0

Note: Size (-s) is given in bytes (b)

Operations can be verified

# gpart list da0

Further notes:

  1. Swap partition starts from 128th 512-byte block (beginning of 64kB boundary)
  2. Swap size is 4096*1024*512-byte (4194304 blocks)

Toshiba HDD seems to be very competitively priced among current contenders

Model Jumbo Price HKD per TB Premium %
Toshiba DT01ACA300 3TB SATA3 6Gb/s /64MB HDD 530 176.7 0
Toshiba Surveillance 3TB SATA3 6Gb/s /32MB HDD DT01ABA300V (7×24 監控硬碟) 569 189.7 7
Seagate BarraCuda 3TB ST3000DM008 SATA3 6Gb/s /64MB Cache HDD 578 192.7 9
WD Blue WD30EZRZ 3TB SATA3 6Gb/s /64MB HDD 593 197.7 12
Toshiba MD04ACA400 4TB 7200rpm SATA3 6Gb/s /128MB HDD 807 201.8 14
Toshiba DT01ACA200 2TB SATA3 6Gb/s /64MB HDD 412 206.0 17
WD Purple WD30EJRX 3TB SATA3 6Gb/s /64MB HDD 監控硬盤 628 209.3 18
Seagate BarraCuda 4TB ST4000DM005 SATA3 6Gb/s /64MB Cache HDD 845 211.3 20
Toshiba Surveillance 4TB SATA3 6Gb/s /128MB HDD MD04ABA400V (7×24 監控硬碟) 848 212.0 20
Seagate SkyHawk Surveillance 3TB ST3000VX010 SATA3 6Gb/s /64MB Cache HDD 640 213.3 21
Toshiba Enterprise NAS MC04ACA400E 4TB SATA3 6Gb/s /128MB HDD (7×24 企業版雲端硬碟) 879 219.8 24
Seagate BarraCuda 2TB ST2000DM006 SATA3 6Gb/s /64MB Cache HDD 442 221.0 25
WD Blue WD40EZRZ 4TB SATA3 6Gb/s /64MB HDD 885 221.3 25
WD Blue WD20EZRZ 2TB SATA3 6Gb/s /64MB HDD 449 224.5 27
Toshiba Surveillance 2TB SATA3 6Gb/s /32MB HDD DT01ABA200V (7×24 監控硬碟) 450 225.0 27
WD Purple WD40EJRX 4TB SATA3 6Gb/s /64MB HDD 監控硬盤 905 226.3 28
Toshiba MD04ACA500 5TB 7200rpm SATA3 6Gb/s /128MB HDD 1150 230.0 30
Seagate SkyHawk Surveillance 4TB ST4000VX007 SATA3 6Gb/s /64MB Cache HDD 923 230.8 31
Toshiba Enterprise 4TB SATA3 /128MB HDD MG04ACA400E (7×24 企業版) 930 232.5 32
Seagate IronWolf NAS 3TB ST3000VN007 SATA3 6Gb/s /64MB Cache HDD 699 233.0 32
Toshiba MD04ACA600 6TB 7200rpm SATA3 6Gb/s /128MB HDD 1415 235.8 33
WD Purple WD20EJRX 2TB SATA3 6Gb/s /64MB HDD 監控硬盤 483 241.5 37
Toshiba Enterprise 6TB SATA3 /128MB HDD MG04ACA600E (7×24 企業版) 1487 247.8 40
Seagate SkyHawk Surveillance 2TB ST2000VX008 SATA3 6Gb/s /64MB Cache HDD 498 249.0 41
Seagate IronWolf NAS 4TB ST4000VN008 SATA3 6Gb/s /64MB Cache HDD 999 249.8 41
Seagate IronWolf NAS 6TB ST6000VN0041 SATA3 6Gb/s /128MB Cache HDD 1499 249.8 41
WD Purple WD60EJRX 6TB SATA3 6Gb/s /64MB HDD 監控硬盤 1520 253.3 43
HGST NAS Desktop Drive 4TB 7200rpm SATA3 /128MB HDD 0S04005 H3IKNAS400012872SWW 1015 253.8 44
WD Purple WD80EJRX 8TB SATA3 6Gb/s /128MB HDD 監控硬盤 2070 258.8 46
Toshiba Enterprise 8TB SATA3 /128MB HDD MG05ACA800E (7×24 企業版) 2090 261.3 48
Seagate Desktop HDD 8TB ST8000DM002 SATA3 6Gb/s /256MB Cache HDD 2140 267.5 51
Seagate IronWolf NAS 2TB ST2000VN004 SATA3 6Gb/s /64MB Cache HDD 545 272.5 54
Seagate SkyHawk Surveillance 6TB ST6000VX0023 SATA3 6Gb/s /256MB Cache HDD 1640 273.3 55
WD Red NAS Hard Drive WD40EFRX 4TB SATA3 6Gb/s /64MB HDD 1120 280.0 58
HGST NAS Desktop Drive 6TB 7200rpm SATA3 /128MB HDD 0S04007 H3IKNAS600012872SWW 1690 281.7 59
Seagate SkyHawk Surveillance 8TB ST8000VX0022 SATA3 6Gb/s /256MB Cache HDD 2299 287.4 63
WD Red NAS Hard Drive WD30EFRX 3TB SATA3 6Gb/s /64MB HDD 878 292.7 66
Toshiba DT01ACA100 1TB SATA3 6Gb/s /32MB HDD 293 293.0 66
HGST NAS Desktop Drive 8TB 7200rpm SATA3 /128MB HDD 0S04012 H3IKNAS800012872SWW 2390 298.8 69
Seagate Enterprise Capacity 3.5 HDD V5 4TB ST4000NM0035 SATA3 6Gb/s /128MB Cache (7×24 企業版) 1195 298.8 69
Seagate IronWolf NAS 8TB ST8000VN0022 SATA3 6Gb/s /256MB Cache HDD 2390 298.8 69
WD Red NAS Hard Drive WD80EFZX 8TB SATA3 6Gb/s /128MB HDD 2455 306.9 74
Seagate IronWolf NAS 10TB ST10000VN0004 SATA3 6Gb/s /256MB Cache HDD 3080 308.0 74
HGST NAS Desktop Drive 10TB 7200rpm SATA3 /256MB HDD 0S04037 H3IKNAS1000025672SWW 3090 309.0 75
Seagate BarraCuda 1TB ST1000DM010 SATA3 6Gb/s /64MB Cache HDD 309 309.0 75
WD Red NAS Hard Drive WD60EFRX 6TB SATA3 6Gb/s /64MB HDD 1855 309.2 75
Toshiba Surveillance 1TB SATA3 6Gb/s /32MB HDD DT01ABA100V (7×24 監控硬碟) 310 310.0 75
WD Gold WD4002FYYZ 4TB SATA3 6Gb/s /128MB Datacenter 7×24 HDD 1248 312.0 77
Seagate BarraCuda Pro 8TB ST8000DM005 SATA3 6Gb/s /256MB Cache HDD 2499 312.4 77
Seagate SkyHawk Surveillance 10TB ST10000VX0004 SATA3 6Gb/s /256MB Cache HDD 3125 312.5 77
WD Blue WD10EZEX 1TB SATA3 6Gb/s /64MB HDD 313 313.0 77
Seagate Enterprise Capacity 3.5 HDD V5 6TB ST6000NM0115 SATA3 6Gb/s /256MB Cache (7×24 企業版) 1915 319.2 81
Seagate BarraCuda Pro 6TB ST6000DM004 SATA3 6Gb/s /256MB Cache HDD 1930 321.7 82
WD Red NAS Hard Drive WD100EFAX 10TB SATA3 6Gb/s /256MB HDD 3250 325.0 84
HGST Enterprise Ultrastar 7K6000 6TB SATA3 /128MB HDD HUS726060ALE610 (7×24 企業版) 1965 327.5 85
WD Gold WD6002FRYZ 6TB SATA3 6Gb/s /128MB Datacenter 7×24 HDD 1980 330.0 87
WD Red NAS Hard Drive WD20EFRX 2TB SATA3 6Gb/s /64MB HDD 663 331.5 88
Seagate Enterprise Capacity 3.5 HDD V5 8TB ST8000NM0055 SATA3 6Gb/s /256MB Cache (7×24 企業版) 2670 333.8 89
WD Purple WD100EJRX 10TB SATA3 6Gb/s /256MB HDD 監控硬盤 3340 334.0 89
HGST Ultrastar He8 (Helium Platform Enterprise) 8TB SATA3 /128MB HDD HUH728080ALE600 (7×24 企業版) 2800 350.0 98
Seagate SkyHawk Surveillance 1TB ST1000VX005 SATA3 6Gb/s /64MB Cache HDD 350 350.0 98
Seagate BarraCuda Pro 10TB ST10000DM0004 SATA3 6Gb/s /256MB Cache HDD 3530 353.0 100
HGST Ultrastar He10 (Helium) 10TB SATA3 /256MB HDD HUH721010ALE600 (7×24 企業版) 3550 355.0 101
Seagate Enterprise Capacity 3.5 HDD V5 3TB ST3000NM0005 SATA3 6Gb/s /128MB Cache (7×24 企業版) 1075 358.3 103
WD Gold WD101KRYZ 10TB SATA3 6Gb/s /256MB Datacenter 7×24 HDD 3599 359.9 104
WD Purple WD10EJRX 1TB SATA3 6Gb/s /64MB HDD 監控硬盤 360 360.0 104
WD Purple WD10PURX 1TB SATA3 6Gb/s /64MB HDD 監控硬盤 360 360.0 104
HGST Enterprise SAS Ultrastar 7K6000 6TB 7200rpm, 128MB HDD HUS726060AL5210 (7×24 企業版) 2180 363.3 106
WD Gold WD8002FRYZ 8TB SATA3 6Gb/s /128MB Datacenter 7×24 HDD 2910 363.8 106
Seagate Enterprise Capacity 3.5″ HDD 8TB SAS ST8000NM0075 7200rpm 12Gb/s 256MB HDD 2938 367.3 108
HGST SAS Ultrastar He8 (Helium) 8TB SATA3 /128MB HDD HUH728080AL5200 (7×24 企業版) 最少訂貨量20pcs 2980 372.5 111
HGST Enterprise Ultrastar 7K6000 4TB SATA3 /128MB HDD HUS726040ALE610 (7×24 企業版) 1500 375.0 112
Seagate Enterprise Capacity 3.5 HDD V5 10TB ST10000NM0016 SATA3 6Gb/s /256MB Cache (7×24 企業版) 3810 381.0 116
WD Red Pro NAS Hard Drive WD6002FFWX 6TB SATA3 6Gb/s /128MB HDD 2320 386.7 119
Toshiba Enterprise 2TB SATA3 /128MB HDD MG04ACA200E (7×24 企業版) 778 389.0 120
Seagate FireCuda 2TB ST2000DX002 Gaming SSHD (Solid State Hybrid Drives) 7200rpm, 64MB Cache HDD 799 399.5 126
HGST Enterprise SAS Ultrastar 7K6000 4TB 7200rpm, 128MB 12Gb/s HDD HUS726040AL5210 (7×24 企業版) 1650 412.5 133
HGST Ultrastar He12 (Helium) 12TB SATA3 /256MB HDD HUH721212ALE600 (7×24 企業版) 5180 431.7 144
Seagate Enterprise Capacity 3.5 HDD V5 2TB ST2000NM0055 SATA3 6Gb/s /128MB Cache (7×24 企業版) 895 447.5 153
WD Gold WD2005FBYZ 2TB SATA3 6Gb/s /128MB Datacenter 7×24 HDD 920 460.0 160
WD Red Pro NAS Hard Drive WD8001FFWX 8TB SATA3 6Gb/s /128MB HDD 3690 461.3 161
WD Red Pro NAS Hard Drive WD4002FFWX 4TB SATA3 6Gb/s /128MB HDD 1875 468.8 165
WD Red NAS Hard Drive WD10EFRX 1TB SATA3 6Gb/s /64MB HDD 503 503.0 185
HGST Enterprise Ultrastar 7K6000 2TB SATA3 /128MB HDD HUS726020ALE610 (7×24 企業版) 1080 540.0 206
HGST Enterprise SAS Ultrastar 7K6000 2TB 7200rpm, 128MB 12Gb/s HDD HUS726020AL5210 (7×24 企業版) 1190 595.0 237
Seagate FireCuda 1TB ST1000DX002 Gaming SSHD (Solid State Hybrid Drives) 7200rpm, 64MB Cache HDD 608 608.0 244
WD Gold WD1005FBYZ 1TB SATA3 6Gb/s /128MB Datacenter 7×24 HDD 640 640.0 262
Seagate Enterprise Capacity 3.5 HDD V5 1TB ST1000NM0055 SATA3 6Gb/s /128MB Cache (7×24 企業版) 675 675.0 282

AppleIDAuthAgent 100% CPU usage on Mac OS X Lion

Fixed by removing the list of files below followed by a reboot:

~/Library/Preferences/ByHost/com.apple.DotMacSync*.plist.lockfile
~/Library/Preferences/ByHost/com.apple.idisk*.plist
~/Library/Preferences/ByHost/com.apple.idisk*.plist.lockfile
~/Library/Preferences/MobileMeAccounts.plist
~/Library/Preferences/MobileMeAccounts.plist.lockfile
~/Library/Prefernces/ByHost/com.apple.coreservices.appleidauthenticationinfo*.plist
~/Library/Prefernces/ByHost/com.apple.coreservices.appleidauthenticationinfo*.plist.lockfile

Original solution as mentioned in this AskDifferent thread.