Re-install of Boot drive

Quazeye
Posts: 19
Joined: Wed Jun 30, 2010 9:41 pm
Location: Calgary, Alberta, Canada

Re-install of Boot drive

Postby Quazeye » Wed Jul 21, 2010 1:26 pm

Hi,

I had a power outage and my server is giving me a bunch of errors now. If I re-install amahi on my boot drive (not in greyhole pool) how do I set it up to see the files that are in my greyhole pool again? Do I just add the drives to the pool and all the files will be there?

Thanks,
Quaz

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Re-install of Boot drive

Postby gboudreau » Wed Jul 21, 2010 2:25 pm

When re-installing, be careful not to wipe your storage pool drives (better you disconnect them while you re-install).

After re-installing, just re-do what you did to setup your storage pool initially:
1. Mount the drives where they were mounted before
2. Go on the Amahi dashboard, Storage Pool page, and select the drives that were in your storage pool before
3. Go in the Shares page, and select 'Uses Pool', and the correct number of extra copies, for all the shares which are part of your storage pool.
(You might need to re-create some non-default shares, if you had any.)

At that point, you should be able to see your files in your pooled shares.
If some files are missing, it might be because your drives changed name, and thus mount point (if you used hda-diskmount to mount them in /var/hda/files/drives/...) i.e. what was before known as /var/hda/files/drives/sdb1 might have become /var/hda/files/drives/sdc1.
If all files are missing, it's probably that your shares were on the partition that you wiped, and thus, all symlinks to the file copies in your storage pool are now gone.

To fix that, wait for the nightly Greyhole check to run, or run it manually from a Terminal:

Code: Select all

greyhole --fsck
Greyhole will then find the file copies on your pooled drives, and re-create the necessary symlinks in your shares.
To see when fsck is done:

Code: Select all

tail -f /var/log/greyhole.log
Wait for that to say something like 'Sleeping...' every 10 seconds, which will mean it's done with fsck, and is now waiting for something to do.
- Guillaume Boudreau

Quazeye
Posts: 19
Joined: Wed Jun 30, 2010 9:41 pm
Location: Calgary, Alberta, Canada

Re: Re-install of Boot drive

Postby Quazeye » Thu Jul 22, 2010 8:45 pm

Thanks Guillaume... I can see some of my files now but not all. If the drives changed names as you mention in your post will this fix itself with the greyhole --fsck ??

If not how can I fix it?

Thanks,
Quaz

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Re-install of Boot drive

Postby gboudreau » Fri Jul 23, 2010 3:06 am

Yes, fsck will fix it, as long as all the partitions that were in your pool previously are still in your pool now.
So I hope you hadn't placed / in your pool, if you destroyed that partition.
- Guillaume Boudreau

Quazeye
Posts: 19
Joined: Wed Jun 30, 2010 9:41 pm
Location: Calgary, Alberta, Canada

Re: Re-install of Boot drive

Postby Quazeye » Fri Jul 23, 2010 7:17 am

nope / wasn't in my pool. Thanks for the help.

Quazeye
Posts: 19
Joined: Wed Jun 30, 2010 9:41 pm
Location: Calgary, Alberta, Canada

Re: Re-install of Boot drive

Postby Quazeye » Fri Jul 23, 2010 7:39 pm

Hi Again,

I have all my files now. However there is now another issue. I can't delete any of the files in my shares from Windows. It give me an access is denied error everytime. Do you know why this is and how I can fix it?

Thanks,
Quaz

edit: I also just tried to copy to some shares as well and it won't let me do that either. Same error.

Thanks,
Quaz

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Re-install of Boot drive

Postby gboudreau » Sat Jul 24, 2010 3:51 am

I'm guessing this has something to do with the reinstall.
I guess you're connecting with a username that is associated with a different Linux user ID (UID) than the previous owner of your shared files.

Code: Select all

ls -la /var/hda/files/drives/*/gh/ | fpaste ls -la /var/hda/files/ | fpaste
- Guillaume Boudreau

Quazeye
Posts: 19
Joined: Wed Jun 30, 2010 9:41 pm
Location: Calgary, Alberta, Canada

Re: Re-install of Boot drive

Postby Quazeye » Sat Jul 24, 2010 1:04 pm

Hi Guillaume,

I actually fixed this with your response at the bottom of this post:

http://forums.amahi.org/viewtopic.php?f=4&t=1008

Thanks!

Quaz

Who is online

Users browsing this forum: No registered users and 4 guests