Page 1 of 4

How to move files amongst SHARES (Greyhole or not)

Posted: Mon Dec 13, 2010 11:51 pm
by ralfb
Hello

Could you please tell me how I may move files between shares?

For example, how can I move files from :\\hda\books to :\\hda\docs

or even from:

\\hda\movies to \\hda\movies\HD

Many thanks,

Ralf

(PS. I have 3TB drives in one Greyhole storage pool, no extra copies)

Re: How to move files amongst SHARES (Greyhole or not)

Posted: Tue Dec 14, 2010 5:38 am
by gboudreau
If one or both shares are part of the storage pool, you should mount both shares (locally on the HDA, or on any client computer on your network), and move the files using that.

If both are NOT part of the storage pool, you can move the files on the HDA itself, by moving the files from /var/hda/files/share1 to /var/hda/files/share2.

Re: How to move files amongst SHARES (Greyhole or not)

Posted: Tue Dec 14, 2010 5:39 am
by gboudreau
To move files within the same share (Movies/* to Movies/HD/*), you just mount that share anywhere, and move the files like you'd normally do. This will be very fast (compared to moving files to a different share), since moving files within a share is just a rename, as copying from one share to another is a copy.

Re: How to move files amongst SHARES (Greyhole or not)

Posted: Wed Dec 15, 2010 4:17 pm
by ralfb
Many thanks Guillaume,

I followed those instructions a few days ago but it did not give me result.

Where am I mean to be seeing the mounted shares?

When I look into mnt:samba:movies for example, the location is empty.

Is this where the mounted share should be?

Many thanks for your guidance.

Ralf

Re: How to move files amongst SHARES (Greyhole or not)

Posted: Wed Dec 15, 2010 4:20 pm
by gboudreau
The shares are NOT mounted locally by default.
You need to mount them yourself (per the wiki instructions; not that easy), or just use a Windows computer instead to move the files (much easier).

Re: How to move files amongst SHARES (Greyhole or not)

Posted: Wed Dec 15, 2010 5:03 pm
by ralfb
Many thanks,

I've mounted the shares I've created yet am puzzled by the error below when testing manually as per wiki instructions:

[root@padme samba]# /bin/sed -ie 's/#smb#//g' /etc/fstab
[root@padme samba]# /bin/mount -a
mount: mount point 0 does not exist
mount: mount point 0 does not exist

[root@padme samba]# /bin/sed -ie 's@//127.0.0.1@#smb#//127.0.0.1@g' /etc/fstab
[root@padme samba]#

The other thing is I can now open the share in /mnt/samba/movies for example AND I've hooked up a USB-HDD but can not copy from the USB-HDD to the share.

The error is: The folder "abc" cannot be copied because you do not have permissions to create it in the destination.

Are you able to guide me further?

Many thanks

Ralf

Re: How to move files amongst SHARES (Greyhole or not)

Posted: Wed Dec 15, 2010 5:09 pm
by radioz
Can you post the output of 'cat /etc/fstab'?

There must be an error with one of your mount points.

Re: How to move files amongst SHARES (Greyhole or not)

Posted: Wed Dec 15, 2010 5:14 pm
by ralfb
sure, thanks:

cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Sun Dec 12 17:52:24 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_padme-lv_root / ext4 defaults 1 1
UUID=cd9649e6-6d69-4624-8199-9089ac97241b /boot ext4 defaults 1 2
/dev/mapper/vg_padme-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=42ea0928-74e1-4c49-ada8-452d0dda3ea2 /var/hda/files/drives/drive1 ext4 defaults 1 2
UUID=30e95e65-2d7d-4101-90d1-993423380444 /var/hda/files/drives/drive2 ext4 defaults 1 2
UUID=b4bd72a2-d31d-4c10-af4c-9c927c7ca060 /var/hda/files/drives/drive3 ext4 defaults 1 2
#smb#//127.0.0.1/movies /mnt/samba/movies cifs
credentials=/home/ralf/.smb_credentials,uid=500,gid=100,file_mode=0660,dir_mode=0770,hard,_netdev 0 0
#smb#//127.0.0.1/music /mnt/samba/music cifs
credentials=/home/ralf/.smb_credentials,uid=500,gid=100,file_mode=0660,dir_mode=0770,hard,_netdev 0 0

Re: How to move files amongst SHARES (Greyhole or not)

Posted: Wed Dec 15, 2010 10:16 pm
by radioz
Hmm, nothing obvious.

Ok, post the output of 'sudo blkid'. Maybe there is a problem with the blockids of your drives.

(I'm kind of shooting in the dark here with some basic troubleshooting tests)

Anyone else see anything wrong?

Re: How to move files amongst SHARES (Greyhole or not)

Posted: Thu Dec 16, 2010 4:24 am
by gboudreau
Try those, and report what they return. Run them as ralf (the user you use to mount the shares), NOT as root.

Code: Select all

ls -la /mnt/samba/movies ls -la /var/hda/files/movies touch /var/hda/files/movies/file1 rm /var/hda/files/movies/file1 touch /mnt/samba/movies/file2 rm /mnt/samba/movies/file2