NAS – Openmediavault
This post is about me trying to set up a working NAS server that is compatible with my virtual environment.
I’m running a small virtual server environment on a HP Proliant micro server a piece of great hardware. I using a Gen7 version 2.2 duo-core running proxmox. Im not going into what and how proxmox works but in short it is a KVM Hypervisor with a intuitive web-interface. Much easier then my previous solution with libvirt and Virsh.
To briefly show those who don´t know proxmox here is a overview showing my Openmedievault servers options.
|Proxmox – OpenMediaVault server overview|
As you can see it is quite nice web interface.
well I had a problem adding a new virtual HDD to the VM (virtual Machine). Running in the console did not show the new hard drive of 500GB. First I forgot that this VM did have hot-plug enable and a restart is not enough. Forgot to treat the VM like a physical machine and shut it off before it was able to see this new drive.
After a VM shutdown the HDD can be seen and can then be added with Openmediavault.
Creating a file system
A brief walk through of adding a share with a new disk.
- Confirm that drive i pressent under Storage > Physical disks
- Create a file system
- Add a shared folder under access Rights Management
- Turn that into a smb share under Services > SMB/CIFS
- Give users access to shared folders
Okay first off. Going to varify that the disk has been found by openmediavault.
Okay this is a good start.
The HDD needs a configured filesystem.
Under /storage/file system I´m creating a new file system on the new drive so I can use it for my nas server.
Using the “Create” options on the drive starts the process of turning it into a usable drive.
- Choose the device – this is the new drive added to openmediavault. Mine is a QEMU drive because it is virtual. But is a Qcow2 image so it will only use the space the the files I upload to the server uses.
- Give a suitable label name that in one word describes what the drive will be used for.
- Select EXT4 for file system
- Press yes to the pop-up that you will format the drive.
Now it will process the drive..
And when it is done it has to me mounted.
Creating share folder
I started by creating a music folder only to show how this works.
Now a share folder has been created. But it is not possible to access it by smb from my Windows machine just yet
To use this new share with windows SMB has to be enabled under Services and the shares you want to add.
Now a none-public SMB share is set up to service its users. But there are no users that are allowed to use this folder.
Managing users and permissions
I have already create a user for my self with my initials JKP and it is quite straight forward.
I want my user to have access to the music folder on the share. I can to this two ways.
Privileges is quite easy. It sets up what the user can – R/W, read-only and no access.
With ACL it is possible to do some more specific configurations on what it necessary.