Cannot access 5big network 2

Re: Cannot access 5big network 2

Postby Jocko » Tue May 19, 2015 1:58 pm

So it is fully ok

Why it is important as you already have one faulty disk, if you format the wrong disk, mdadm won't be able to build the raid
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Cannot access 5big network 2

Postby pacco » Tue May 19, 2015 2:00 pm

Jocko wrote:So it is fully ok

Why it is important as you already have one faulty disk, if you format the wrong disk, mdadm won't be able to build the raid

Ok. That's why I keep confirming the steps.

This is what I do next?

Code: Select all
fdisk /dev/sde
enter: n -> 1 -> p -> 1 -> enter -> enter
then if you enter p you must see the new partition partition if it is ok enter w to save it.
enter again p you still must see the partition with type 83 and quit fdisk with q
mke2fs-ext3 -j -m 1 /dev/sde1
run udevstart again!


After that? And 2 more questions. I have more than 1TB of data so I need to repeat the steps and how do I get the data to the other Lacie?
pacco
 
Posts: 76
Joined: Tue Apr 28, 2015 1:27 pm

Re: Cannot access 5big network 2

Postby Mijzelf » Tue May 19, 2015 2:06 pm

pacco wrote:And 2 more questions. I have more than 1TB of data so I need to repeat the steps and how do I get the data to the other Lacie?
If you put the disk in an USB enclosure, you can connect it directly to the other Lacie, I guess. But I don't know if it has an interface to easy move/copy the files.
Mijzelf
 
Posts: 255
Joined: Wed Nov 21, 2012 9:12 am

Re: Cannot access 5big network 2

Postby pacco » Tue May 19, 2015 2:11 pm

Mijzelf wrote:
pacco wrote:And 2 more questions. I have more than 1TB of data so I need to repeat the steps and how do I get the data to the other Lacie?
If you put the disk in an USB enclosure, you can connect it directly to the other Lacie, I guess. But I don't know if it has an interface to easy move/copy the files.

Unfortunately I do not have a usb bay here right now. Do have one at home. Will be away tomorrow, but online and on site on Thursday.

For now let me perform the partitioning and format. How do I copy things to the disk? Mount the RAID and mount the disk. How to copy. I suppose under share there are 5 sub folders (1,2,3,4,5). They probably equal the size of 1TB disk?

Will transfer it on Thursday and repeat the steps whilst consulting you.
pacco
 
Posts: 76
Joined: Tue Apr 28, 2015 1:27 pm

Re: Cannot access 5big network 2

Postby pacco » Tue May 19, 2015 2:14 pm

After fdisk /dev/sde I enter n and get this:

Code: Select all
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
pacco
 
Posts: 76
Joined: Tue Apr 28, 2015 1:27 pm

Re: Cannot access 5big network 2

Postby Jocko » Tue May 19, 2015 2:16 pm

Yes you must do this step.

It is useless to run again udevstart as the dev nodes are updated in /dev. So start it only once at each boot.

pacco wrote:After that? And 2 more questions. I have more than 1TB of data so I need to repeat the steps and how do I get the data to the other Lacie?
maybeyou don't need to backup all data? otherwise you need another disk and indeed repeat the sequence to save the remaining data
or copy the data on the 2d NAS, delete the files on the usb disk ->then plug it in the 5big2 and repeat all sequence except for making the partition table and formatting partition sde1


To save the data:
1/create a mount point
Code: Select all
mkdir /bckp

2/mount sde1
Code: Select all
mount /dev/sde1 /bckp


if you do
Code: Select all
ls /bckp
, you should see the well known folder 'lost+found'.

to copy a folder
Code: Select all
cp -r /pathtothefolder/foldername /
if you want to save it at the root or
Code: Select all
cp -r /pathtothefolder/foldername /pathto/destinationfolder/
to copy it in destinationfolder note the / at the end of the command line.

After fdisk /dev/sde I enter n and get this:
Code:
Command (m for help): n
Command action
e extended
p primary partition (1-4)
I swapped the sequence:
n -> p -> 1 -> enter -> enter
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Cannot access 5big network 2

Postby pacco » Tue May 19, 2015 2:20 pm

Code: Select all
root@fvdw-sta-kirkwood:/ # fdisk /dev/sde
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.


The number of cylinders for this disk is set to 121601.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-121601, default 1): Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-121601, default 121601): Using default value 121601

Command (m for help): p

Disk /dev/sde: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sde1               1      121601   976760001  83 Linux

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table
root@fvdw-sta-kirkwood:/ # mke2fs-ext3 -j -m 1 /dev/sde1
mke2fs 1.41.14 (22-Dec-2010)
mke2fs-ext3: inode_size (128) * inodes_count (0) too big for a
        filesystem with 0 blocks, specify higher inode_ratio (-i)
        or lower inode count (-N).
pacco
 
Posts: 76
Joined: Tue Apr 28, 2015 1:27 pm

Re: Cannot access 5big network 2

Postby Jocko » Tue May 19, 2015 2:24 pm

check if you have really a partition sde1
Code: Select all
fdisk -l /dev/sde1
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Cannot access 5big network 2

Postby pacco » Tue May 19, 2015 2:26 pm

Jocko wrote:check if you have really a partition sde1
Code: Select all
fdisk -l /dev/sde1


Code: Select all
root@fvdw-sta-kirkwood:/ # fdisk -l /dev/sde1
Unknown value(s) for: cylinders (settable in the extra functions menu)
pacco
 
Posts: 76
Joined: Tue Apr 28, 2015 1:27 pm

Re: Cannot access 5big network 2

Postby Jocko » Tue May 19, 2015 2:33 pm

Sorry it is /dev/sde you must use!

and I found the explanation as sde1 did not exist yet in /proc/partitions, the udevstart script did not update the node sde1 in /dev and so sde1 is sdd1 which contains only one block.

So do
Code: Select all
rm /dev/sde1
mknod -m 666 /dev/sde1 b 8 49

and check it
ls -l /dev/sde1
brw-rw-rw-  1 root root 8, 49 2015-05-18 17:13 /dev/sde1


Then you should be able to format sde1
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 9 guests