V
16  
Tags
Attachments
Dobrica Pavlinušić's random unstructured stuff
DNS-323

D-Link DNS-323 network attached storage



Overview

dmesg.txt

dlink-DFDADE:~# uname -a
Linux dlink-DFDADE 2.6.12.6-arm1 #30 Mon Aug 18 14:19:14 CST 2008 armv5tejl GNU/Linux

dlink-DFDADE:~# free
            total      used      free    shared   buffers    cached
Mem:        61904     54808      7096         0     11824     30592
-/+ buffers/cache:     12392     49512
Swap:     1060208         0   1060208

dlink-DFDADE:~# cat /proc/cpuinfo 
Processor      : ARM926EJ-Sid(wb) rev 0 (v5l)
BogoMIPS       : 331.77
Features       : swp half thumb fastmult edsp java 
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant    : 0x0
CPU part       : 0x926
CPU revision   : 0
Cache type     : write-back
Cache clean    : cp15 c7 ops
Cache lockdown : format C
Cache format   : Harvard
I size         : 32768
I assoc        : 1
I line length  : 32
I sets         : 1024
D size         : 32768
D assoc        : 1
D line length  : 32
D sets         : 1024

Hardware       : MV-88fxx81
Revision       : 0000
Serial         : 0000000000000000

RAID

Personalities : [linear] [raid0] [raid1] 
md0 : active raid0 sda2[0] sdb2[1]
      2925532672 blocks 64k chunks
      
unused devices: <none>
dlink-DFDADE:~# hdparm -tT /dev/sda /dev/sdb /dev/md0

/dev/sda:
 Timing cached reads:   210 MB in  2.01 seconds = 104.48 MB/sec
 Timing buffered disk reads:   72 MB in  3.00 seconds =  24.00 MB/sec

/dev/sdb:
 Timing cached reads:   212 MB in  2.01 seconds = 105.47 MB/sec
 Timing buffered disk reads:  104 MB in  3.03 seconds =  34.32 MB/sec

/dev/md0:
 Timing cached reads:   208 MB in  2.01 seconds = 103.48 MB/sec
 BLKGETSIZE failed: File too large

dlink-DFDADE:~# dd_rescue /dev/sda /dev/null
dd_rescue: (info): ipos:   1044480.0k, opos:   1044480.0k, xferd:   1044480.0k
                   errs:      0, errxfer:         0.0k, succxfer:   1044480.0k
             +curr.rate:    37169kB/s, avg.rate:    32123kB/s, avg.load: 60.7%

dlink-DFDADE:~# dd_rescue /dev/md0 /dev/null
dd_rescue: (info): ipos:    729536.0k, opos:    729536.0k, xferd:    729536.0k
                   errs:      0, errxfer:         0.0k, succxfer:    729536.0k
             +curr.rate:    37176kB/s, avg.rate:    37502kB/s, avg.load: 76.5%

Debian

2.6.26-2-orion5x

raid0

Linux dlink-DFDADE 2.6.26-2-orion5x #1 Thu Aug 20 05:04:03 UTC 2009 armv5tel GNU/Linux
Personalities : [raid1] [raid6] [raid5] [raid4] [raid0] 
md1 : active raid0 dm-1[1] dm-0[0]
      2097024 blocks 64k chunks
      
md0 : active raid1 sda4[0] sdb4[1]
      513984 blocks [2/2] [UU]
      
unused devices: <none>

/dev/sda:
 Timing cached reads:   212 MB in  2.01 seconds = 105.39 MB/sec
 Timing buffered disk reads:   72 MB in  3.05 seconds =  23.58 MB/sec

/dev/sdb:
 Timing cached reads:   218 MB in  2.01 seconds = 108.26 MB/sec
 Timing buffered disk reads:   88 MB in  3.00 seconds =  29.33 MB/sec

/dev/md1:
 Timing cached reads:   208 MB in  2.01 seconds = 103.46 MB/sec
 Timing buffered disk reads:   60 MB in  3.07 seconds =  19.57 MB/sec

Linux dlink-DFDADE 2.6.26-2-orion5x #1 Thu Aug 20 05:04:03 UTC 2009 armv5tel GNU/Linux
Personalities : [raid1] [raid6] [raid5] [raid4] [raid0]
md1 : active (auto-read-only) raid1 dm-1[1] dm-0[0]
      1048512 blocks [2/2] [UU]
        resync=PENDING

md0 : active raid1 sda4[0] sdb4[1]
      513984 blocks [2/2] [UU]

unused devices: <none>

/dev/sda:
 Timing cached reads:   220 MB in  2.00 seconds = 109.73 MB/sec
 Timing buffered disk reads:   82 MB in  3.01 seconds =  27.22 MB/sec

/dev/sdb:
 Timing cached reads:   216 MB in  2.02 seconds = 107.12 MB/sec
 Timing buffered disk reads:   90 MB in  3.09 seconds =  29.14 MB/sec

/dev/md1:
 Timing cached reads:   208 MB in  2.02 seconds = 103.19 MB/sec
 Timing buffered disk reads:   52 MB in  3.05 seconds =  17.06 MB/sec

2.6.30

http://www.cyrius.com/journal/debian/orion/d-link/dns-323/dns-323-fan-control

dlink-DFDADE:~/mdadm# ./test.sh 
+ ./remove.md1.sh
+ mdadm --manage --stop /dev/md1
mdadm: error opening /dev/md1: No such file or directory
+ mdadm --manage --remove /dev/md1
mdadm: error opening /dev/md1: No such file or directory
+ yes
+ mdadm --create --verbose /dev/md1 --level=0 --raid-devices=2 --force /dev/vga/raid.a /dev/vgb/raid.b
mdadm: chunk size defaults to 64K
mdadm: /dev/vga/raid.a appears to be part of a raid array:
    level=raid1 devices=2 ctime=Sat Sep  5 14:54:52 2009
mdadm: /dev/vgb/raid.b appears to be part of a raid array:
    level=raid1 devices=2 ctime=Sat Sep  5 14:54:52 2009
Continue creating array? mdadm: array /dev/md1 started.
+ ./hdparm-test.sh
+ test -d out
+ uname -a
+ cat /proc/mdstat
+ hdparm -tT /dev/sda /dev/sdb /dev/md1
++ date +%Y%m%d_%H%M%S
+ tee out/20090905_151032
Linux dlink-DFDADE 2.6.30-1-orion5x #1 Tue Aug 18 04:19:30 UTC 2009 armv5tel GNU/Linux
Personalities : [raid1] [raid0] 
md1 : active raid0 dm-0[1] dm-1[0]
      2097024 blocks 64k chunks
      
md0 : active raid1 sda4[0] sdb4[1]
      513984 blocks [2/2] [UU]
      
unused devices: <none>

/dev/sda:
 Timing cached reads:   246 MB in  2.01 seconds = 122.14 MB/sec
 Timing buffered disk reads:  132 MB in  3.00 seconds =  43.93 MB/sec

/dev/sdb:
 Timing cached reads:   242 MB in  2.01 seconds = 120.27 MB/sec
 Timing buffered disk reads:  138 MB in  3.01 seconds =  45.87 MB/sec

/dev/md1:
 Timing cached reads:   234 MB in  2.01 seconds = 116.15 MB/sec
 Timing buffered disk reads:  130 MB in  3.03 seconds =  42.85 MB/sec

+ ./remove.md1.sh
+ mdadm --manage --stop /dev/md1
mdadm: stopped /dev/md1
+ mdadm --manage --remove /dev/md1
+ yes
+ mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 --spare-devices=0 --force /dev/vga/raid.a /dev/vgb/raid.b
mdadm: /dev/vga/raid.a appears to be part of a raid array:
    level=raid0 devices=2 ctime=Sat Sep  5 15:10:31 2009
mdadm: /dev/vgb/raid.b appears to be part of a raid array:
    level=raid0 devices=2 ctime=Sat Sep  5 15:10:31 2009
mdadm: size set to 1048512K
Continue creating array? mdadm: array /dev/md1 started.
+ ./hdparm-test.sh
+ test -d out
+ uname -a
++ date +%Y%m%d_%H%M%S
+ cat /proc/mdstat
+ hdparm -tT /dev/sda /dev/sdb /dev/md1
+ tee out/20090905_151114
Linux dlink-DFDADE 2.6.30-1-orion5x #1 Tue Aug 18 04:19:30 UTC 2009 armv5tel GNU/Linux
Personalities : [raid1] [raid0] 
md1 : active (auto-read-only) raid1 dm-0[1] dm-1[0]
      1048512 blocks [2/2] [UU]
        resync=PENDING
      
md0 : active raid1 sda4[0] sdb4[1]
      513984 blocks [2/2] [UU]
      
unused devices: <none>

/dev/sda:
 Timing cached reads:   116 MB in  2.01 seconds =  57.84 MB/sec
 Timing buffered disk reads:  118 MB in  3.00 seconds =  39.32 MB/sec

/dev/sdb:
 Timing cached reads:   114 MB in  2.01 seconds =  56.79 MB/sec
 Timing buffered disk reads:  140 MB in  3.03 seconds =  46.27 MB/sec

/dev/md1:
 Timing cached reads:   234 MB in  2.02 seconds = 116.07 MB/sec
 Timing buffered disk reads:  110 MB in  3.01 seconds =  36.49 MB/sec

updates

  • ledger2beancount 1.8 released

    I released version 1.8 of ledger2beancount, a ledger to beancount converter.

    I ran ledger2beancount over the ledger test suite and made it much more robust. If ledger2beancount 1.8 can't parse your ledger file properly, I'd like to know about it.

    Here are the changes in 1.8:

    • Add support for apply year
    • Fix incorrect account mapping of certain accounts
    • Handle fixated commodity and postings without amount
    • Improve behaviour for invalid end without apply
    • Improve error message when date can't be parsed
    • Deal with account names consisting of a single letter
    • Ensure account names don't end with a colon
    • Skip ledger directives eval, python, and value
    • Don't assume all filenames for include end in .ledger
    • Support price directives with commodity symbols
    • Support decimal commas in price directives
    • Don't misparse balance assignment as commodity
    • Ensure all beancount commodities have at least 2 characters
    • Ensure all beancount metadata keys have at least 2 characters
    • Don't misparse certain metadata as implicit conversion
    • Avoid duplicate commodity directives for commodities with name collisions
    • Recognise deferred postings
    • Recognise def directive

    Thanks to Alen Siljak for reporting a bug.

    You can get ledger2beancount from GitHub.

  • ledger2beancount 1.7 released

    I released version 1.7 of ledger2beancount, a ledger to beancount converter.

    This release contains a number of bug fixes and a new feature:

    • Don't misparse account and commodity with mixed tab/space separators
    • Rename account names consisting of a root name without subaccount
    • Warn when non-standard root names are used
    • Avoid duplicate open directives for accounts with name collisions
    • Don't warn for renamed tags that won't show up in the beancount file
    • Add account_regex option to mass rename account names
    • Add man page and improve documentation

    You can get ledger2beancount from GitHub.

    Thanks to GitHub user Joradi98 for reporting some bugs. Thanks to Jelmer Vernooij for packaging ledger2beancount for Debian.

  • FOSSASIA 2019 in Singapore

    I attended FOSSASIA earlier this month. This conference has been on my radar for many years but I never managed to attend before.

    I was impressed by the organization of the conference. Furthermore, I liked that the audience was completely different to the conferences I normally attend. There were so many new people. FOSSASIA has grown not just to be a conference, but also an umbrella organization for several open source projects.

    I gave a talk about open source culture, using Debian as an example. I find this type of presentation important because this is where a lot of pitfalls are for many new contributors. Learning technologies is easy, but figuring out all the unwritten norms and rules of a community can be daunting. Of course, it was particularly interesting to give this talk in an environment where I'm the cultural outsider. While I've visited a number of Asian countries, there's a lot about the different cultures I have yet to learn.

    I met a number of Debian contributors, including Andrew Lee, Norbert Preining (who talked about TeX Live), Graham Williams (who used to contribute to Debian in the early days and heads an AI team at Microsoft in Singapore now), Kai Hendry (who used to contribute to Debian) and others. I also spent some time away from the conference to write my DPL platform.

    Thank you to Hong Phuc Dang, Mario Behling and all the other organizers and volunteers for a wonderful event!

  • ledger2beancount 1.6 released

    Stefano Zacchiroli and I released version 1.6 of ledger2beancount, a ledger to beancount converter.

    This release contains a number of bug fixes and a new feature:

    • Add support for fixated prices and costs
    • Handle account names that contain brackets
    • Don't parse trailing tabs as part of the account name
    • Escape backslashes in the narration

    You can get ledger2beancount from GitHub.

  • ledger2beancount 1.5 released

    Stefano Zacchiroli and I released version 1.5 of ledger2beancount, a ledger to beancount converter.

    This release contains a number of bug fixes and new features:

    • Replace commodities in balance assertions
    • Add support for posting-level dates
    • Add support for hledger features
    • Add support for balance assignments
    • Handle comments on the same line as the payee
    • Handle comments, tags and metadata on postings with balance assertions
    • Handle metadata on postings with cost or price information
    • Handle simple implicit conversions

    You can get ledger2beancount from GitHub.

  • ledger2beancount 1.4 released

    Stefano Zacchiroli and I released version 1.4 of ledger2beancount, a ledger to beancount converter.

    Version 1.4 contains a number of bug fixes:

    • Don't parse trailing whitespace as part of the account name
    • Replace commodities in lot costs
    • Avoid mangling of lot cost with other lot information
    • Don't require whitespace between {} and @ in lot information

    You can get ledger2beancount from GitHub.

  • ledger2beancount 1.3 released

    Stefano Zacchiroli and I released version 1.3 of ledger2beancount, a ledger to beancount converter.

    Changes in version 1.3:

    • Handle tags on the same line as postings correctly
    • Allow (commented) beancount entries in ledger input file
    • Handle amounts without leading zeroes

    You can get ledger2beancount from GitHub.

  • ledger2beancount 1.2 released

    Stefano Zacchiroli and I released version 1.2 of ledger2beancount, a ledger to beancount converter.

    This version of ledger2beancount is compatible with beancount 2.1, which was released a few days ago.

    Changes in version 1.2:

    • Updates for beancount 2.1.0:
      • Allow UTF-8 letters and digits in account names
      • Allow full-line comments in transactions
      • Allow transaction tags and links on multiple lines
    • Handle posting tags on multiple lines
    • Always convert posting-level tags to metadata
    • Improve parsing of the transaction header

    You can get ledger2beancount from GitHub.

  • ledger2beancount 1.1 released

    Stefano Zacchiroli and I have published version 1.1 of ledger2beancount, a ledger to beancount converter.

    Incompatible changes: If you already use ledger2beancount, please note that the payee_match variable changed from a Yaml hash to a list (to make the order deterministic).

    Version 1.1 includes a number of bug fixes and enhancements based on feedback from users.

    Changes in version 1.1:

    • Happy International Workers' Day release!
    • Handle block comments without indentation correctly
    • Preserve comments for postings with lots
    • Use beancount's pushtag/poptag for ledger's apply tag
    • Handle tag directives with associated commands correctly
    • Allow option link_match to work with tag_as_metadata: true
    • Handle posting-level tags without indentation correctly with tag_as_metadata: false
    • Ensure payee_match is predictable
    • Preserve comments for postings with lots
    • Embed an optional beancount header to the converted file to specify beancount options
    • Convert ledger metadata keys to valid beancount metadata keys
    • Add conversion notes when accounts, commodities or metadata keys are automatically renamed by ledger2beancount
    • Add capability to ignore certain lines
    • Keep whitespace intact when renaming account names.
    • Improve documentation on assigning payees based on transactions
    • Add more test cases
    • Run the test suite only if something has changed

    You can get ledger2beancount from GitHub.

  • ledger2beancount: a ledger to beancount converter

    Stefano Zacchiroli and I released ledger2beancount, a script to convert ledger files to beancount. Ledger is a bookkeeping system based on text files. Beancount is another tool which follows a similar approach but which from my point of view is the way forward.

    ledger2beancount supports most of the features and syntax of ledger. It also includes some features to improve the conversion from ledger to beancount. The supported ledger features are described in the README and there's a manual with detailed descriptions of ledger2beancount's features. There's also an illustrated example showing some of the differences between ledger and beancount.

    Martin Blais released beancount 2.0 a few days ago, so this is a good time to give it a go. Beancount has a web UI called fava which is absolutely fantastic.



 

Upload Files

Click "Browse" to find the file you want to upload. When you click "Upload file" your file will be uploaded and added to the list of attachments for this page.

Maximum file size: 50MB

 
 
 
File Name Author Date Uploaded Size

Save Page As

Enter a meaningful and distinctive title for your page.

Page Title:

Tip: You'll be able to find this page later by using the title you choose.

Page Already Exists

There is already a page named XXX. Would you like to:

Save with a different name:

Save the page with the name "XXX"

Append your text to the bottom of the existing page named: "XXX"

Upload Files

Click "Browse" to find the file you want to upload. When you click "Add file" this file will be added to the list of attachments for this page, and uploaded when you save the page.

 
 
 
Add Tags

Enter a tag and click "Add tag". The tag will be saved when you save the page.

Tag: 

Suggestions: