成功遷移seafile

呼…用咗唔少時間…之前一直怯,不過呢家總算都有番service。 最恐怖就係我以為seafile話得30G嘢就真係得30G,卻冇諗過背後有一大堆journal同backup keep住,真正overall transfer咗嘅seafile-data size係190G。好彩係我一個人用,如果係一team人用,數據量可能段TB計。 此時此刻有幾個問題: 本身個source server個host嘅arch係x86,destination server係arm64,有無compatible build? 呢個確實有,係俾RPi 2+用,但我Rock64試過亦都可以直接用 可惜用嘅係armhf,而唔係native arm64(姐係i386同amd64嘅分別),速度點都會有啲慢 Destination Host用Debian 8,ayufan-rock64已經default enable kernel arm32支持,如果你用custom kernel嘅請自行打開,除此之外都無咩大礙 ./seafile.sh start顯示失去libselinux: [email protected]:~/seafile-server-6.2.5$ ./seafile.sh start /home/seafile/seafile-server-6.2.5/seafile/bin/seafile-controller: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory 解決方法: 增加armhf arch並download libselinux1:armhf # dpkg –add-architecture armhf # apt-get update …… Read more »

成功將個blog遷移到rock64

雖然無咩問題嘅🤷‍♂️本身係digitalocean嘅instance用AIO WP Migration export 然後打開OMV,自己裝mysql同nginx,好似係OMV嘅extra repo到 然後按照正常步驟安裝wordpress,裝埋AIO WP Migration直接將個backup file drag入去做import…從未試過咁smooth…(feels good) 不過ram report錯咗都係得1G(expected 4G) 下一步就係搞掂seafile🙃呢個有啲麻煩, 我要rsync走50G嘅嘢呢~

我嘅Rock64歷程

前幾日買咗個Rock64,4GB RAM,AArch64/ARMv8,幾好用,算係刷新我對ARM嘅概念,Well,sorry for being an x86 fanboy。 不過我原意係諗住同我個External USB 3.0 2TB WD MyPassport combo一齊用做一個Ghetto NAS。我買咗隻Closure,冇錯就係淘寶賣40蚊人仔果隻,質量唔錯,不過絕對冇散熱功能,裝埋Heatsink照樣66C average。 點知今日搞咗個大龍鳳。(雖然主因係我戇居) 我之前攞咗隻4GB Class 4嘅SD card做booting card裝OMV,雖然有folder2ram但係我都係覺得慢,更何況我之後會裝好多software(包括將呢個blog transfer過去屋企嘅Rock64,除此之外仲有Seafile同Node, Java…順便玩下ARM Docker),所以boot to USB志在必行,畢竟我試過USB3可以有100MB/s嘅peak value,相對來講穩定過3MB/s嘅sdcard好多。 而USB boot嘅必要條件就係要用UBoot。而為咗UBoot,今日都嘥咗唔少時間。雖然官方Image已經自帶SPI flasher,我以為就咁success完,Reboot,Profit。Okay啦,點知reboot咗都係見到sdcard做rootfs,先前我已經諗住用fsarchiver backup一次sdcard再restore落我個128GB嘅EXT4 partition到,點知都係發覺唔得,一直boot唔到。最後都係唔知道死因,但我極度懷疑係folder partition所致。咁我唯有last resort,先將NAS啲content backup出嚟,然後直接Erase HDD。好彩唔係有好多嘢(另一個諗法係我好彩未擺file住,問題係我啲Repo同Plugin要重set)。跨過咗心理難關之後我決定咗禁Etcher嘅Flash制,裝返落去Rock64…一切安好。你個頭。 Reset咗Rock64之後,屌你HDMI無畫面嘅??? 😵係咪我裝錯Brick Q咗個Rock64?係咪要我access serial睇boot log?究竟發生咩事。為咗”Recover” SPI boot,我決定咗又Erase埋個backup sdcard。Flash完,照舊冇HDMI out,而我戇居居就咁”debug”咗兩個鐘。 最後估下點解又得返? … … … 我懷著賭博嘅心態,我攞咗條連Router嘅CAT6駁落去Rock64嘅Ethernet到,發現有DHCP同SSH,連上去睇睇,OpenMediaVault!!!!????WHAT THE FUCKKKKKKK??? 搞咗咁Q耐原来比佢fake鳩咗!!!!!!😥 但係,屌你最後個HDMI呢???… Read more »

好耐無更鳥

無聊咪試下啲無人睇嘅blog post🤣