Difference between revisions of "Building a Storage Server"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
Line 9: Line 9:
{{!}}}
{{!}}}


We will be creating our storage server as an LXC under Proxmox with dedicated physical drives on the physical server.
We will be creating our storage server as an [[PVE LXC Containers|LXC]] under [[Proxmox Stuff|Proxmox]] with dedicated physical drives on the physical server.


(NOTE: any file/folder names in '''''bold & italic''''' here are examples of what I'm doing on a local system & may be different depending on YOUR needs...)
(NOTE: any file/folder names in '''''bold & italic''''' here are examples of what I'm doing on a local system & may be different depending on YOUR needs...)
Line 27: Line 27:
Personally, I like to handle my drives '''by label''' to make them easier to find & move around if needed.
Personally, I like to handle my drives '''by label''' to make them easier to find & move around if needed.


<span style="color: rgb(132, 63, 161);" >
<span style="color: rgb(132, 63, 161);" ><u>'''WIP''': Mounting dedicated drives to an LXC</u></span>
<u>'''WIP''': Mounting dedicated drives to an LXC</u></span>


=== Prepping the shares "to be" ===
=== Prepping the shares "to be" ===

Revision as of 15:55, 3 August 2024

Proven on:
Logo Debian.png
12 (bookworm)


We will be creating our storage server as an LXC under Proxmox with dedicated physical drives on the physical server.

(NOTE: any file/folder names in bold & italic here are examples of what I'm doing on a local system & may be different depending on YOUR needs...)

Building the LXC under Proxmox

Configuring the LXC

Configure this as a Privileged container.

Under Options / Features, turn on Nesting, NFS & SMB/CIFS.

It will simply your life if you can set up local users matching each network user that will be accessing this server. On my network, there are only 3 users that match this criteria. But, you may want to look into kerberos or some such.

Setting up dedicated drives

See: Adding a new drive from the command line

Personally, I like to handle my drives by label to make them easier to find & move around if needed.

WIP: Mounting dedicated drives to an LXC

Prepping the shares "to be"

  • Create the starting points
    • sudo mkdir /Backups
    • sudo mkdir /Media
    • sudo mkdir /Documents
  • Create the folders to be shared
    • sudo mount -o bind /mnt/Storage-3/Cecil-Backup/ /Backups/Cecil
    • sudo mount -o bind /mnt/Storage-3/Cleanup-Space/Photos /Media/Photos
    • etc, etc, etc...

NFS

See: Setting up NFS for file sharing

Configuring the NFS shares

SMB

See: Installing Samba from the command line

Configuring the SMB shares

FTP

See: FTP Serving

Configuring the FTP shares