SSブログ
エステ

netatalkを久々にアップデート on ubuntu 10.04 (lucid) [Netatalk]

割と長い間放置していた、netatalkですが、2.1.2以前はセキュリティ的な問題もあるので、そろそろアップデートしようかというわけです。

アップデート前:netatalk2.1
アップデート後:netatalk2.1.5

まあ、何です。そんなにやることはありません。


ただ、万一に備えて、すぐに古いバージョンでファイルサーバを運用できるよう、
USBメモリで稼働しているシステムを丸ごとバックアップしておきます。

# mount
/dev/sde1 on / type ext4 (rw,errors=remount-ro)
/dev/md0 on /st1 type ext4 (rw,user_xattr)

/dev/sde でシステムが動いているようなので、

USBメモリを新たに1本挿して、そちらにバックアップします。

# dd if=/dev/sde of=/dev/sdf
15949824+0 records in
15949824+0 records out
8166309888 bytes (8.2 GB) copied, 1690.11 s, 4.8 MB/s

時間がかかりましたが、無事終了。



では、netatalkのダウンロードから始めます。


# tar zxvf netatalk-2.1.5.tar.gz

# cd netatalk-2.1.5

# ./configure --enable-debian

Using libraries:
    LIBS =  -L$(top_srcdir)/libatalk
    CFLAGS = -I$(top_srcdir)/include -D_U_="__attribute__((unused))" -g -O2 -I$(top_srcdir)/sys
    SSL:
        LIBS   =  -L/usr/lib64 -lcrypto
        CFLAGS =  -I/usr/include/openssl
    LIBGCRYPT:
        LIBS   = -lgcrypt
        CFLAGS = 
    BDB:
        LIBS   =  -L/usr/lib64 -ldb-4.8
        CFLAGS = 
Configure summary:
    Install style:
         debian
    AFP:
         AFP 3.x calls activated: yes
         Large file support (>2GB) for AFP3: yes
         Extended Attributes: ad | sys
         DDP enabled: yes
    CNID:
         backends:  dbd last tdb
    UAMS:
         DHX     ( SHADOW)
         DHX2    ( SHADOW)
         RANDNUM ( SHADOW)
         passwd  ( SHADOW)
         guest
    Options:
         CUPS support:           no
         SLP support:            no
         tcp wrapper support:    no
         quota support:          yes
         admin group support:    yes
         valid shell check:      yes
         cracklib support:       no
         dropbox kludge:         no
         force volume uid/gid:   no
         Apple 2 boot support:   no
         ACL support:            no

# make

# make install

# /etc/init.d/netatalk restart

# /usr/local/sbin/afpd -V
afpd 2.1.5 - Apple Filing Protocol (AFP) daemon of Netatalk

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version. Please see the file COPYING for further information and details.

afpd has been compiled with support for these features:

        AFP3.x support: Yes
      Transport layers: TCP/IP DDP
         CNID backends: dbd last tdb 
           SLP support: No
  TCP wrappers support: No
         Quota support: Yes
   Admin group support: Yes
    Valid shell checks: Yes
      cracklib support: No
        Dropbox kludge: No
  Force volume uid/gid: No


という具合に完了。お疲れ様です。
2.1.xからの移行であれば、設定ファイルとかそのまま保存されていますので、何も触る必要は無いかと思います。


ビルド環境、設定は前回の2.1の時に残したこちらを参考に。


ちなみに、XbenchでMacbookProからのAFP共有でのベンチマークを取ってみましたが、ほとんど同じです。

BEFORE
System Info
Xbench Version 1.3
System Version 10.6.6 (10J567)
Physical RAM 4096 MB
Model MacBookPro5,5

Disk Test 79.55
Sequential 46.91
Uncached Write 21.38 13.13 MB/sec [4K blocks]
Uncached Write 143.42 81.15 MB/sec [256K blocks]
Uncached Read 39.27 11.49 MB/sec [4K blocks]
Uncached Read 164.89 82.87 MB/sec [256K blocks]
Random 261.41
Uncached Write 120.89 12.80 MB/sec [4K blocks]
Uncached Write 253.88 81.28 MB/sec [256K blocks]
Uncached Read 1289.05 9.13 MB/sec [4K blocks]
Uncached Read 431.88 80.14 MB/sec [256K blocks]

AFTER
Results 78.22
System Info
Xbench Version 1.3
System Version 10.6.6 (10J567)
Physical RAM 4096 MB
Model MacBookPro5,5

Disk Test 78.22
Sequential 46.08
Uncached Write 21.38 13.12 MB/sec [4K blocks]
Uncached Write 143.19 81.02 MB/sec [256K blocks]
Uncached Read 37.13 10.87 MB/sec [4K blocks]
Uncached Read 163.77 82.31 MB/sec [256K blocks]
Random 258.67
Uncached Write 118.05 12.50 MB/sec [4K blocks]
Uncached Write 252.84 80.94 MB/sec [256K blocks]
Uncached Read 1313.67 9.31 MB/sec [4K blocks]
Uncached Read 439.22 81.50 MB/sec [256K blocks]

それより、このファイルサーバで連続運用して200日くらい経ち、4TB中1TB以上使っていますが、全く
パフォーマンスの低下は見られません。
がんばっていますね。優秀。優秀。

ES34069-BK-180 Mini-DTX/Mini-ITX Micro Tower Chassis

ES34069-BK-180 Mini-DTX/Mini-ITX Micro Tower Chassis

  • 出版社/メーカー: Chenbro
  • メディア: 
あ。これは筐体だけですが〜。


nice!(0)  コメント(10)  トラックバック(1) 
共通テーマ:パソコン・インターネット

nice! 0

コメント 10

HAT

アップグデートというのは、
アップグレードしてアップデートも行なうということか。

by HAT (2011-01-20 01:59) 

nao

あはー、恥ずかしい(^_^;)
by nao (2011-01-20 06:10) 

HAT

netatalk 2.2beta2でました。
キャッシュに対応したので、高速になってるかも。
by HAT (2011-03-05 02:02) 

Jeashibia

Zithromax Z Pak Dosing Tarif Kamagra <a href=http://viaacost.com>online pharmacy</a> Cialis Prezzo 5 Mg Viagra Soft Tab Are They Any Good Synthroid No Prescription Usa Viagara For Men <a href=http://orderciali.com>buy generic cialis online</a> Wie Wirkt Viagra De buy accutane isotretinoin online Vente Cialis 10
by Jeashibia (2019-01-20 11:43) 

AustJath

Zithromax Buy Cheap Puedo Tomar Cialis Ayunas <a href=http://cialgeneri.com>buy cialis</a> Viagra Homme Heureux Canadian Superdrug Store Viagra Super Priligy
by AustJath (2019-04-09 11:09) 

AustJath

Priligy Ervaring <a href=http://gnplls.com>levitra bayer 10 mg</a> Cialis Viagra Contre
by AustJath (2019-07-08 21:11) 

AustJath

Prix Du Amoxicillin 20mg <a href=http://brandciali.com>canadian pharmacy cialis 20mg</a> Precio De Levitra En Farmacias Levitra 20 Mg Precio Espana Cheap Plavix Online
by AustJath (2019-07-26 00:01) 

Scogywogy

https://fcialisj.com/ - daily cialis online
by Scogywogy (2021-03-13 05:42) 

shed builders

Yeah that looks really cool


by shed builders (2021-06-30 12:31) 

visa for turkey from Canada

Excellent post.. Thank you for this. Wish to travel to Turkey for tourism and business purpose. Then you should apply for visa for turkey from Canada through online e visa application.
by visa for turkey from Canada (2021-07-16 14:52) 

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

トラックバック 1

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。