Welp! Help!

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Welp! Help!

Postby modem7 » Thu Feb 06, 2014 4:05 pm

Hey guys,

I was trying to replace a hard drive (1tb for a 2tb), and followed the instructions here:

So I did:

sudo greyhole --going=/var/hda/files/drives/gh

and Greyhole started copying files over. All good so far.

Tried
sudo greyhole --gone=/var/hda/files/drives/gh
But it said it didn't exist anymore

Removed the drive, unticked it from the dashboard, edited the fstab in accordance to the Wiki, and things have kinda gone pete tong.....

Code: Select all

[alex@AlexServer ~]$ sudo mount -a mount: mount point /var/hda/files/drives/drive3 does not exist mount: mount point /var/hda/files/drives/drive4 does not exist mount: mount point /var/hda/files/drives/drive5 does not exist mount: mount point /var/hda/files/drives/drive2 does not exist mount: mount point /var/hda/files/drives/drive7 does not exist [alex@AlexServer ~]$ sudo hda-diskmount **************************************************************** Ignoring /dev/sda1 - already mounted Ignoring /dev/sda1 - already in /etc/fstab as UUID=736957f1-c6c7-4d8e-afd5-5fcb13f7893f **************************************************************** Ignoring /dev/sda3 - already mounted Ignoring /dev/sda3 - already in /etc/fstab as UUID=b53d65e8-090f-45a8-90dc-c77add30bb7f **************************************************************** Ignoring /dev/sda4 - already in /etc/fstab as UUID=62a24a68-52b2-4e76-b0cf-531920bbbd80 **************************************************************** Ignoring /dev/sdb1 - already in /etc/fstab as UUID=e549a0ed-2306-4913-8154-ff32cd72ba44 **************************************************************** Ignoring /dev/sdc1 - already in /etc/fstab as UUID=efaeb99c-92a5-41c7-9d9c-c58fd8d03ca9 **************************************************************** Ignoring /dev/sdd1 - already mounted Ignoring /dev/sdd1 - already in /etc/fstab as UUID=56d94906-e3f3-45f2-a36e-54e1a1f6673b **************************************************************** Ignoring /dev/sde1 - already in /etc/fstab as UUID=530fd018-a52d-43bf-833f-c8addbf67a6c **************************************************************** Ignoring /dev/sdf1 - already in /etc/fstab as UUID=399f7261-a3c6-4f4c-bec3-8c09529b9fa7 **************************************************************** No usable Linux, Windows or Mac partitions found on your disks.
My fstab:

Code: Select all

# # /etc/fstab # Created by anaconda on Tue Apr 3 18:25:18 2012 # # 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_alexserver-lv_root / ext4 defaults 1 1 UUID=736957f1-c6c7-4d8e-afd5-5fcb13f7893f /boot ext4 defaults 1 2 /dev/mapper/vg_alexserver-lv_home /home ext4 defaults 1 2 UUID=b53d65e8-090f-45a8-90dc-c77add30bb7f /var/hda/files ext4 defaults 1 2 /dev/mapper/vg_alexserver-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 # Drive1 = SDG1 2TB Samsung ST2000DM001 in Microserver Bay 4 from left UUID=56d94906-e3f3-45f2-a36e-54e1a1f6673b /var/hda/files/drives/drive1 ext4 noatime,data=writeback,nofail 1 2 # Drive3 = SDF1 1tb Samsung HD103SI in Microserver ODD Bay (Bottom) UUID=399f7261-a3c6-4f4c-bec3-8c09529b9fa7 /var/hda/files/drives/drive3 ext4 noatime,data=writeback,nofail 1 2 # Drive4 = SDB1 3TB Seagate ST3000DM001 in Microserver Bay 2 from left UUID=e549a0ed-2306-4913-8154-ff32cd72ba44 /var/hda/files/drives/drive4 ext4 noatime,data=writeback,nofail 1 2 # Drive5 = SDA1 1TB WDC WD10EACS (OS Drive) in Microserver Bay 1 from left UUID=62a24a68-52b2-4e76-b0cf-531920bbbd80 /var/hda/files/drives/drive5 ext4 noatime,data=writeback,nofail 1 2 # Drive2 = SDC1 3TB Seagate ST3000DM001 in Microserver Bay 3 from left UUID=efaeb99c-92a5-41c7-9d9c-c58fd8d03ca9 /var/hda/files/drives/drive2 ext4 noatime,data=writeback,nofail 1 2 # Drive7 = SDE1 1TB Seagate ST31000525SV in Microserver ODD Bay (Top) UUID=530fd018-a52d-43bf-833f-c8addbf67a6c /var/hda/files/drives/drive7 ext4 noatime,data=writeback,nofail 1 2
Previous Fstab before modifying for new disk:

Code: Select all

# # /etc/fstab # Created by anaconda on Tue Apr 3 18:25:18 2012 # # 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_alexserver-lv_root / ext4 defaults 1 1 UUID=736957f1-c6c7-4d8e-afd5-5fcb13f7893f /boot ext4 defaults 1 2 /dev/mapper/vg_alexserver-lv_home /home ext4 defaults 1 2 UUID=b53d65e8-090f-45a8-90dc-c77add30bb7f /var/hda/files ext4 defaults 1 2 /dev/mapper/vg_alexserver-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 # Drive1 = SDD1 1TB Samsung HD103SJ in Microserver Bay 4 from left UUID=9e8aa4ca-2486-4b45-94d8-eec83d50fcd1 /var/hda/files/drives/ ext4 noatime,data=writeback,nofail 1 2 # Drive3 = SDF1 1tb Samsung HD103SI in Microserver ODD Bay (Bottom) UUID=399f7261-a3c6-4f4c-bec3-8c09529b9fa7 /var/hda/files/drives/drive3 ext4 noatime,data=writeback,nofail 1 2 # Drive4 = SDB1 3TB Seagate ST3000DM001 in Microserver Bay 2 from left UUID=e549a0ed-2306-4913-8154-ff32cd72ba44 /var/hda/files/drives/drive4 ext4 noatime,data=writeback,nofail 1 2 # Drive5 = SDA1 1TB WDC WD10EACS (OS Drive) in Microserver Bay 1 from left UUID=62a24a68-52b2-4e76-b0cf-531920bbbd80 /var/hda/files/drives/drive5 ext4 noatime,data=writeback,nofail 1 2 # Drive2 = SDC1 3TB Seagate ST3000DM001 in Microserver Bay 3 from left UUID=efaeb99c-92a5-41c7-9d9c-c58fd8d03ca9 /var/hda/files/drives/drive2 ext4 noatime,data=writeback,nofail 1 2 # Drive7 = SDE1 1TB Seagate ST31000525SV in Microserver ODD Bay (Top) UUID=530fd018-a52d-43bf-833f-c8addbf67a6c /var/hda/files/drives/drive7 ext4 noatime,data=writeback,nofail 1 2

Halp?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Welp! Help!

Postby bigfoot65 » Thu Feb 06, 2014 4:23 pm

I presume you specific which drive as being gone since your post does not indicate. Did you umount the drive before removing it? Also did you ensure Greyhole was done?

Not sure what happened, but might want to ensure the structure to mount the drives still exists in /var/hda/files/drives.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Welp! Help!

Postby modem7 » Thu Feb 06, 2014 4:38 pm

Right - mild(?!) panic over - I put the old drive back in and everything is working again.

Now to do it properly.....

It seems that the drive I wish to move, is mounted at var/hda/files/drives

How would I go about doing this without breaking things?

Code: Select all

/dev/mapper/vg_alexserver-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) /dev/mapper/vg_alexserver-lv_home on /home type ext4 (rw) /dev/sda3 on /var/hda/files type ext4 (rw) /dev/sdd1 on /var/hda/files/drives type ext4 (rw,_netdev,noatime,data=writeback) /dev/sdf1 on /var/hda/files/drives/drive3 type ext4 (rw,_netdev,noatime,data=writeback) /dev/sdb1 on /var/hda/files/drives/drive4 type ext4 (rw,_netdev,noatime,data=writeback) /dev/sda4 on /var/hda/files/drives/drive5 type ext4 (rw,_netdev,noatime,data=writeback) /dev/sdc1 on /var/hda/files/drives/drive2 type ext4 (rw,_netdev,noatime,data=writeback) /dev/sde1 on /var/hda/files/drives/drive7 type ext4 (rw,_netdev,noatime,data=writeback) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) fusectl on /sys/fs/fuse/connections type fusectl (rw) gvfs-fuse-daemon on /home/alex/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=alex) //127.0.0.1/Anime on /mnt/samba/Anime type cifs (rw) //127.0.0.1/DesktopContent on /mnt/samba/DesktopContent type cifs (rw) //127.0.0.1/Downloads on /mnt/samba/Downloads type cifs (rw) //127.0.0.1/Greyhole Attic on /mnt/samba/Greyhole Attic type cifs (rw) //127.0.0.1/Lauren on /mnt/samba/Lauren type cifs (rw) //127.0.0.1/Movies on /mnt/samba/Movies type cifs (rw) //127.0.0.1/Newsgroups on /mnt/samba/Newsgroups type cifs (rw) //127.0.0.1/OldHD on /mnt/samba/OldHD type cifs (rw) //127.0.0.1/Peter on /mnt/samba/Peter type cifs (rw) //127.0.0.1/print$ on /mnt/samba/print$ type cifs (rw) //127.0.0.1/TV on /mnt/samba/TV type cifs (rw)
/dev/sdd1 is the chap I want to get rid of.

Would it be best if I changed the mount point of SDD first?

Thank you!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Welp! Help!

Postby bigfoot65 » Thu Feb 06, 2014 4:54 pm

Yes you don't want to remove /var/hda/files/drives/ That is actually a bad choice for a mount point. That's where all the mount points live and breath.

Should always be a folder inside drives that you point your Greyhole drives to. You will need to carefully rework all this to keep from breaking anything. I would recommend you copy the drives folder to your OS drive, into a share.

Then once you unmount this one, move the drives folder back into /var/hda/files directory. When you mount the drives, they others should return. Then make the new drive a different folder inside the drives folder.

Does that make sense?
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Welp! Help!

Postby modem7 » Thu Feb 06, 2014 5:00 pm

Yes you don't want to remove /var/hda/files/drives/ That is actually a bad choice for a mount point. That's where all the mount points live and breath.

Should always be a folder inside drives that you point your Greyhole drives to. You will need to carefully rework all this to keep from breaking anything. I would recommend you copy the drives folder to your OS drive, into a share.

Then once you unmount this one, move the drives folder back into /var/hda/files directory. When you mount the drives, they others should return. Then make the new drive a different folder inside the drives folder.

Does that make sense?
This is what I feared. Unsure how it was mounted there in the first place to be honest....

However, won't everything in the drives folder include everything in the greyhole system? All 7tb's worth (granted, I can half that by killing the replication, but still going to be 3-4tb or so)
Last edited by modem7 on Thu Feb 06, 2014 5:06 pm, edited 1 time in total.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Welp! Help!

Postby bigfoot65 » Thu Feb 06, 2014 5:06 pm

No you need to unmount each one first. Then all that would be left is drives is folders. Copy it to a share after that.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Welp! Help!

Postby modem7 » Thu Feb 06, 2014 5:07 pm

No you need to unmount each one first. Then all that would be left is drives is folders. Copy it to a share after that.
Ah! I THINK I understand it now
Last edited by modem7 on Thu Feb 06, 2014 5:19 pm, edited 1 time in total.

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Re: Welp! Help!

Postby modem7 » Thu Feb 06, 2014 5:19 pm

Just to clarify (aka, I'm bricking myself! Sorry for being a noob here):

I run the following first:

umount /var/hda/files/drives/drive7
umount /var/hda/files/drives/drive2
umount /var/hda/files/drives/drive4
umount /var/hda/files/drives/drive3

(can't run umount /var/hda/files/drives/ as it's busy (umount: /var/hda/files/drives: device is busy.) and it's obviously what we want to copy).

I then copy the /var/hda/files/drives folder into a share on /var/hda/files (or can I just copy it to /usr)?

Then I unmount SDD, follow the standard process of removing it, then move back the files from /usr?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Welp! Help!

Postby bigfoot65 » Thu Feb 06, 2014 5:28 pm

Yes that sounds about right. You can put the drives folder anywhere as long as it's put back in the right place when you are done.

You may need to comment out the drives in /etc/fstab as well. Then when you have the drives folder back in place, uncomment them. Might have to reboot to get the SSD to umount.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 34 guests