This is the output @scottalanmiller just have to replace : with -
UUID : fba59a9c:7e6db5a2:d21e4034:3b415cfd
This is the output @scottalanmiller just have to replace : with -
UUID : fba59a9c:7e6db5a2:d21e4034:3b415cfd
We don't need to install mdadm, its there already
I got the uuid using this:
madadm --detail /dev/md10 | grep UUID
Xencenter after reboots properly automounts our new array
I removed the /dev/md10 entry from fstab so it doesn't automount and causes conflict with xenserver handling storage
After adding the array as storage xenserver , the output of df -Th changes to this
It is automounting since we added it to our fstab
@DustinB3403 sorry I did add content-type=user to the sr-create command. The final command was
xe sr-create type=ext device-config:device=/dev/md10 shared=false host-uuid:fba59a9c-7e6db5a2-d21e4034-3b415cfd content-type=user name-label="Array storage"
Yes, @DustinB3403 .
This is xe sr-list output with the array added as storage
The array is now properly seen as storage in xencenter, I did have to unmount it first @DustinB3403
@DustinB3403 I am actually trying to do exactly that just right now on my test setup. It thought that with this command:
xe sr-create type=ext device-config:device=/dev/md10 shared=false host-uuid:fba59a9c7e6db5a2d21e40343b415cfd name-label="Array storage"
It would get added as local storage to xencenter, but I am getting this error :
The SR operation cannot be performed because a device underlying the SR is in use by the host.
Don't really know why, I haven't used xenserver before. Any ideas @scottalanmiller
And finally the status of our array
Checking filesystems present in our system, at the bottom theres our array.
This shows the file system added to our raid array
@DustinB3403 Yes, I couldn't create the md10 device in my setup without loading the modules into the kernel
We can also use the whole disk, without the need to create partitions in them, don't really know if this is better but it is a possibility.
This is the screenshot of the raid array created with 4 disks using the whole disks.
We need to load the raid modules to the kernel prior to creating the md raid Device. Like this:
echo "modprobe raid10" > /etc/sysconfig/modules/raid.modules
modprobe raid10
chmod a+x /etc/sysconfig/modules/raid.modules