Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to create a new storage repository on a server that already has 2 old hard disks, set up with hardware RAID 1. It's my first time doing this in Xen Server environment so I wanna be extra careful not to mess up anything or lose the data on old hard disks.

There are 4 3TB Hard disks on this machine, so with raid one I will be having 6TB

I've inserted the two new hard disks to the computer, went to bios's Raid Controller, created a new virtual disk (RAID 1 again), and now I'm ready to create a file system on it and mount it in Citrix Xen Server

First I'd like to know what is the device name, is it sda, sdb, or sdc

When I run fdisk -l to see the currently available drives I see these:

fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 128.8 GB, 128849018880 bytes
256 heads, 63 sectors/track, 15603 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       15604   125829119+  ee  EFI GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 2871.1 GB, 2871185637376 bytes
255 heads, 63 sectors/track, 349068 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 3000.0 GB, 3000034656256 bytes
255 heads, 63 sectors/track, 364733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table

My understanding is that when you do RAID 1, your hard disk is going to be shown as 1 disk to your operating system, since I've added the new hard disks to the drive AFTER the first two were installed, I guess the device name is /dev/sdc

I have data on the old hard disks, I also had a look at /proc/partitions following the instructions here: http://support.citrix.com/article/CTX121313

to see what's going on, it seems like there are three partitions on sda, and sdc has not been partitioned.

cat /proc/partitions
major minor  #blocks  name

   7        0      51240 loop0
   8        0  125829120 sda
   8        1    4193297 sda1
   8        2    4193297 sda2
   8        3  117439471 sda3
   8       16 2803892224 sdb
   8       32 2929721344 sdc
 252        0       4096 dm-0
 252        1  472788992 dm-1
 253        0  471859200 tda
 252        2 1050632192 dm-2
 253        1 1048576000 tdb
 252        3  262664192 dm-3
 253        2  262144000 tdc

The odd thing here is sdb, what is that and why is it there?

I also ran the following command based on the above mentioned article,

ll /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Aug 16 17:51 scsi-36d4ae520990df60017886b6c20ec8db9 -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 16 17:51 scsi-36d4ae520990df60017886b6c20ec8db9-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 16 17:51 scsi-36d4ae520990df60017886b6c20ec8db9-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 16 17:51 scsi-36d4ae520990df60017886b6c20ec8db9-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Aug 16 17:51 scsi-36d4ae520990df60017886b87228bff90 -> ../../sdb
lrwxrwxrwx 1 root root  9 Aug 16 17:51 scsi-36d4ae520990df60017bed45f1c50e9f5 -> ../../sdc

I still see sdb, and sdc

I am confused, what I expect to see is sda (which is already in use) and sdb (newly installed disk), but I also see sdc.

Does this mean the RAID 1 isn't functioning properly?

share|improve this question
    
Unless you're paranoid, a RAID 10 should fit better the virtualisation I/O patterns than 2xraid1 –  Martino Dino Dec 16 '13 at 16:52

1 Answer 1

What motherboard raid controller do you have? My personal opinion is to never use raid on a consumer motherboard. This is because if your mobo blows in 4 years you will have a tough time finding a replacement board that will accept your raid. I suggest that you downgrade to XenServer 5.5 which is the highest version to support mdadm. Dont try 5.6 it will look like its working but medium disk activity will freeze the entire XenServer. Setup your raid1 in software using mdadm and make a SR ontop of that. There are a few guides but I don't have them handy. Post if u need more guidance.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.