[Linux-PowerEdge] LC remote changing from raid1 to raid0

Martin Flemming martin.flemming at desy.de
Mon Nov 12 04:59:48 CST 2012


On Mon, 12 Nov 2012, Bas van der Vlies wrote:

>
> On 12 nov. 2012, at 10:26, Martin Flemming <martin.flemming at desy.de> wrote:
>
>> On Sat, 10 Nov 2012, Bas van der Vlies wrote:
>>
>>>
>>> On 9 nov. 2012, at 10:36, martin.flemming at desy.de wrote:
>>>
>>>>
>>>> Hi !
>>>>
>>>> I've got 50 M520 server which are delivered with raid1,
>>>> but we want to change the raid-configuration to raid0 because they are
>>>> only batch-machines an we need fast scratch ...
>>>>
>>>> So what's the best practise to change the raid-configuration remotely ?
>>>>
>>>> .. thinking it's the way with  the LifeCyclecontroller, isn't it ?
>>>
>>> Martin,
>>>
>>> I have used the following recite script to convert it from raid1 to raid0:
>>> {{{
>>> set $IP 192.168.136.172
>>> set $LOGIN xxxxx
>>> set $PASS xxxxxx
>>> set $controller RAID.Integrated.1-1
>>> set $disk0 Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1
>>> set $disk1 Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1
>>> ConvertToRAID PDArray=$disk0
>>> ConvertToRAID PDArray=$disk1
>>> CreateVirtualDisk PDArray=$disk0 PDArray=$disk1 Target=$controller VDPropNameArray=RAIDLevel VDPropNameArray=SpanLength VDPropNameArray=SpanDepth VDPropValueArray=2 VDPropValueArray=2 VDPropValueArray=1
>>> CreateRAIDConfigJob Target=$controller RebootJobType=3 ScheduledStartTime=TIME_NOW
>>> }}}
>>>
>>> regards
>>
>> Hi, Bas !
>>
>> Thanks a lot for your example !
>>
>> Unfortunately i've got following error-message
>>
>> flemming at console:/scratch/flemming/recite $ python recite.py IP=root:calvin at X.X.X.X
>> Set $IP root:******@X.X.X.X
>> --> set $controller RAID.Integrated.1-1
>> Mon Nov 12 09:02:52 2012: set $controller RAID.Integrated.1-1
>>
>> --> set $disk0 Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1
>> Mon Nov 12 09:03:04 2012: set $disk0
>> Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1
>>
>> --> set $disk1 Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1
>> Mon Nov 12 09:03:11 2012: set $disk1
>> Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1
>>
>> --> ConvertToRAID PDArray=$disk0
>> Mon Nov 12 09:03:20 2012: ConvertToRAID PDArray=$disk0
>> wsman invoke -a ConvertToRAID
>> "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_RAIDService?SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_RAIDService,SystemName=DCIM:ComputerSystem,Name=DCIM:RAIDService"
>> -k "PDArray=Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1" -h X.X.X.X -P 443 -u root -p ****** -V -v -c dummy.cert -j utf-8 -y basic
>>
>> ConvertToRAID_OUTPUT
>>   Message = One or more Storage device(s) not in a state where the operation can be completed
>>   MessageID = STOR013
>>   ReturnValue = 2
>>
>> Do somebody know what's going wrong here ?
>>
>
> Martin,
>
> I have tested this setup on a M620, so maybe your device settings are different?
>
> regards

Hmm, i've tested the device settings before and they're seems to be equal

using the scripts from  linux_lc1_5_scripts_2011_09_8_v1_2.zip

flemming at console:/scratch/lc/9_Hardware_Inventory $ ./9.10_RAID_Inventory.sh XXXX root XXXX |egrep 'InstanceID|ProductName'
<n1:InstanceID>RAID.Integrated.1-1</n1:InstanceID>
<n1:ProductName>PERC H310 Mini</n1:ProductName>


flemming at console:/scratch/lc/16_RAID_Storage_Management $ ./16.9_Listing_the_RAID_Inventory_PhysicalDiskView_Class.sh XXXXX root XXXX |grep InstanceID

<n1:InstanceID>Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1</n1:InstanceID>
<n1:InstanceID>Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1</n1:InstanceID>


Any further idea ?



        Martin



More information about the Linux-PowerEdge mailing list