26 Dec

Buffalo Linkstation: Add NFS function (support NFS v3)

So I just noticed that the previous method only support NFS v2. ESXi require NFS v3 at minimum. So here’s the guide for NFS v3 on Buffalo Linkstation.

Step 1:
Gain SSH and optware (check my previous post)

Step 2:
Check for unfs package

#ipkg update
#ipkg list | grep unfs
unfs3 - 0.9.22-1 - Version 3 NFS server (not recommended, use nfs-utils instead)

Step 3:

Install unfs
#ipkg install unfs3
#ipkg install portmap (optional)

Step 4:
Configure

#nano /opt/etc/exports
/mnt/array1/share (rw,no_root_squash)

(ctrl-x to quit and save)

Restart services

#/opt/etc/init.d/S55portmap restart
#/opt/etc/init.d/S56unfsd restart

You can try mount this NFS from ESXi or ubuntu server

#apt-get install rpcbind nfs-common
#mkdir -p /mnt/mynfsshare
#mount IP-of-your-NFS-Server:/mnt/array1/share /mnt/mynfsshare/
#df -kh

When configuring NFS shares to use as network sources for Kodi’s music/video libraries, use the following format: nfs://1.2.3.4/path/to/folder (where “1.2.3.4” should be replaced with the IP of your NFS server, and “/path/to/folder” should be replaced with the path to the folder you want to share; a double slash between the server and the path is wrong, you should not use nfs://1.2.3.4//path/to/folder)

Reference(s):
http://web.archive.org/web/20151207200629/http://forum.buffalo.nas-central.org/viewtopic.php?t=6531&start=15
https://serverfault.com/questions/554215/nfs-mount-with-nfs-3
https://help.ubuntu.com/community/SettingUpNFSHowTo#Installation

Incoming search terms:

  • century9j1
  • enoughxkb
  • ipkg nfs
  • pilot3gq
25 Dec

Buffalo Linkstation: Add NFS function (caveat – only support NFS v2)

SMB sucks when compared to NFS. Here’s how to enable NFS in our Linkstation.

Step 1
The first step is to gain ssh root access to this Linkstation. Refer here.

Step 2
Install NFS
# ipkg update
# ipkg install nfs-server

Step 3
To configure your exports you need to edit the configuration file /opt/etc/exports. My example is this:

/mnt/array1/backups 10.0.0.10(rw,sync)
/mnt/array1/films 10.0.0.10(rw,sync)
/mnt/array1/tv 10.0.0.10(rw,sync)

or just allow the whole subnets
/mnt/array1/backups 10.0.0.0/24(rw,sync)

Once that file has been updated you’ll need to restart NFS:
# /opt/etc/init.d/S56nfsd stop
# /opt/etc/init.d/S56nfsd start

If you receive this error when restarting NFS daemon:
Cannot register service: RPC: Unable to receive; errno = Connection refused

Try checking portmapper
#rpcinfo -p
rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused

Easy, just restart the portmapper daemon
#/opt/etc/init.d/S55portmap stop
#/opt/etc/init.d/S55portmap start

Then repeat above step to restart NFS.

Reference(s:
https://github.com/skx/Buffalo-220-NAS
https://maazanjum.com/2014/02/17/starting-nfs-quotas-cannot-register-service-rpc-unable-to-receive-errno-connection-refused/

Incoming search terms:

  • xpenology-dsm-6-2-1-on-esxi-6-7-ready-made-ova-file
16 Dec

Install Xpenology (DSM 6.2.1) on ESXi 6.7 – Ready made OVA file

There are plenty of tutorial on how to install Xpenology in virtual environment. I tried few method a year ago and given up. Recently I found newer how-to and success after hitting few bumps. You can refer to this post if you want to try on your own and learn something new along the path. I have decided to improvise it and prepare a ready made OVA file, to ease you importing this VM (or just being lazy to follow the step by step guide :)).

First of all, please download the OVA files from links at the bottom. After that, unzip it and start importing the OVA from your ESXi or VMWare Workstation. This OVA file was exported from ESXi 6.7, and running DSM 6.2.1 Рlatest version as of this post).

Drag all the 3 files to the import window

Choose Thick for best performance (pre-allocate disk space)

Increase Disk 2 if needed

Click finish to complete import and power on the VM

Wait for 1 minute and locate yoru DSM VM. The VM will obtain ip address from DHCP (you can check from your DHCP server) or just type find.synology.com in your web browser – it will scan your network and find the DSM

When DSM is located, click Connect

Enter your DSM info here

Click “Skip this step”

Go to Storage Manager to create your first disk pool

Drag the available disk from the left to the right

Next is to create volume pool

This is optional but recommended step. Download openvm-tool and install it using Package Center. This is to enable ESXi to have visibility on this VM such as IP Address and allow you to gracefully shutdown the VM from vSphere.

VM info is displayed correctly after open-vm-tool is installed.

Download links:
https://advanxer.com/goto/ofile
https://advanxer.com/goto/ufile
https://advanxer.com/goto/wetransfer

Incoming search terms:

  • XPEnology ova
  • https://advanxer com/blog/2018/12/install-xpenology-dsm-6-2-1-on-esxi-6-7-ready-made-ova-file/
  • xpenology esxi 6 7
  • xpenology esxi
  • xpenology ova vmware
  • xpnology vmware ova
  • dsm 6 2 esxi
  • xpenology 6 2 1 passwofrd
  • xpenology download ova
  • dsm ovf
  • dsm 6 2 loader 1 04 esxi
  • xpenology on esxi
  • vmware xpenology
  • xpenology dsm 6 2 1
  • install xpenology on esxi
15 Dec

Energy efficient log servers with Raspberry Pi

I have few Raspberry Pi 2 (RPi2) laying around and doing nothing. For this project, I will be building a centralized log server on RPi2 for my home usage.

1. I’m using DietPi for the OS for simple reason, it is extremely lightweight and having the lowest memory footprint. I will not be covering the image installation to the RPi2 sdcard because that is pretty common process and I assume everyone is already know doing that. Get it from here https://dietpi.com/

2. Once DietPi is installed, ssh to it and complete the initial setup and update.

3. I’m using remotesyslog for for the log collector. If you need advance feature, you may explore Graylog2. Follow the remotesyslog installation guide from here https://www.remotesyslog.com/legacy/

4. Configure your devices to send the logs to this remotesyslog.

5. There are 2 ways of viewing the logs, through the CLI and Web UI.

6. Access the remotesyslog by launching any web browser and you may see below screen.

7. SSH to the remotesyslog and run rsview to see the logs form the terminal.