{
"$type": "site.standard.document",
"canonicalUrl": "https://justingarrison.com/blog/2011-08-01-learn-how-to-upgrade-and-manage-your-amahi-server-storage",
"coverImage": {
"$type": "blob",
"ref": {
"$link": "bafkreic4yo3gspwmn3yopwmpowaptswmccs3vpch4375sdn4n54oz23l6a"
},
"mimeType": "image/png",
"size": 71409
},
"description": "We have just shown you that you can upgrade your Windows Home Server for free",
"path": "/blog/2011-08-01-learn-how-to-upgrade-and-manage-your-amahi-server-storage",
"publishedAt": "2011-08-01T00:00:00.000Z",
"site": "at://did:plc:p7uix7mresfq4nfzxp3klgfa/site.standard.publication/3mmdn7mg2qm2d",
"textContent": "We have just shown you that you can upgrade your Windows Home Server for free by choosing the open source Amahi server. Now that it’s installed, here’s how to manage your drives, shares, and storage pool.\n\nAdd Hard Drive\n\nThe first step to adding storage is to add more drives. To do that, shutdown the server and plug in the additional hard drives you would like to add.\n\nWe will need to format the new drive so make sure you have a backup of anything you may need.\n\n!/img/whs-00.png?trim=1,1&bg-color=000&pad=1,1\n\nPower on the Amahi machine and use another computer to SSH to the server.\n\nIf you don’t have an SSH client on another computer you can also use anyterm from the Amahi repository.\n\n!/img/ssh-00.png?trim=1,1&bg-color=000&pad=1,1\n\nFirst, install a few tools so we can mount and format the drive(s). Run this command as root:\n\n> yum -y install pmount fuse fuse-libs ntfs-3g gparted util-linux-ng\n\n!/img/ssh-02.png?trim=1,1&bg-color=000&pad=1,1\n\nNext, check to make sure your hard drive was detected with the command\n\n> ls -l /dev/disk/by-id/ | egrep -v \"part|scsi\"\n\nYou will want to look for something that starts with “ata-” because these are your IDE and SATA drives while something that starts with “usb-” will be a USB hard drive. Make note of the part after the “-> ../../sd” because that corresponds to your hard drive letter in /dev/sdX\n\n!/img/ssh-01.png?trim=1,1&bg-color=000&pad=1,1\n\nUsing the drive letter you just got, launch cfdisk from the terminal as root with your new drive as it’s only option.\n\nMake sure this is your new drive and not an existing drive with data. All of the information will be formatted from the drive in this next step. Typically if you only have two hard drives the first will be /dev/sda while the second will be /dev/sdb\n\nIn the example above I will launch cfdisk with:\n\n> cfdisk /dev/sdb\n\nIf you have partitions already on the drive use up/down to select the partition(s) and left/right to select the delete action at the bottom.\n\nOnce all the partitions have been deleted you can then select new, to create a new partition, and then write the new partition table to the drive.\n\n!/img/ssh-03.png?trim=1,1&bg-color=000&pad=1,1\n\nQuite cfdisk when the actions have been completed and then run the command below replacing sdX with your drive letter.\n\n> mkfs.ext4 -j /dev/sdX1\n\n!/img/ssh-04.png?trim=1,1&bg-color=000&pad=1,1\n\nNow the drive has a fresh partition formatted and ready to go. Run the command\n\n> hda-diskmount\n\nas root to automatically mount your new partition.\n\n!/img/ssh-05.png?trim=1,1&bg-color=000&pad=1,1\n\nThe hda-diskmount command will also give you the line you need to add to /etc/fstab to automatically have the drive mounted every time the server is turned on.Use nano to edit your fstab file as root\n\n> nano /etc/fstab\n\nand add the suggested line from the hda-diskmount command to the bottom of the file.\n\n!/img/ssh-06.png?trim=1,1&bg-color=000&pad=1,1\n\nReboot the system and when the server is back up go to to the webpanel to verify the hard drive is mounted.\n\nManage Storage Pool\n\nNow that the hard drive is formatted and mounted, go to your HDA’s setup page, click on the settings page and then check the box for advanced settings.\n\n!/img/web-00.png?trim=1,1&bg-color=000&pad=1,1\n\nNow go to the shares -> storage pool tab and check the box next to your new hard drive to use the drive in the greyhole pool.\n\n!/img/web-01.png?trim=1,1&bg-color=000&pad=1,1\n\nIf you want to use the benefits of pooled storage you will need to add more than one hard drive to the pool. Repeat the steps above to add more drives to your HDA and then pool the drives here.\n\nCreate Share\n\nNow that you have more space and the storage is being pooled, click on the shares -> shares tab and click new share.\n\nGive the share a name and select if you want it to be read only and visible.\n\n!/img/web-02.png?trim=1,1&bg-color=000&pad=1,1\n\nOnce the share is created, click on the edit icon next to the share name and check the box to use the storage pool.\n\nIf you have more than one hard drive added to the pool you can also select how many copies of the files you would like to store in case hard drives fail.\n\n!/img/web-03.png?trim=1,1&bg-color=000&pad=1,1\n\nFor more information or advanced setup of your storage, check out the Amahi wiki\n\nAmahi wiki: Adding a Second Hard Drive\n\nAmahi wiki: Storage Pooling",
"title": "Learn How to Upgrade and Manage Your Amahi Server Storage"
}