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
Re-install of Boot drive
Re: Re-install of Boot drive
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: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: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.
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
To see when fsck is done:
Code: Select all
tail -f /var/log/greyhole.log
- Guillaume Boudreau
Re: Re-install of Boot drive
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
If not how can I fix it?
Thanks,
Quaz
Re: Re-install of Boot drive
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.
So I hope you hadn't placed / in your pool, if you destroyed that partition.
- Guillaume Boudreau
Re: Re-install of Boot drive
nope / wasn't in my pool. Thanks for the help.
Re: Re-install of Boot drive
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
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
Re: Re-install of Boot drive
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.
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
Re: Re-install of Boot drive
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
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 2 guests