I am fairly new to Amahi and Greyhole, so please forgive me if I don't explain my problem very well. I will start by explaining how I have my HDA set up, and then I'll tell you what the problem is.
My HDA is an old laptop (Pentium M 1.7 Ghz, 100 Gb HD), I have a 2TB External USB 2.0 drive (formated as ext3) attached to it, that I would like to use to store my files on. Eventually, I would like to add a second 2 TB USB External hard drive which is currently connected to my Windows 7 desktop to the pool, but I need to get the first one up and running so I can migrate my files off of my machines and onto the server before I can add it to the pool.
My problem is that after following the instructions for adding another hard drive, I see my disk (under storage), but don't see the partition.
My software versions:
2.6.31.5-127.fc12.i686.PAE
samba-3.4.2-47.fc12.i686
hda-greyhole-0.7.5-1.i386
The content of the /etc/samba/smb.conf & /etc/greyhole.conf files:
http://fpaste.org/cuHY/
http://fpaste.org/yMIh/
RESULTS OF mount; fdisk -l; df -h; greyhole --stats:
/dev/mapper/vg_homeserver-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
Disk /dev/sda: 99.8 GB, 99830223360 bytes
255 heads, 63 sectors/track, 12137 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00069580
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 12137 97285621 8e Linux LVM
Disk /dev/dm-0: 96.5 GB, 96464797696 bytes
255 heads, 63 sectors/track, 11727 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 3154 MB, 3154116608 bytes
255 heads, 63 sectors/track, 383 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/sdb: 1999.7 GB, 1999696297984 bytes
255 heads, 63 sectors/track, 243115 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0005a4e2
Device Boot Start End Blocks Id System
/dev/sdb1 1 243116 1952827392 83 Linux
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_homeserver-lv_root
89G 20G 65G 23% /
tmpfs 750M 88K 750M 1% /dev/shm
/dev/sda1 194M 22M 163M 12% /boot
List of directories on the root:
http://fpaste.org/s3ai/
mysql -u root -phda -e "select * from disk_pool_partitions" hda_production
No results!
Results of greyhole --view-queue:
No results!
Can't find Partition
Re: Can't find Partition
Your /dev/sdb1 partition isn't mounted.
("mount" doesn't show it)
If you added a new line in fstab, you should use the "mount -a" command to try to mount it.
If it doesn't work, an error should appear.
If it returns without errors, but you still don't see sdb1 in the result of "mount", then you probably didn't add what you needed to add in /etc/fstab.
You can "fpaste /etc/fstab" and paste here, and we should be able to point out your problem.
("mount" doesn't show it)
If you added a new line in fstab, you should use the "mount -a" command to try to mount it.
If it doesn't work, an error should appear.
If it returns without errors, but you still don't see sdb1 in the result of "mount", then you probably didn't add what you needed to add in /etc/fstab.
You can "fpaste /etc/fstab" and paste here, and we should be able to point out your problem.
- Guillaume Boudreau
-
- Posts: 74
- Joined: Thu Dec 16, 2010 6:00 pm
Re: Can't find Partition
Thanks for the quick response.
"mount -a" gives me an error:
[root@home-server ~]# mount -a
mount: mount point /var/hda/files/drives/sdb1 does not exist
mount: mount point defaults does not exist
http://fpaste.org/cF12/
"mount -a" gives me an error:
[root@home-server ~]# mount -a
mount: mount point /var/hda/files/drives/sdb1 does not exist
mount: mount point defaults does not exist
http://fpaste.org/cF12/
-
- Posts: 74
- Joined: Thu Dec 16, 2010 6:00 pm
Re: Can't find Partition
Ok, this is wierd, but I just checked the HDA, and the disk is now mounted. Question, I don't want my files to be stored on the 100Gb internal laptop disk, I don't have that disk selected as being part of the pool, is there anyway to prevent my files from being stored on that drive?
Re: Can't find Partition
If it's not selected, it will only be used as a temporary placeholder for new files.
If you don't want that, you'll need to edit your shares Location (path) to point to something else than /var/hda/files/share_name
For example, you could change that to /var/hda/files/drives/drives1/share_name.
BTW, the error you now get when doing "mount -a" will probably prevent your computer from booting, the next time you reboot!
You should fix them ASAP.
The 'defaults' error is probably because you split a line you shouldn't have (defaults is on the beginning of a line, but it should be at the end of the previous line.)
And the sdb1 error might be an old drive you had mounted there. Is your new drive mounted in drives/sdb1, or in drives/drive1 ?
If it's in drives/drive1 (it should be; the new hda-diskmount script uses drive# folders, not sdX# anymore), then you can delete the line that reference drives/sdb1.
If you still have errors when doing "mount -a", just do "fpaste /etc/fstab" and we should be able to point out the problems.
If you don't want that, you'll need to edit your shares Location (path) to point to something else than /var/hda/files/share_name
For example, you could change that to /var/hda/files/drives/drives1/share_name.
BTW, the error you now get when doing "mount -a" will probably prevent your computer from booting, the next time you reboot!
You should fix them ASAP.
The 'defaults' error is probably because you split a line you shouldn't have (defaults is on the beginning of a line, but it should be at the end of the previous line.)
And the sdb1 error might be an old drive you had mounted there. Is your new drive mounted in drives/sdb1, or in drives/drive1 ?
If it's in drives/drive1 (it should be; the new hda-diskmount script uses drive# folders, not sdX# anymore), then you can delete the line that reference drives/sdb1.
If you still have errors when doing "mount -a", just do "fpaste /etc/fstab" and we should be able to point out the problems.
- Guillaume Boudreau
-
- Posts: 74
- Joined: Thu Dec 16, 2010 6:00 pm
Re: Can't find Partition
Thanks to your help, I was able to fix the fstab, so I no longer get any errors when I "mount -a". My USB drive is now mounted on /var/hda/files/drives/drive1.
Thanks again.
Thanks again.
-
- Posts: 74
- Joined: Thu Dec 16, 2010 6:00 pm
Re: Can't find Partition
I finally got all my data migrated onto the greyhole shares. I was in the process of formatting my second USB drive to ext3 format, when gparted crashed. This has led to one frustrating series of re-formats from NTFS then try to reformat to ext3. Somewhere in the process, I messed up my HDA install, as the machine would not boot. I have reinstalled my HDA, what do I need to do so I can add my first External drive into the pool without having to reformat and re-copy all my data to the pool?
Re: Can't find Partition
Just follow the same instructions you followed to add the drive the first time.
But don't format it this time!!
Once it's included in the pool, launch a "greyhole --fsck" from a Terminal, and that should re-create the symlinks for all the files found in the drive you re-added in the pool.
But don't format it this time!!
Once it's included in the pool, launch a "greyhole --fsck" from a Terminal, and that should re-create the symlinks for all the files found in the drive you re-added in the pool.
- Guillaume Boudreau
-
- Posts: 74
- Joined: Thu Dec 16, 2010 6:00 pm
Re: Can't find Partition
If I added new shares, do I need to recreate those shares in the pool before I run the "greyhole --fsck"? Or wil running "greyhole --fsck" add all the shares for me?
Re: Can't find Partition
You should never touch anything inside the gh folder.
Greyhole will create directories there as needed.
Greyhole will create directories there as needed.
- Guillaume Boudreau
Who is online
Users browsing this forum: No registered users and 56 guests