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

Martin Flemming martin.flemming at desy.de
Mon Nov 12 03:26:07 CST 2012


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 ?

Thanks in advcance

        Martin



More information about the Linux-PowerEdge mailing list