Koozali.org: home of the SME Server

Raid 1 Access

Offline pblanco

  • 3
  • +0/-0
Raid 1 Access
« on: October 25, 2007, 06:09:15 AM »
Hi there, I am new on SME Server, so I apologize if this question is dumb but here it comes:

I installed SME Server 7.2 with 2 hard disk of 200 GB, as I read on the documentation it automatically creates a RAID 1 / mirror disk.
when I log on the console and I check disk redundancy I get this:

Current RAID Status:

Personalities : [raid1]
md2 : active raid1 hda2[0] hdb2[1]
         199037248 blocks [2/2][UU]
md1 : active raid1 hda1[0] hdab1[1]
         104320 blocks [2/2] [UU]
unused devices: <none>
All RAID devices are in clean state

So it seems to me there are 2 hard disks detected and used, but if I go to the shell and I type [root@...]# df -ahi , I get this

Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/mapper/main-root
                         24M    114K     24M    1% /
none                       0       0       0    -  /proc
none                       0       0       0    -  /sys
none                       0       0       0    -  /dev/pts
usbfs                      0       0       0    -  /proc/bus/usb
/dev/md1                 26K      40     26K    1% /boot
none                    127K       1    127K    1% /dev/shm
none                       0       0       0    -  /proc/sys/fs/binfmt_misc

My question is where are the hard disks, how can I access the mirror disk to be sure all the information is beeing mirrored.

I 'll apreciate your help.

Thanks a lot.



Offline raem

  • *
  • 3,972
  • +4/-0
Re: Raid 1 Access
« Reply #1 on: October 25, 2007, 07:36:27 AM »
pblanco

Quote
when I log on the console and I check disk redundancy I get this:
Current RAID Status:
Personalities : [raid1]
md2 : active raid1 hda2[0] hdb2[1]
         199037248 blocks [2/2][UU]
md1 : active raid1 hda1[0] hdab1[1]
         104320 blocks [2/2] [UU]
unused devices: <none>
All RAID devices are in clean state

My question is where are the hard disks, how can I access the mirror disk to be sure all the information is beeing mirrored.

You already answered your own question.
hda and hdb are your drives, in this case both on the same channel.
It is preferable to put them on seperate channels ie Primary Master & Secondary Master (hda & hdc).
[2/2] [UU] tells you your devices are mirroring correctly.

Also try
man mdadm
« Last Edit: October 25, 2007, 07:52:50 AM by RayMitchell »
...

Offline ldkeen

  • *
  • 405
  • +0/-0
Re: Raid 1 Access
« Reply #2 on: October 25, 2007, 09:31:27 AM »
Try using just df -ah. "df -ahi" gives a listing of the inodes which probably wont make much sense to you.
/dev/md1 is your boot partition (usually about 100MB) and the rest is /dev/md2 (which is made up of hda2 and hdb2) which is your root partition where all the data is stored.
# cat /proc/mdstat (or console -> check disk redundancy) will tell you if there are any problems with the mirrored drives.
Lloyd
« Last Edit: October 25, 2007, 09:38:03 AM by ldkeen »