LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-01-2018, 06:35 AM   #1
tomislav91
Member
 
Registered: Apr 2012
Posts: 46

Rep: Reputation: Disabled
raid 1 with mdadm on 2 empty disks


hello, i am making a raid 1 for my two new empty disks.
I have linux ubuntu server on several disk, and i make md0 array and mount it to /mnt/md0 folder.

i follow this tutorial
Link

I have one question.
I am making a samba share folder inside mounted /mnt/md0.
Folder path: /mnt/md0/test
Everything went fine, just one maybe not issue.
WHen i pulled out one disk, i lost my all data, when pulled in, data in /mnt/md0 is present.
When take out another, everything is ok.

My question is:
Is it secure to left it like this?
I didnt create any partitions on that 2 empty disks, just on md0 array (ext4 fs, like is in tutorial).
If one of my disks for data fail, will I have access to all data?

Code:
Filesystem                   Size  Used Avail Use% Mounted on
/dev/mapper/johnas--vg-root  223G  1.4G  210G   1% /
/dev/md0                     1.8T  898M  1.7T   1% /mnt/md0
Code:
lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT
NAME                    SIZE FSTYPE            TYPE  MOUNTPOINT
sda                   232.9G                   disk
└─sda1                232.9G LVM2_member       part
  ├─johnas--vg-root     227G ext4              lvm   /
  └─johnas--vg-swap_1   5.9G swap              lvm   [SWAP]
sdb                     1.8T linux_raid_member disk
└─md0                   1.8T ext4              raid1 /mnt/md0
sdc                     1.8T linux_raid_member disk
└─md0                   1.8T ext4              raid1 /mnt/md0
Code:
root@myuser:/mnt/raid/test# cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sdc[1] sdb[0]
      1953383488 blocks super 1.2 [2/2] [UU]
      bitmap: 0/15 pages [0KB], 65536KB chunk

unused devices: <none>
 
Old 09-01-2018, 07:03 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,143

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
I prefer to make RAID on partitions to leave room for a label and to simplify replacing a failed drive.

You should not lose access to your data with one failed drive. Can you post the error that you got?
 
Old 09-01-2018, 09:05 AM   #3
tomislav91
Member
 
Registered: Apr 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
It just return me input output error. I cant read files.
I got message to /mnt/md0/test folder (files inside it).
It is just a test and trying to figure out this.

Just not have idea why it gives me that error.
Input Output error gives me just when went out ONE DISK, with another everything is fine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RAID 5 with 4 hard disks... array started with only 3 out of 4 disks kikinovak Slackware 9 08-11-2012 06:33 AM
RAID mdadm cant add disks to array vockleya Linux - Software 4 09-13-2010 05:37 PM
mdadm RAID 5, 6 disks failed. recovery possible? ufmale Linux - Server 10 10-20-2008 08:24 AM
Creating RAID 5 with 2 disks using mdadm amitpardesi Linux - Software 6 10-12-2008 11:02 PM
Using mdadm - Failed RAID-5 Array but individual disks check out ok JRFrogman Linux - Server 0 06-05-2008 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration