Koozali.org: home of the SME Server

RAID issue- HP/ Software Linux RAID

Offline ber

  • ****
  • 239
  • +0/-0
RAID issue- HP/ Software Linux RAID
« on: July 23, 2017, 12:52:57 AM »
HI Ive just migrated my SME 9.2 onto a Proliant ML360 with two 1TB hard drives.
I had to setup the drives as logical drives and RAID 0+1 on the HP BIOS in order for drives to be seen by Linux SME O/S when I installed it.
I setup SME 9 on the disks with the default install procedure. After the install I noted that the SME RAID monitor advises that SME is installed only on one disk.
I tried to choose the option to add the spare disk but nothing seems to happen- no sync notices or progress.
How can I check and be sure from the info provided?
Ive installed sme9admin with a helpful GUI and it does advise an issue with RAID- only on one disk or related issue...
Is this due to the HP HArdware BIOS raid option when I installed SME? Is this causing an redundancy issue?
Where can I begin?
Here are some output for the RAID status...

[root@server ~]# fdisk -l | more

Disk /dev/cciss/c0d0: 1000.2 GB, 1000171331584 bytes
255 heads, 32 sectors/track, 239394 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e81ad

           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1          63      256000+  fd  Linux raid autod
etect
Partition 1 does not end on cylinder boundary.
/dev/cciss/c0d0p2              63      239395   976473815   fd  Linux raid autod
etect

Disk /dev/md1: 999.8 GB, 999773175808 bytes
2 heads, 4 sectors/track, 244085248 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/main-root: 991.5 GB, 991516688384 bytes
255 heads, 63 sectors/track, 120545 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/main-swap: 8254 MB, 8254390272 bytes
255 heads, 63 sectors/track, 1003 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/md0: 262 MB, 262078464 bytes
2 heads, 4 sectors/track, 63984 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@server ~]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 cciss/c0d0p1[0]
      255936 blocks super 1.0 [2/1] [U_]

md1 : active raid1 cciss/c0d0p2[0]
      976340992 blocks super 1.1 [2/1] [U_]
      bitmap: 8/8 pages [32KB], 65536KB chunk

unused devices: <none>
[root@server ~]# watch -n .1 cat /proc/mdstat
Every 0.1s: cat /proc/mdstat                            Sun Jul 23 10:45:23 2017

Personalities : [raid1]
md0 : active raid1 cciss/c0d0p1[0]
      255936 blocks super 1.0 [2/1] [U_]

md1 : active raid1 cciss/c0d0p2[0]
      976340992 blocks super 1.1 [2/1] [U_]
      bitmap: 8/8 pages [32KB], 65536KB chunk

unused devices: <none>

login as: root
root@192.168.0.254's password:
Last login: Sun Jul 23 10:48:07 2017 from 192.168.0.232
************ Welcome to SME Server 9.2 *************

Before editing configuration files, familiarise
yourself with the automated events and templates
systems.

Please take the time to read the documentation
http://wiki.contribs.org/Main_Page

Remember that SME Server is free to download
and use, but it is not free to build

Please help the project :
http://wiki.contribs.org/Donate

****************************************************
[root@server ~]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 cciss/c0d0p1[0]
      255936 blocks super 1.0 [2/1] [U_]

md1 : active raid1 cciss/c0d0p2[0]
      976340992 blocks super 1.1 [2/1] [U_]
      bitmap: 8/8 pages [32KB], 65536KB chunk

unused devices: <none>
[root@server ~]#

[root@server ~]# watch -n .1 cat /proc/mdstat
Every 0.1s: cat /proc/mdstat                            Sun Jul 23 10:51:13 2017

Personalities : [raid1]
md0 : active raid1 cciss/c0d0p1[0]
      255936 blocks super 1.0 [2/1] [U_]

md1 : active raid1 cciss/c0d0p2[0]
      976340992 blocks super 1.1 [2/1] [U_]
      bitmap: 8/8 pages [32KB], 65536KB chunk

unused devices: <none>

Regards... John



Offline Fumetto

  • *
  • 874
  • +1/-0
Re: RAID issue- HP/ Software Linux RAID
« Reply #1 on: July 23, 2017, 05:12:50 AM »
Remove Raid from HP Bios. SME use software-raid mode.

NB: leave raid can destroy all data on HD, make backup first of all!!!

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: RAID issue- HP/ Software Linux RAID
« Reply #2 on: July 23, 2017, 12:02:28 PM »
Or, if you prefer to use hw raid, reinstall SME with no raid or just ignore the message

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: RAID issue- HP/ Software Linux RAID
« Reply #3 on: July 23, 2017, 12:26:57 PM »
Think carefully about your RAID setup. Do you really want RAID 0+1 and what happens if you lose a drive?

You can run a RAID 1 mirror in hardware and SME will see it as a single drive.

You should then install SME in non RAID mode. However it will always create the boot partition as a mirror but with a drive 'missing'. You can cure the reported error as per this bug: https://bugs.contribs.org/show_bug.cgi?id=10297

If you prefer SME to handle the RAID it should pick up the 2 non RAID drives and defaults to a RAID 1 mirror. You would need to delete the hardware RAID setup, and make sure you clean the drives thoroughly (I think the RAID card marks the MBR to show the drive is part of the hardware RAID), and disable the hardware RAID. If SME isn't picking up the individual drives then report it as a bug.

Clearly you need to backup (and test the restore) before messing around with this!!!
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation