LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-23-2010, 09:27 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Rep: Reputation: 52
Where is my array?


I have recently installed Debian 505 to replace 504 because one of its new features is "experimental support" for sata software raid1. I have also tried to set up raid 1 at the same time but I cannot find how to access the array.

I installed the OS on a PATA drive and used 2 new SATA drives for the raid1 array (intended for data).

The installer seemed to want a mount point for Raid1, so I gave /media/disk.

Raid1 was not working after reboot, I then tried the following command:

mdadm --create /dev/md0 --metadata=1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1

this did not work at first but it did after unmounting the 2 sata drives
and this gave the following result:

size=488383936K mtime=Thu Jul 22 01:21:15 2010
mdadm: /dev/sdb1 appears to contain an ext2fs file system
size=488383936K mtime=Thu Jul 22 01:21:15 2010
Continue creating array? y
mdadm: array /dev/md0 started.

cat /proc/mdstat gave the following result:
Personalities : [raid1]
md0 : active (auto-read-only) raid1 sdb1[1] sda1[0]
487307508 blocks super 1.0 [2/2] [UU]
resync=PENDING
unused devices: <none>

This is the result of "mount"
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hda2 on /boot type ext3 (rw)
/dev/hda7 on /home type xfs (rw)
/dev/hda6 on /tmp type ext3 (rw)
/dev/hda3 on /usr type ext3 (rw)
/dev/hda5 on /var type ext3 (rw)
/dev/hdb on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,user=rene)

I think the array is not accessible yet, can someone tell me what I should do?

Also, the 2 sata drives have ext3 filesystem, should they be reformatted to ext2? How? (It seems experimental support for raid.. in 505 could be intended to work on ext2 filesystems only!)

Thank you for your help.

Last edited by rblampain; 07-23-2010 at 09:33 AM.
 
Old 07-23-2010, 08:20 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
As root, try
Code:
mkdir /media/disk
 
Old 07-24-2010, 01:12 AM   #3
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Original Poster
Rep: Reputation: 52
Thank you for your answer.

The file already exists and I get a message saying so when I try it.

However when I right-click on its icon and click "properties", I get unexpected details, /media/disk is owned by root, as expected but its size is reported as follows:

volume 243.1 MB
free space 109.9 MB
contents: nothing

the 2 drives are identical SATA 500GB (not MB)

Under Debian 504, (see explanation in initial post) I got a message that the superblocks could not be read and I thought (erroneously) I could counteract that possibility in 505 by leaving a bit of free space at the end of the disk, could it be that the space mentioned above is that space I left unused by Raid?

Last edited by rblampain; 07-24-2010 at 01:14 AM.
 
Old 08-09-2010, 10:37 AM   #4
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Original Poster
Rep: Reputation: 52
I found changing the owner of /media/disk from /root/root to user/users fixed the problem and I can now write to the array.
 
  


Reply


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
[SOLVED] shell script help: copying directory list into an array and then accessing the array richman1234 Linux - Newbie 6 07-25-2010 11:19 PM
[bash] indirect array reference to array with values containing spaces Meson Linux - Software 9 06-04-2010 09:38 PM
bash: use file as input into array, parse out other variables from array using awk beeblequix Linux - General 2 11-20-2009 10:07 AM
Bash Variable Array, Trying to add another value into the array helptonewbie Linux - Newbie 6 03-02-2009 11:18 PM
[perl] copying an array element into another array s0l1dsnak3123 Programming 2 05-17-2008 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:58 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