Can't access drive - Need raid5/linux help

Re: Can't access drive - Need raid5/linux help

Postby Jocko » Fri Dec 04, 2015 2:08 pm

Hi imt17,

As it is a WD USB Drive, I assume your USB drive uses FAT32 as fs and so can be mounted on the fvdw-sl console.
If you use NTFS I am not sure that you can mount the USB drive (@fvdw may confirm this point)

-after plugging it:
* update its dev node: run
Code: Select all
udevstart
and check if its dev node are ok.
Code: Select all
cat /proc/partitions
You should see lines
Code: Select all
major minor  #blocks  name

 ...
   8       pp xxxxxxx se?
   8       mm xxxxxxx se?n
(se?n is kernel name for usb devices) and look at these dev nodes are same minor/major value in /dev
Code: Select all
ls -l /dev/se?n
you must see a string like this "8, mm" (8 is the major value and mm the minor value for se?n)

If all se?n dev nodes are ok in /dev, then you can try to mount the WC USB Drive partition

- To mount it
I assume now that its device name is sea1
- create its mount point
Code: Select all
mkdir -m 777 /usb

- mount sea1
Code: Select all
/usr/sbin/mount /dev/sea1 /usb


- create a folder for backup on /usb
Code: Select all
mkdir -m 777 /usb/5big2_backup


- search the master folder containing all your data in md4: it should be subfolders of /md4/shares
to find it use
Code: Select all
ls -a /md4/shares
which lists the content of shares. Repeat by adding subfolders in the path if you don't see your data (use quote if a subfolder contains spaces)

- get the right cp command
download the cp zip archive (cp-core-util8.9.zip), here viewtopic.php?f=26&t=2315&p=20466#p20466
unzip it in tftp folder of fvdw-sl console (same location than dd-64; busybox1;....)
upload cp
Code: Select all
tftp -l cp -r /bin/ccp -g ip-pc
chmod 755  /bin/ccp

- backup your data
I assume that your data is in /md4/shares/folder1/folder2
Code: Select all
/bin/ccp -r  /md4/shares/folder1/folder2 /usb/5big2_backup

to avoid any issue later grant permissions on 5big2_backup files
Code: Select all
chmod a+rw -R  /usb/5big2_backup


Note: Now I don't be here for several hours
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Can't access drive - Need raid5/linux help

Postby imt17 » Fri Dec 04, 2015 2:40 pm

The drive is in Mac format. I believe the Ext3. I can reformat in fat 32 if necessary
imt17
 
Posts: 58
Joined: Sun Nov 29, 2015 11:56 pm

Re: Can't access drive - Need raid5/linux help

Postby Jocko » Fri Dec 04, 2015 6:14 pm

if your USB drive uses ext3 as fs it is ok.

You can check that by plugging the USB drive on your MAC and using the command df -T
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Can't access drive - Need raid5/linux help

Postby imt17 » Fri Dec 04, 2015 6:30 pm

I formatted the USB partition and FAT.

When I tired to execute the upload transfer command:
tftp -l cp -r /bin/ccp -g ip-pc

I got the following error:
tftp: server error: (1) File not found
imt17
 
Posts: 58
Joined: Sun Nov 29, 2015 11:56 pm

Re: Can't access drive - Need raid5/linux help

Postby Jocko » Fri Dec 04, 2015 6:39 pm

Do you unzip the file ?
Jocko wrote:unzip it in tftp folder of fvdw-sl console (same location than dd-64; busybox1;....)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Can't access drive - Need raid5/linux help

Postby imt17 » Fri Dec 04, 2015 6:54 pm

Yup

extracted to the same tftp folder that mount and other files are located for upload. I see it in there. cp no extension or anything. Is the error saying the file is not in the tftp folder or that /bin/ccp doesn't exist to copy it into?
imt17
 
Posts: 58
Joined: Sun Nov 29, 2015 11:56 pm

Re: Can't access drive - Need raid5/linux help

Postby Jocko » Fri Dec 04, 2015 7:05 pm

indeed I switched some flags...
Code: Select all
root@fvdw-sta-kirkwood:/ # tftp -l cp -r /bin/ccp -g 192.168.1.11
tftp: server error: (1) File not found
root@fvdw-sta-kirkwood:/ # tftp -r cp -l /bin/ccp -g 192.168.1.11
cp                   100% |************************************************************************************************************|   286k  0:00:00 ETA
root@fvdw-sta-kirkwood:/ # ls -l /bin/ccp
-rw-r--r--    1 root     root        293469 Jan  1 00:03 /bin/ccp
(so r <=> remote; l <=> local :pound )
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Can't access drive - Need raid5/linux help

Postby imt17 » Fri Dec 04, 2015 7:27 pm

Thanks got it going.

Executed the command to start the backup. Figure it stays stuck on that command until the process finishes.
I did execute a second telnet window so I can list the files in the backup folder on the USB to make sure files are copying.

Assuming there i s no way to see progress of some form to see how long it may take?

Now the strange thing is in /md4/shares folder there were three numbered directories 1, 2, and 3. Directory 2 seemed to have the music directories. But if memory serves me correct, there used to be two directories on the machine. I think one was in the public folder and the other was in a folder called request. Looks like they got renamed and now there is only 1. Hmmm...
imt17
 
Posts: 58
Joined: Sun Nov 29, 2015 11:56 pm

Re: Can't access drive - Need raid5/linux help

Postby Jocko » Fri Dec 04, 2015 7:53 pm

Sorry, but I don't know in detail how Lacie firmware stores users' data.

And Yes, with cp there is no way to know the remaining time for backup.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Can't access drive - Need raid5/linux help

Postby imt17 » Fri Dec 04, 2015 8:08 pm

Thanks. Is there a way to calc size of files in the /md4/shares/2 directory? That would give me an idea of approx time. I think there was originally between 600-750gb. Could also be that I didn't loose a directory and was actually another directory inside of what is now md4/shares/2. Once the copying is done it will be easier to view on the win xp to see what is there.

When this is completed I see I have to run the following comand on the backup files for permissions
chmod a+rw -R /usb/5big2_backup

what do I then need to do to unmount the USB drive to remove it?

Then once I verify the data on the backup, I assume the next step is to get the Lacie back up and running? Not sure of the steps to take there. Especially since I had the issue of not being able to boot into the lacie due to firmware but not sure if the disks are back if now that issue would be solved or not.

Then I have to replace the one bad disk and assume rebuild the raid5. So not sure of all the next steps, assuming the backup is good.
imt17
 
Posts: 58
Joined: Sun Nov 29, 2015 11:56 pm

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 10 guests