How to move files amongst SHARES (Greyhole or not)

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

How to move files amongst SHARES (Greyhole or not)

Postby ralfb » Mon Dec 13, 2010 11:51 pm

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)
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

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

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

Postby gboudreau » Tue Dec 14, 2010 5:38 am

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.
- Guillaume Boudreau

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

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

Postby gboudreau » Tue Dec 14, 2010 5:39 am

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.
- Guillaume Boudreau

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

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

Postby ralfb » Wed Dec 15, 2010 4:17 pm

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
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

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

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

Postby gboudreau » Wed Dec 15, 2010 4:20 pm

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).
- Guillaume Boudreau

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

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

Postby ralfb » Wed Dec 15, 2010 5:03 pm

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
Last edited by ralfb on Wed Dec 15, 2010 5:11 pm, edited 1 time in total.
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

User avatar
radioz
Posts: 406
Joined: Tue Nov 24, 2009 1:07 pm

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

Postby radioz » Wed Dec 15, 2010 5:09 pm

Can you post the output of 'cat /etc/fstab'?

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

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

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

Postby ralfb » Wed Dec 15, 2010 5:14 pm

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
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

User avatar
radioz
Posts: 406
Joined: Tue Nov 24, 2009 1:07 pm

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

Postby radioz » Wed Dec 15, 2010 10:16 pm

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?

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

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

Postby gboudreau » Thu Dec 16, 2010 4:24 am

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
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 33 guests