Moving Data from old drives to new drives.

Megabeast
Posts: 2
Joined: Sat Feb 23, 2013 5:01 pm

Moving Data from old drives to new drives.

Postby Megabeast » Tue Jan 24, 2017 3:58 am

Hi There,

I have just migrated from Amahi 6 on Fedora 14 to Amahi 9 on Fed23.
I have installed and successfully accessed my old shares running on dual WD 2TB WD Caviar Greens.
I have also installed two new WD 4TB Red NAS drives and wish to move the data over.
I have not used the UI for Greyhole but followed the manual install methods described in the wiki and also checked the details on provisioning drives greater than 2TB.

All seems to have gone well, except that i'm not 100% clear from the wiki on the method to move the data from the old 2TB drives to 4TB drives.
Details from my system:
fpaste /etc/samba/smb.conf
Uploading (4.8KiB)...
http://paste.fedoraproject.org/535396/85253843/ -> https://paste.fedoraproject.org/535396/85253843
[root@localhost ~]# fpaste /etc/greyhole.conf
Uploading (1.6KiB)...
http://paste.fedoraproject.org/535397/85253874/ -> https://paste.fedoraproject.org/535397/85253874
[root@localhost ~]#
mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=4070656k,nr_inodes=1017664,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda3 on / type ext4 (rw,relatime,data=ordered)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=26,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12606)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
/dev/sdd1 on /var/hda/files/drives/drive5 type ext4 (rw,relatime,data=ordered)
/dev/sde1 on /var/hda/files/drives/drive6 type ext4 (rw,relatime,data=ordered)
/dev/sdb1 on /var/hda/files/drives/drive3 type ext4 (rw,relatime,data=ordered)
/dev/sdc1 on /var/hda/files/drives/drive4 type ext4 (rw,relatime,data=ordered)
/dev/sda1 on /boot type ext4 (rw,relatime,data=ordered)
none on /var/spool/greyhole/mem type tmpfs (rw,relatime,size=4096k)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=815736k,mode=700)
[root@localhost ~]# fdisk -l
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x9778ceb1

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1026047 1024000 500M 83 Linux
/dev/sda2 1026048 17543167 16517120 7.9G 82 Linux swap / Solaris
/dev/sda3 17543168 122400767 104857600 50G 83 Linux




Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 5F2E6247-A47D-4178-BCF4-BAD61881CD07

Device Start End Sectors Size Type
/dev/sdb1 4096 7814035455 7814031360 3.7T Linux filesystem


Disk /dev/sdc: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: D15DB288-4604-44AF-90BF-6A97C5D351D0

Device Start End Sectors Size Type
/dev/sdc1 4096 7814035455 7814031360 3.7T Linux filesystem


Disk /dev/sdd: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00056dcb

Device Boot Start End Sectors Size Id Type
/dev/sdd1 2048 3907028991 3907026944 1.8T 83 Linux


Disk /dev/sde: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000d3e22

Device Boot Start End Sectors Size Id Type
/dev/sde1 2048 3907028991 3907026944 1.8T 83 Linux
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 944K 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda3 50G 3.1G 44G 7% /
tmpfs 3.9G 32K 3.9G 1% /tmp
/dev/sdd1 1.8T 1.7T 4.1G 100% /var/hda/files/drives/drive5
/dev/sde1 1.8T 1.7T 4.1G 100% /var/hda/files/drives/drive6
/dev/sdb1 3.6T 68M 3.4T 1% /var/hda/files/drives/drive3
/dev/sdc1 3.6T 68M 3.4T 1% /var/hda/files/drives/drive4
/dev/sda1 477M 77M 371M 18% /boot
none 4.0M 0 4.0M 0% /var/spool/greyhole/mem
tmpfs 797M 0 797M 0% /run/user/0
[root@localhost ~]# greyhole --stats
Greyhole Statistics
===================

Storage Pool
Total - Used = Free + Trash = Possible
/var/hda/files/drives/drive5/gh: 1834G - 1736G = 4G + 159G = 163G
/var/hda/files/drives/drive6/gh: 1834G - 1736G = 4G + 159G = 163G
==========================================
Total: 3667G - 3473G = 8G + 317G = 325G

mysql -u root -phda -e "select concat(path, '/gh') from disk_pool_partitions" \
> hda_production | grep -v 'concat(' | xargs ls -la | fpaste
ERROR 1146 (42S02) at line 1: Table 'hda_production.disk_pool_partitions' doesn't exist
Uploading (1.0KiB)...
http://paste.fedoraproject.org/535402/52543971/ -> https://paste.fedoraproject.org/535402/52543971

greyhole --view-queue

Greyhole Work Queue Statistics
==============================

This table gives you the number of pending operations queued for the Greyhole daemon, per share.

Write Delete Rename Check
Appz 0 0 0 0
Books 0 0 0 0
Docs 0 0 0 0
Movies 0 0 0 0
Music 0 0 0 0
Pictures 0 0 0 0
Videos 0 0 0 0
VM 0 0 0 0
============================================
Total 0 0 0 0
Write Delete Rename Check

The following is the number of pending operations that the Greyhole daemon still needs to parse.
Until it does, the nature of those operations is unknown.
Spooled operations that have been parsed will be listed above and disappear from the count below.

Spooled 0

Hope the above detail helps

Cheers,
MB

Who is online

Users browsing this forum: No registered users and 1 guest