A New Amahi User - Final Setup Questions

spooter
Posts: 3
Joined: Wed Oct 07, 2009 11:42 pm

A New Amahi User - Final Setup Questions

Postby spooter » Wed Oct 07, 2009 11:44 pm

Hi all,

Im a new Amahi user!

I decided to build an Amahi server after reading about it in Micro Mart and on the website. I do have a few questions regarding Amahi though.

Question 1

I had to build Amahi with only 1 disk connected as I only have 2 sata ports. I have no disconnect the CD drive and added my second large I plan to use for storage. I have formatted it to ext3 but how do I add this to Amahi? I tried the diskmounter script but that doesn’t appear to have added the disk.
I would like this second disk to store my main shares. I guess this is easy enough to change though.

Questions 2

Looking in Gparted the File System on first disk (with fedora installed) shows a weird file system, its LV something (can’t remember exactly), is this normal?

Question 3

How secure is the Amahi server? I presume amahi cannot access the hda even though you can connect to it through the website. Do they inventory are information/data?

Sorry about all the questions. So far im impressed with the interface and the install guide worked a treat. For those interested I setup the below box for my hda.

The Box

Sugo SG06
Gigabyte Atom 330 Board
120Gb (Install)
1.5Tb (Data Store)
2Gb PC6400

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: A New Amahi User - Final Setup Questions

Postby moredruid » Thu Oct 08, 2009 12:45 am

Q1: Your disk is ready to be used. It's probably /dev/sdb1, but please make sure of this first (sdb is the disk, 1 is the partition number). Now you need to define a mount point for it. The easiest way is to create a new share and mount the new disk there. You can create a new (custom) share in the amahi dashboard. Let's say we call it "misc". You can substitute this for another name of course but then you'll have to change the "misc" part in the below commands.
go to the command line (don't worry, I'll be easy on you)...

Code: Select all

root@hda# ls -la /var/hda/files
note that a folder has been created with the name "misc".

Code: Select all

root@hda# mount /dev/sdb1 /var/hda/files/misc root@hda# df -h
you'll see that the new mount point "misc" has been added with lots of free space, yay!
now we unmount the drive again and add the following line to /etc/fstab (but first we make a backup!):

Code: Select all

root@hda# umount /var/hda/files/misc root@hda# cp /etc/fstab /etc/fstab.backup root@hda# echo "/dev/sdb1 /var/hda/files/misc ext3 defaults 1 2" >> /etc/fstab
now let's test if everything works OK:

Code: Select all

root@hda# mount -a
and again you should see (with the command "mount" or "df -h") that the new disk is available.
If you get no errors the system will mount the disk after a reboot. If you get errors the system might hang after a reboot.
Note that this means that your 1.5TB disk is fully used for the "misc" share, not for the default shares that already exist in Amahi!

Q2: it's no weird filesystem, it's a Logical Volume. it probably has ext3 filesystems. don't worry about it, it's normal for Fedora.

Q3: please read this topic.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

spooter
Posts: 3
Joined: Wed Oct 07, 2009 11:42 pm

Re: A New Amahi User - Final Setup Questions

Postby spooter » Thu Oct 08, 2009 1:23 am

Thanks for the quick reply.

I will try this when im home later and post back my results. If I wanted can remove all the default shares, mount the new disk and then create the default shares again but point them to the bigger disk?

Regards
Marcus

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: A New Amahi User - Final Setup Questions

Postby moredruid » Thu Oct 08, 2009 1:31 am

yup, you can.
you can then mount the new disk on /var/hda/files instead of on /var/hda/files/misc.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

spooter
Posts: 3
Joined: Wed Oct 07, 2009 11:42 pm

Re: A New Amahi User - Final Setup Questions

Postby spooter » Thu Oct 08, 2009 7:48 am

Hi,

Just followed your instructions but mounted the new disk like this and now this disk is displayed under the storage tab on hda.

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
106G 3.4G 98G 4% /
/dev/sda1 190M 14M 167M 8% /boot
tmpfs 1009M 76K 1009M 1% /dev/shm
/dev/sdb1 1.4T 198M 1.3T 1% /var/hda/files

I think this has now made my default shares point to the bigger disk?

I still have a problem as I cant see the new disk when actually in Fedora? If I go into Computer all I have is 1 disk labeled as filesystem? How do I see my other disk?

Sorry about all the questions.

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: A New Amahi User - Final Setup Questions

Postby moredruid » Thu Oct 08, 2009 10:48 pm

you'll need to recreate the shares through the hda dashboard.

in linux you won't see the disk as such in your filesystem browser. You will only see the mount points. the reasoning is that users shouldn't be bothered with disks, only with folders. no need to go to D:, E:, F:, Z:, this goes for network folders as well.
You could have a NFS mount on /mnt/krusty_the_clown and from a top level view (i.e. filesystem browser view) you wouldn't know this is on a network share.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

User avatar
lou1z
Posts: 206
Joined: Fri Jul 17, 2009 1:58 am

Re: A New Amahi User - Final Setup Questions

Postby lou1z » Thu Oct 08, 2009 11:05 pm

that's probably one of the hardest concepts for windows users to grasp. you could be looking at a folder that has 500gb of space (sda1) while 10 other folders have 500gb between them (sda2)

here is a good simple tutorial:
http://www.linuxplanet.com/linuxplanet/ ... ls/4232/1/

Who is online

Users browsing this forum: No registered users and 28 guests