LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2017, 01:31 PM   #1
ruthinator
LQ Newbie
 
Registered: May 2013
Posts: 8

Rep: Reputation: Disabled
how can i tell that RAID 1 is working properly? (it somehow has mystery data)


Hi! I have mainly light server experience with linux, and I just got a new desktop to centralize all my data.

At the moment I have installed lubuntu on a SSD, and set up two 3TB drives for my data for RAID 1. It seems like it is working properly... except when I look in gparted the RAID array is using 42GB. I can't for the life of me figure out how there is any data there, where that data is even located, or what that data could be.

The OS install totals about 6GB. Navigating to where the array is mounted there was nothing there except the lost+found folder. I tried reformatting the array, it went to zero and then somehow found those 42GB again. I tried dropping about 9GB of video on the array. That adds to the total, and I can see that data where it should be, but the other 42GB are still unaccounted for.

I used this to build the array from the two hard drives.
# mdadm /dev/md0 --create --auto yes -l 1 -n 2 /dev/sdb1 /dev/sdc1
# mke2fs -t ext2 /dev/md0

It is md0 that has the mystery 42GB. Whereas sdb1 and sdb1 show in gparted that no data is being used. (There is also sda with the OS, doing it's thing all by itself I hope.)

If anyone has any guesses as to where that 42GB is coming from I would love to hear them, thanks in advance for any advice! Please ask if there are any details I should add that would help clear this up.
 
Old 06-30-2017, 01:35 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
ext2? Why oh why would you use ext2? That's been dead and buried for over a decade.

Could you post the output of "df -h"?
 
Old 06-30-2017, 02:05 PM   #3
ruthinator
LQ Newbie
 
Registered: May 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Fair question re: ext2. ext2 because I was blindly following this: "The "super simple md" recipe" from https://wiki.ubuntu.com/Raid
(The ssd is currently ext4.) I only just figured out that mke2fs picked it's favorite default, in this case ext2. I haven't gone back to change it to ext4 yet.

df -h below shows the data I dropped on the array md0 totaling 8.8GB, but not the mystery 42GB I'm concerned about.

Filesystem Size Used Avail Use% Mounted on
udev 7.7G 0 7.7G 0% /dev
tmpfs 1.6G 9.5M 1.6G 1% /run
/dev/sda1 95G 3.6G 87G 5% /
tmpfs 7.7G 96K 7.7G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
tmpfs 1.6G 12K 1.6G 1% /run/user/1000
/dev/md0 2.6T 8.8G 2.5T 1% /mnt/md0
/dev/sde1 58G 42G 16G 73% /mnt/64GB_usb

Here is a screenshot of gparted and the df -h read out side by side.
http://imgur.com/a/EuqX4


Quote:
Originally Posted by suicidaleggroll View Post
ext2? Why oh why would you use ext2? That's been dead and buried for over a decade.

Could you post the output of "df -h"?

Last edited by ruthinator; 06-30-2017 at 03:58 PM.
 
Old 06-30-2017, 04:54 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,772

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
How do these drives attach to the motherboard? Not a fake raid controller I hope.
 
Old 06-30-2017, 05:29 PM   #5
ruthinator
LQ Newbie
 
Registered: May 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
This is the computer I got.
http://www.microcenter.com/product/4...sktop_computer

After asking pretty much everyone in the store whether or not I would need a raid controller, they couldn't decide, and they also didn't have one in stock for me, so I bought this card off of amazon. I'm not sure how to identify a fake raid controller.

https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1

When I got the computer open there were enough ports on the motherboard technically for all my drives, but at the moment the ssd and cd drive are connected directly to the motherboard and the two 3TB drives are connected to that card I bought, which is in turn installed on the mother board.


Quote:
Originally Posted by jefro View Post
How do these drives attach to the motherboard? Not a fake raid controller I hope.
 
Old 06-30-2017, 05:33 PM   #6
ruthinator
LQ Newbie
 
Registered: May 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
I just formatted the raid array (md0) to ext4, and as before, it deleted the data I had added to it as one would expect, but the mysterious 42GB remain according to gparted.
http://imgur.com/a/fpNti

Quote:
Originally Posted by ruthinator View Post
Fair question re: ext2. ext2 because I was blindly following this: "The "super simple md" recipe" from https://wiki.ubuntu.com/Raid
(The ssd is currently ext4.) I only just figured out that mke2fs picked it's favorite default, in this case ext2. I haven't gone back to change it to ext4 yet.

df -h below shows the data I dropped on the array md0 totaling 8.8GB, but not the mystery 42GB I'm concerned about.

Filesystem Size Used Avail Use% Mounted on
udev 7.7G 0 7.7G 0% /dev
tmpfs 1.6G 9.5M 1.6G 1% /run
/dev/sda1 95G 3.6G 87G 5% /
tmpfs 7.7G 96K 7.7G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
tmpfs 1.6G 12K 1.6G 1% /run/user/1000
/dev/md0 2.6T 8.8G 2.5T 1% /mnt/md0
/dev/sde1 58G 42G 16G 73% /mnt/64GB_usb

Here is a screenshot of gparted and the df -h read out side by side.
http://imgur.com/a/EuqX4
 
Old 06-30-2017, 06:46 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
You could try Partition->Check in gparted to make sure there's not some inconsistency. It's possible gparted shows root reserved space as "used" as well? If it's not there in df I wouldn't worry about it personally.
 
Old 07-01-2017, 01:48 PM   #8
ruthinator
LQ Newbie
 
Registered: May 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Ah, yes. That is probably it. I found this post where the person has the exact some concerns as me.
https://askubuntu.com/questions/4848...-discrepancies

I thought my only new variable was RAID but I guess I've never had such a large hard drive completely empty before, so I'd never scrutinized the available space so closely. I will stop worrying about it. Thanks yal for your input.

Quote:
Originally Posted by suicidaleggroll View Post
You could try Partition->Check in gparted to make sure there's not some inconsistency. It's possible gparted shows root reserved space as "used" as well? If it's not there in df I wouldn't worry about it personally.
 
  


Reply

Tags
lubuntu, raid1


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Broken raid 5 (11 drives in mdadm) -- data recovery/raid reconstruction needed -- ple jml48197 Linux - Server 4 07-27-2010 12:57 PM
World of Warcraft and the Mystery of the Partially Working Key! Conjurer Linux - General 2 02-17-2010 07:47 AM
Recover data from RAID 0 (fake RAID) from Win XP KiAnKo Linux - Hardware 4 04-23-2009 12:28 PM
upgrade system with lvm on software raid-1 data volume w/o losing data BinWondrin Linux - General 1 01-13-2009 03:25 PM
problem in ISCSi and RAID not working properly vaibhavp Linux - Software 1 06-19-2008 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:19 PM.

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