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

Martin Flemming martin.flemming at desy.de
Sat Nov 24 04:42:42 CST 2012


Thanks, Larry !

But after rebooting/reseting the machine

flemming at ip-console3:/scratch/flemming/recite $ /opt/dell/srvadmin/sbin/racadm -r bird056-ilo -u root -p calvin  serveraction hardreset
/opt/dell/srvadmin/sbin/racadm: line 13: printf: 0xError: invalid hex number
Security Alert: Certificate is invalid - self signed certificate
Continuing execution. Use -S option for racadm to stop execution on 
certificate-related errors.
Server power operation successful

The LC Remote Services isn't still ready

flemming at ip-console3:/scratch/flemming/recite $ python recite.py IP=root:pwd at target-ip GetLifecycleJobs
Set $IP root:******@
Sat Nov 24 11:01:07 2012: GetLifecycleJobs
wsman enumerate "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_LifecycleJob" 
-h 192.168.19.164 -P 443 -u root -p ****** -V -v -c dummy.cert -j utf-8 -y 
basic

DCIM_LifecycleJob
   ElapsedTimeSinceCompletion
   InstanceID = JID_CLEARALL
   JobStartTime = TIME_NA
   JobStatus = Pending
   JobUntilTime = TIME_NA
   Message = NA
   MessageArguments = NA
   MessageID = NA
   Name = CLEARALL
   PercentComplete = 0

-->


Ok, after that i try to delete this pending job

--> DeleteJobQueue
Sat Nov 24 11:22:23 2012: DeleteJobQueue
wsman invoke -a DeleteJobQueue 
"http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_JobService?CreationClassName=DCIM_JobService,Name=JobService,SystemName=Idrac,SystemCreationClassName=DCIM_ComputerSystem" 
-k "JobID=JID_CLEARALL" -h 192.168.19.164 -P 443 -u root -p ****** -V -v 
-c dummy.cert -j utf-8 -y basic

DeleteJobQueue_OUTPUT
   Message = The job cannot be deleted as iDRAC is busy (a session is open 
and in use)
   MessageID = SUP007
   ReturnValue = 2

Hmm, than  i reset the ilo

flemming at ip-console3:~/bin $ ipmitool -I lan -U root -P calvin -H bird056-ilo mc reset cold

but without success ... :-(

any hint is welcome  ....


thanks & cheers

 	martin



On Fri, 23 Nov 2012, Larry Havemann wrote:

> I don't know what causes that, but i found that if i reboot the system and let the LC reload clears it.  The only thing that makes sense to me on why this works is that the LC
> thinks it needs to finish a job.  And the last step of that job is to reboot the system, but it doesn't have a reboot job so it's stuck.  Rebooting clears this reboot
> requirement and reloads the LC.  That could be completely wrong, but based on behavior i think that's what's happening. 
> -Larry
> 
> 
> On Fri, Nov 23, 2012 at 12:16 PM, Martin Flemming <martin.flemming at desy.de> wrote:
> 
>
>       Hi, Larry !
>
>       Thanks a lot for your expample, i've added it to
>       RAIDstacking_TIME_NOW.win and now it works, thanks a lot !
> 
>
>       Unfortunately, if i run this script via loop over 20 machines,
>        3 or 4 machines which were hanging with a unready LC :-(
>
>       GetRemoteServicesAPIStatus_OUTPUT
>         LCStatus = 4
>         Message = Lifecycle Controller Remote Services is not ready.
>         MessageID = LC060
>         ReturnValue = 0
>         ServerStatus = 2
>         Status = 1
>
>         Until: Message != Lifecycle Controller Remote Services is ready.  [['Lifecycle Controller Remote Services is not ready.']]
>
>       Has anybody an hint how i change/clear this status ?
>       I've found nothing about in the huge documentation :-(
>
>       thanks & cheers
>
>               martin
> 
>
>       On Wed, 14 Nov 2012, Larry Havemann wrote:
>
>             Hi Martin,
>
>             I'm using this to create a raid via recite:
>
>             CreateVirtualDisk PDArray=Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1 PDArray=Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1
>             Target=RAID.Integrated.1-1
>             VDPropNameArray=RAIDLevel VDPropNameArray=SpanDepth VDPropNameArray=SpanLength VDPropNameArray=Size VDPropNameArray=VirtualDiskName VDPropValueArray=2
>             VDPropValueArray=1
>             VDPropValueArray=2 VDPropValueArray= VDPropValueArray=
>
>             -Larry
> 
>
>             On Wed, Nov 14, 2012 at 12:46 PM, <Ganesh_Viswanathan at dell.com> wrote:
>                   Looks like you are missing a value for spanlength. See help CreateVirtualDisk for details on required and optional parameters.
>
>                   <p:CreateVirtualDisk_INPUT xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_RAIDService">
>                   <p:PDArray>Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1</p:PDArray>
>                   <p:PDArray>Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1</p:PDArray>
>                      <p:Target>RAID.Integrated.1-1</p:Target>
>                      <p:VDPropNameArray>RAIDLevel</p:VDPropNameArray>
>                      <p:VDPropNameArray>SpanLength</p:VDPropNameArray>
>                      <p:VDPropValueArray>2</p:VDPropValueArray>
>                   </p:CreateVirtualDisk_INPUT>
>
>             Best regards,
>             Ganesh Viswanathan
> 
>
>             -----Original Message-----
>             From: linux-poweredge-bounces-Lists On Behalf Of Martin Flemming
>             Sent: Wednesday, November 14, 2012 2:49 PM
>             To: linux-poweredge-Lists
>             Subject: Re: [Linux-PowerEdge] LC remote changing from raid1 to raid0
> 
> 
>
>             Hmm, i change it but now i've got
> 
>
>             Wed Nov 14 21:44:38 2012: CreateVirtualDisk Target=RAID.Integrated.1-1
>             PDArray=Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1
>             PDArray=Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1 VDPropValueArray=2
>
>             wsman invoke -a CreateVirtualDisk
> "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_RAIDService?SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_RAIDService,SystemName=DCIM:Co
>
>             mputerSystem,Name=DCIM:RAIDService"
>             -h 10.13.58.189 -P 443 -u root -p ****** -V -v -c dummy.cert -j utf-8 -y basic -J /tmp/tmpJPwApG
>
>             <p:CreateVirtualDisk_INPUT xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_RAIDService">
>             <p:PDArray>Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1</p:PDArray>
>             <p:PDArray>Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1</p:PDArray>
>                <p:Target>RAID.Integrated.1-1</p:Target>
>                <p:VDPropNameArray>RAIDLevel</p:VDPropNameArray>
>                <p:VDPropNameArray>SpanLength</p:VDPropNameArray>
>                <p:VDPropValueArray>2</p:VDPropValueArray>
>             </p:CreateVirtualDisk_INPUT>
>
>             CreateVirtualDisk_OUTPUT
>                Message = Invalid parameter value
>                MessageID = STOR004
>                ReturnValue = 2
>
>                Until: ReturnValue != 0  [['2']]
> 
> 
>
>             cheers,
>                       Martin
> 
>
>             > There's your issue - I didn't notice it earlier but the PD enumeration makes it clear.
>             >
>             > <p:PDArray>Disk.Bay.0:Enclosure.Internal.0-0</p:PDArray>
>             > <p:PDArray>Disk.Bay.1:Enclosure.Internal.0-0</p:PDArray>
>             >
>             > The PDs configured for creating the VD are incorrect. It should be Internal.0-1.
>             >
>             > Best regards,
>             > Ganesh Viswanathan
>             >
>             >
>             > -----Original Message-----
>             > From: linux-poweredge-bounces-Lists On Behalf Of Martin Flemming
>             > Sent: Wednesday, November 14, 2012 11:39 AM
>             > To: linux-poweredge-Lists
>             > Subject: Re: [Linux-PowerEdge] LC remote changing from raid1 to raid0
>             >
>             >
>             > On Wed, 14 Nov 2012, Ganesh_Viswanathan at Dell.com wrote:
>             >
>             >> Hello Martin,
>             >> Can you please share the output of GetPhysicalDiskViews and GetSoftwareIdentities?
>             >
>             >
>             > voila !
>             >
>             > --> GetPhysicalDiskViews
>             > Wed Nov 14 18:36:31 2012: GetPhysicalDiskViews wsman enumerate "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_PhysicalDiskView"
>             > -h 10.13.58.189 -P 443 -u root -p ****** -V -v -c dummy.cert -j utf-8
>             > -y basic
>             >
>             > DCIM_PhysicalDiskView
>             >   BusProtocol = 6
>             >   Connector = 0
>             >   DriveFormFactor = 2
>             >   FQDD = Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1
>             >   FreeSizeInBytes = 0
>             >   HotSpareStatus = 0
>             >   InstanceID = Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1
>             >   LastSystemInventoryTime = 20121012171734.000000+000
>             >   LastUpdateTime = 20121012153237.000000+000
>             >   Manufacturer = SEAGATE
>             >   ManufacturingDay = 1
>             >   ManufacturingWeek = 21
>             >   ManufacturingYear = 2012
>             >   MaxCapableSpeed = 3
>             >   MediaType = 0
>             >   Model = ST9300453SS
>             >   OperationName = None
>             >   OperationPercentComplete = 0
>             >   PPID = CN081N2C7262225Q000RA00
>             >   PredictiveFailureState = 0
>             >   PrimaryStatus = 0
>             >   RaidStatus = 2
>             >   Revision = YSF3
>             >   RollupStatus = 0
>             >   SASAddress = 5000C50053FBA821
>             >   SecurityState = 0
>             >   SerialNumber = 6XN12SW6
>             >   SizeInBytes = 299439751168
>             >   Slot = 0
>             >   SupportedEncryptionTypes = Self Encrypting Drive
>             >   UsedSizeInBytes = 299439751168
>             >
>             > DCIM_PhysicalDiskView
>             >   BusProtocol = 6
>             >   Connector = 0
>             >   DriveFormFactor = 2
>             >   FQDD = Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1
>             >   FreeSizeInBytes = 0
>             >   HotSpareStatus = 0
>             >   InstanceID = Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1
>             >   LastSystemInventoryTime = 20121012171734.000000+000
>             >   LastUpdateTime = 20121012153237.000000+000
>             >   Manufacturer = SEAGATE
>             >   ManufacturingDay = 1
>             >   ManufacturingWeek = 21
>             >   ManufacturingYear = 2012
>             >   MaxCapableSpeed = 3
>             >   MediaType = 0
>             >   Model = ST9300453SS
>             >   OperationName = None
>             >   OperationPercentComplete = 0
>             >   PPID = CN081N2C7262225Q0027A00
>             >   PredictiveFailureState = 0
>             >   PrimaryStatus = 0
>             >   RaidStatus = 2
>             >   Revision = YSF3
>             >   RollupStatus = 0
>             >   SASAddress = 5000C50053FB4AF1
>             >   SecurityState = 0
>             >   SerialNumber = 6XN13F0S
>             >   SizeInBytes = 299439751168
>             >   Slot = 1
>             >   SupportedEncryptionTypes = Self Encrypting Drive
>             >   UsedSizeInBytes = 299439751168
>             >
>             > -->
>             >
>             >        martin
>             >
>             >>
>             >> Best regards,
>             >> Ganesh Viswanathan
>             >>
>             >>
>             >> -----Original Message-----
>             >> From: linux-poweredge-bounces-Lists On Behalf Of Martin Flemming
>             >> Sent: Wednesday, November 14, 2012 7:43 AM
>             >> To: linux-poweredge-Lists
>             >> Subject: Re: [Linux-PowerEdge] LC remote changing from raid1 to raid0
>             >>
>             >>
>             >> Hi, Ganesh et all !
>             >>
>             >>
>             >> On Fri, 9 Nov 2012, Ganesh_Viswanathan at Dell.com wrote:
>             >>> Hello Martin,
>             >>> This might be much easier using Recite available here: http://dell.to/recite-wsman.
>             >>>
>             >>> You can refer to the Best Practices guide for details on RAID creation. Section 4.1 has the methods to invoke. There are also sample Recite scripts
>             that will help you
>             get started.
>             >>
>             >> thanks for the hints ... but i'm not very successfully :-( Hopeing to
>             >> get the right direction to get this running
>             >>
>             >> I'm starting with RAIDstacking_TIME_NOW.win from BestPracticeFlows-collection and "rewrite" it for RAID0 and only for two disks ..
>             >>
>             >> cat RAID-Stripe0-stacking_TIME_NOW.win|grep -v \^#
>             >> ######################################################
>             >> Set $swait 30
>             >> Set $lwait 1800
>             >> Set $FQDD RAID.Integrated.1-1
>             >> Set $poll_reloading FALSE
>             >> Set $poll_ready TRUE
>             >> batch BestPracticeFlows/helpers/GetSystemStatus.win
>             >> batch BestPracticeFlows/DisableCSIOR.win
>             >> ResetConfig Target=$FQDD
>             >> Until ReturnValue=0 $swait $lwait CreateVirtualDisk Target=$FQDD
>             >> PDArray=Disk.Bay.0:Enclosure.Internal.0-0:$FQDD
>             >> PDArray=Disk.Bay.1:Enclosure.Internal.0-0:$FQDD VDPropValueArray=2
>             >> Find InstanceID $vd1 Until ReturnValue=4096 $swait $lwait
>             >> CreateRAIDConfigJob Target=$FQDD ScheduledStartTime=TIME_NOW
>             >> RebootJobType=3 Find InstanceID $jid Until JobStatus=Completed $swait
>             >> $lwait GetLifecycleJob InstanceID=$jid Set $poll_reloading TRUE Set
>             >> $poll_ready TRUE batch BestPracticeFlows/helpers/GetSystemStatus.win
>             >> -GetVirtualDiskViews
>             >> -GetPhysicalDiskViews
>             >> ##############################################################
>             >>
>             >> but get finally  follow error messages "CreateVirtualDisk_OUTPUT Message = Physical disk not found"
>             >>
>             >> -> Until ReturnValue=0 $swait $lwait CreateVirtualDisk Target=$FQDD
>             >> -> PDArray=Disk.Bay.0:Enclosure.Internal.0-0
>             >> -> PDArray=Disk.Bay.1:Enclosure.Internal.0-0 VDPropValueArray=2
>             >> Wed Nov 14 14:16:29 2012: Until ReturnValue=0 $swait $lwait CreateVirtualDisk Target=$FQDD PDArray=Disk.Bay.0:Enclosure.Internal.0-0
>             PDArray=Disk.Bay.1:Enclosure.Internal.0-0 VDPropValueArray=2 Wed Nov 14 14:16:29 2012: CreateVirtualDisk Target=RAID.Integrated.1-1
>             PDArray=Disk.Bay.0:Enclosure.Internal.0-0 PDArray=Disk.Bay.1:Enclosure.Internal.0-0 VDPropValueArray=2 wsman invoke -aCreateVirtualDisk"http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_RAIDService?SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_RAIDService,S
>             ystemName=DCIM:Co
>             mputerSystem,Name=DCIM:RAIDService"
>             >> -h 10.13.58.189 -P 443 -u root -p ****** -V -v -c dummy.cert -j utf-8
>             >> -y basic -J /tmp/tmpTxHkhU
>             >>
>             >> <p:CreateVirtualDisk_INPUT
>             >> xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_RAIDService">
>             >>   <p:PDArray>Disk.Bay.0:Enclosure.Internal.0-0</p:PDArray>
>             >>   <p:PDArray>Disk.Bay.1:Enclosure.Internal.0-0</p:PDArray>
>             >>   <p:Target>RAID.Integrated.1-1</p:Target>
>             >>   <p:VDPropNameArray>RAIDLevel</p:VDPropNameArray>
>             >>   <p:VDPropNameArray>SpanLength</p:VDPropNameArray>
>             >>   <p:VDPropValueArray>2</p:VDPropValueArray>
>             >> </p:CreateVirtualDisk_INPUT>
>             >>
>             >> CreateVirtualDisk_OUTPUT
>             >>   Message = Physical disk not found
>             >>   MessageID = STOR029
>             >>   ReturnValue = 2
>             >>
>             >>   Until: ReturnValue != 0  [['2']]
>             >>
>             >>
>             >> What's going wrong ?! :-(
>             >>
>             >> Any Help is welcome ! :-)
>             >>
>             >>
>             >> Thanks in Advance
>             >>
>             >>                     martin
>             >>
>             >>
>             >> Below all steps till the error message :
>             >>
>             >>
>             >> python recite.py IP=root:calvin at IP_HOST
>             >>
>             >> GetVirtualDiskViews
>             >>
>             >> CIM_VirtualDiskView
>             >>   BusProtocol = 6
>             >>   Cachecade = 0
>             >>   DiskCachePolicy = 1024
>             >>   FQDD = Disk.Virtual.0:RAID.Integrated.1-1
>             >>   InstanceID = Disk.Virtual.0:RAID.Integrated.1-1
>             >>   LastSystemInventoryTime = 20121113223602.000000+000
>             >>   LastUpdateTime = 20121113223602.000000+000
>             >>   LockStatus = 0
>             >>   MediaType = 1
>             >>   Name = Virtual Disk 00
>             >>   ObjectStatus = 0
>             >>   OperationName = None
>             >>   OperationPercentComplete = 0
>             >>   PhysicalDiskIDs = Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1
>             >>   PhysicalDiskIDs = Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1
>             >>   PrimaryStatus = 1
>             >>   RAIDStatus = 2
>             >>   RAIDTypes = 2
>             >>   ReadCachePolicy = 16
>             >>   RemainingRedundancy = 0
>             >>   RollupStatus = 1
>             >>   SizeInBytes = 598879502336
>             >>   SpanDepth = 1
>             >>   SpanLength = 2
>             >>   StartingLBAinBlocks = 0
>             >>   StripeSize = 128
>             >>   VirtualDiskTargetID = 0
>             >>   WriteCachePolicy = 1
>             >>
>             >>
>             >>
>             >>
>             >> --> Set $FQDD RAID.Integrated.1-1
>             >> Wed Nov 14 14:11:57 2012: Set $FQDD RAID.Integrated.1-1
>             >> --> batch BestPracticeFlows/helpers/GetSystemStatus.win
>             >> Wed Nov 14 14:12:07 2012: batch
>             >> BestPracticeFlows/helpers/GetSystemStatus.win
>             >> Wed Nov 14 14:12:07 2012: Set $swait 30 Wed Nov 14 14:12:07 2012: Set
>             >> $lwait 1800 Wed Nov 14 14:12:07 2012: GetSystemViews wsman enumerate "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_SystemView"
>             >> -h 10.13.58.189 -P 443 -u root -p ****** -V -v -c dummy.cert -j utf-8
>             >> -y basic
>             >>
>             >> DCIM_SystemView
>             >>   AssetTag
>             >>   BIOSReleaseDate = 08/21/2012
>             >>   BIOSVersionString = 1.3.5
>             >>   BaseBoardChassisSlot = Slot 07
>             >>   BatteryRollupStatus = 1
>             >>   BladeGeometry = 0
>             >>   BoardPartNumber = 0W8TY0A01
>             >>   BoardSerialNumber = CN70163278002O
>             >>   CMCIP = 10.13.58.134
>             >>   CPLDVersion = 1.0.3
>             >>   CPURollupStatus = 1
>             >>   ChassisName = Server Blade
>             >>   ChassisServiceTag = 7FB645J
>             >>   ChassisSystemHeight
>             >>   ExpressServiceCode = 34271419015
>             >>   FQDD = System.Embedded.1
>             >>   FanRollupStatus = 0
>             >>   HostName
>             >>   InstanceID = System.Embedded.1
>             >>   LastSystemInventoryTime = 20121012171734.000000+000
>             >>   LastUpdateTime = 20121012152509.000000+000
>             >>   LicensingRollupStatus = 1
>             >>   LifecycleControllerVersion = 2.0.0
>             >>   Manufacturer = Dell Inc.
>             >>   MaxCPUSockets = 2
>             >>   MaxDIMMSlots = 12
>             >>   MaxPCIeSlots = 0
>             >>   MemoryOperationMode = Unknown
>             >>   Model = PowerEdge M520
>             >>   PSRollupStatus = 0
>             >>   PlatformGUID = 4a35474f-c0c6-4280-5310-00514c4c4544
>             >>   PopulatedCPUSockets = 2
>             >>   PopulatedDIMMSlots = 6
>             >>   PopulatedPCIeSlots = 0
>             >>   PowerCap = 296
>             >>   PowerCapEnabledState = 3
>             >>   PowerState = 8
>             >>   PrimaryStatus = 0
>             >>   RollupStatus = 1
>             >>   ServerAllocation = 0
>             >>   ServiceTag = FQSBG5J
>             >>   StorageRollupStatus = 1
>             >>   SysMemErrorMethodology = 6
>             >>   SysMemFailOverState = NotInUse
>             >>   SysMemLocation = 3
>             >>   SysMemPrimaryStatus = 1
>             >>   SysMemTotalSize = 49152
>             >>   SystemGeneration = 12G Modular
>             >>   SystemID = 1244
>             >>   SystemRevision = 0
>             >>   TempRollupStatus = 1
>             >>   UUID = 4c4c4544-0051-5310-8042-c6c04f47354a
>             >>   VoltRollupStatus = 1
>             >>   smbiosGUID = 44454c4c-5100-1053-8042-c6c04f47354a
>             >>
>             >> Wed Nov 14 14:12:12 2012: Find LifecycleControllerVersion $lc_version Wed Nov 14 14:12:12 2012: if $lc_version=1.5.1 >GETRSSTATUS Wed Nov 14 14:12:12
>             2012: if
>             $lc_version=2.0.0 >GETREMOTESERVICEAPISTATUS Wed Nov 14 14:12:12 2012: Goto GETREMOTESERVICEAPISTATUS Wed Nov 14 14:12:12 2012: Until Message="Lifecycle
>             Controller Remote
>             Services is ready." 20 1800 GetRemoteServicesAPIStatus Wed Nov 14 14:12:12 2012: GetRemoteServicesAPIStatus wsman invoke -aGetRemoteServicesAPIStatus"http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_LCService?SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_LCServ
>             ice,SystemName=DCIM:Comput
>             erSystem,Name=DCIM:LCService"
>             >> -h 10.13.58.189 -P 443 -u root -p ****** -V -v -c dummy.cert -j utf-8
>             >> -y basic
>             >>
>             >> GetRemoteServicesAPIStatus_OUTPUT
>             >>   LCStatus = 0
>             >>   Message = Lifecycle Controller Remote Services is ready.
>             >>   MessageID = LC061
>             >>   ReturnValue = 0
>             >>   ServerStatus = 0
>             >>   Status = 0
>             >>
>             >> Wed Nov 14 14:12:14 2012: Set $LCrev 2.0.0
>             >> --> batch BestPracticeFlows/DisableCSIOR.win
>             >> Wed Nov 14 14:12:23 2012: batch BestPracticeFlows/DisableCSIOR.win
>             >> Wed Nov 14 14:12:23 2012: Set $poll_reloading FALSE Wed Nov 14
>             >> 14:12:23 2012: Set $poll_ready TRUE Wed Nov 14 14:12:23 2012: batch
>             >> BestPracticeFlows/helpers/GetSystemStatus.win
>             >> Wed Nov 14 14:12:23 2012: Set $swait 30 Wed Nov 14 14:12:23 2012: Set
>             >> $lwait 1800 Wed Nov 14 14:12:23 2012: GetSystemViews wsman enumerate "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_SystemView"
>             >> -h 10.13.58.189 -P 443 -u root -p ****** -V -v -c dummy.cert -j utf-8
>             >> -y basic
>             >>
>             >> DCIM_SystemView
>             >>   AssetTag
>             >>   BIOSReleaseDate = 08/21/2012
>             >>   BIOSVersionString = 1.3.5
>             >>   BaseBoardChassisSlot = Slot 07
>             >>   BatteryRollupStatus = 1
>             >>   BladeGeometry = 0
>             >>   BoardPartNumber = 0W8TY0A01
>             >>   BoardSerialNumber = CN70163278002O
>             >>   CMCIP = 10.13.58.134
>             >>   CPLDVersion = 1.0.3
>             >>   CPURollupStatus = 1
>             >>   ChassisName = Server Blade
>             >>   ChassisServiceTag = 7FB645J
>             >>   ChassisSystemHeight
>             >>   ExpressServiceCode = 34271419015
>             >>   FQDD = System.Embedded.1
>             >>   FanRollupStatus = 0
>             >>   HostName
>             >>   InstanceID = System.Embedded.1
>             >>   LastSystemInventoryTime = 20121012171734.000000+000
>             >>   LastUpdateTime = 20121012152509.000000+000
>             >>   LicensingRollupStatus = 1
>             >>   LifecycleControllerVersion = 2.0.0
>             >>   Manufacturer = Dell Inc.
>             >>   MaxCPUSockets = 2
>             >>   MaxDIMMSlots = 12
>             >>   MaxPCIeSlots = 0
>             >>   MemoryOperationMode = Unknown
>             >>   Model = PowerEdge M520
>             >>   PSRollupStatus = 0
>             >>   PlatformGUID = 4a35474f-c0c6-4280-5310-00514c4c4544
>             >>   PopulatedCPUSockets = 2
>             >>   PopulatedDIMMSlots = 6
>             >>   PopulatedPCIeSlots = 0
>             >>   PowerCap = 296
>             >>   PowerCapEnabledState = 3
>             >>   PowerState = 8
>             >>   PrimaryStatus = 0
>             >>   RollupStatus = 1
>             >>   ServerAllocation = 0
>             >>   ServiceTag = FQSBG5J
>             >>   StorageRollupStatus = 1
>             >>   SysMemErrorMethodology = 6
>             >>   SysMemFailOverState = NotInUse
>             >>   SysMemLocation = 3
>             >>   SysMemPrimaryStatus = 1
>             >>   SysMemTotalSize = 49152
>             >>   SystemGeneration = 12G Modular
>             >>   SystemID = 1244
>             >>   SystemRevision = 0
>             >>   TempRollupStatus = 1
>             >>   UUID = 4c4c4544-0051-5310-8042-c6c04f47354a
>             >>   VoltRollupStatus = 1
>             >>   smbiosGUID = 44454c4c-5100-1053-8042-c6c04f47354a
>             >>
>             >> Wed Nov 14 14:12:27 2012: Find LifecycleControllerVersion $lc_version Wed Nov 14 14:12:27 2012: if $lc_version=1.5.1 >GETRSSTATUS Wed Nov 14 14:12:27
>             2012: if
>             $lc_version=2.0.0 >GETREMOTESERVICEAPISTATUS Wed Nov 14 14:12:27 2012: Goto GETREMOTESERVICEAPISTATUS Wed Nov 14 14:12:27 2012: Until Message="Lifecycle
>             Controller Remote
>             Services is ready." 20 1800 GetRemoteServicesAPIStatus Wed Nov 14 14:12:27 2012: GetRemoteServicesAPIStatus wsman invoke -aGetRemoteServicesAPIStatus"http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_LCService?SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_LCServ
>             ice,SystemName=DCIM:Comput
>             erSystem,Name=DCIM:LCService"
>             >> -h 10.13.58.189 -P 443 -u root -p ****** -V -v -c dummy.cert -j utf-8
>             >> -y basic
>             >>
>             >> GetRemoteServicesAPIStatus_OUTPUT
>             >>   LCStatus = 0
>             >>   Message = Lifecycle Controller Remote Services is ready.
>             >>   MessageID = LC061
>             >>   ReturnValue = 0
>             >>   ServerStatus = 0
>             >>   Status = 0
>             >>
>             >> Wed Nov 14 14:12:29 2012: Set $LCrev 2.0.0 Wed Nov 14 14:12:29 2012: GetLCEnumerations wsman enumerate
>             "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_LCEnumeration"
>             >> -h 10.13.58.189 -P 443 -u root -p ****** -V -v -c dummy.cert -j utf-8
>             >> -y basic
>             >>
>             >> DCIM_LCEnumeration
>             >>   AttributeName = Collect System Inventory on Restart
>             >>   CurrentValue = Disabled
>             >>   DefaultValue = Enabled
>             >>   ElementName = LC.emb.1
>             >>   InstanceID =
>             >> LifecycleController.Embedded.1#LCAttributes.1#CollectSystemInventoryOnRestart
>             >>   IsReadOnly = false
>             >>   PendingValue
>             >>   PossibleValues = Enabled
>             >>   PossibleValues = Disabled
>             >>
>             >> DCIM_LCEnumeration
>             >>   AttributeName = Part Configuration Update
>             >>   CurrentValue = Disabled
>             >>   DefaultValue = Disabled
>             >>   ElementName = LC.emb.1
>             >>   InstanceID =
>             >> LifecycleController.Embedded.1#LCAttributes.1#PartConfigurationUpdate
>             >>   IsReadOnly = false
>             >>   PendingValue
>             >>   PossibleValues = Disabled
>             >>   PossibleValues = Apply always
>             >>   PossibleValues = Apply only if firmware match
>             >>
>             >> DCIM_LCEnumeration
>             >>   AttributeName = Part Firmware Update
>             >>   CurrentValue = Disable
>             >>   DefaultValue = Disable
>             >>   ElementName = LC.emb.1
>             >>   InstanceID =
>             >> LifecycleController.Embedded.1#LCAttributes.1#PartFirmwareUpdate
>             >>   IsReadOnly = false
>             >>   PendingValue
>             >>   PossibleValues = Disable
>             >>   PossibleValues = Allow version upgrade only
>             >>   PossibleValues = Match firmware of replaced part
>             >>
>             >> DCIM_LCEnumeration
>             >>   AttributeName = Lifecycle Controller State
>             >>   CurrentValue = Enabled
>             >>   DefaultValue = Enabled
>             >>   ElementName = LC.emb.1
>             >>   InstanceID =
>             >> LifecycleController.Embedded.1#LCAttributes.1#LifecycleControllerState
>             >>   IsReadOnly = false
>             >>   PendingValue
>             >>   PossibleValues = Enabled
>             >>   PossibleValues = Disabled
>             >>   PossibleValues = Recovery
>             >>
>             >> DCIM_LCEnumeration
>             >>   AttributeName = Licensed
>             >>   CurrentValue = Yes
>             >>   DefaultValue = No
>             >>   ElementName = LC.emb.1
>             >>   InstanceID = LifecycleController.Embedded.1#LCAttributes.1#Licensed
>             >>   IsReadOnly = true
>             >>   PendingValue
>             >>   PossibleValues = No
>             >>   PossibleValues = Yes
>             >>
>             >> DCIM_LCEnumeration
>             >>   AttributeName = Auto Discovery
>             >>   CurrentValue = Off
>             >>   DefaultValue = Off
>             >>   ElementName = LC.emb.1
>             >>   InstanceID = LifecycleController.Embedded.1#LCAttributes.1#AutoDiscovery
>             >>   IsReadOnly = true
>             >>   PendingValue
>             >>   PossibleValues = On
>             >>   PossibleValues = Off
>             >>
>             >> DCIM_LCEnumeration
>             >>   AttributeName = Discovery Factory Defaults
>             >>   CurrentValue = Off
>             >>   DefaultValue = Off
>             >>   ElementName = LC.emb.1
>             >>   InstanceID =
>             >> LifecycleController.Embedded.1#LCAttributes.1#DiscoveryFactoryDefaults
>             >>   IsReadOnly = true
>             >>   PendingValue
>             >>   PossibleValues = On
>             >>   PossibleValues = Off
>             >>
>             >> DCIM_LCEnumeration
>             >>   AttributeName = IPChangeNotifyPS
>             >>   CurrentValue = Off
>             >>   DefaultValue = Off
>             >>   ElementName = LC.emb.1
>             >>   InstanceID =
>             >> LifecycleController.Embedded.1#LCAttributes.1#IPChangeNotifyPS
>             >>   IsReadOnly = false
>             >>   PendingValue
>             >>   PossibleValues = On
>             >>   PossibleValues = Off
>             >>
>             >> DCIM_LCEnumeration
>             >>   AttributeName = VirtualAddressManagement
>             >>   CurrentValue = FlexAddress
>             >>   DefaultValue = FlexAddress
>             >>   ElementName = LC.emb.1
>             >>   InstanceID =
>             >> LifecycleController.Embedded.1#LCAttributes.1#VirtualAddressManagement
>             >>   IsReadOnly = false
>             >>   PendingValue
>             >>   PossibleValues = FlexAddress
>             >>   PossibleValues = Console
>             >>
>             >> Wed Nov 14 14:12:45 2012: Context AttributeName="Collect System
>             >> Inventory on Restart" Find CurrentValue $current_csior_value Wed Nov
>             >> 14 14:12:45 2012: Find CurrentValue $current_csior_value Wed Nov 14
>             >> 14:12:45 2012: If Disabled=$current_csior_value Goto END Wed Nov 14
>             >> 14:12:45 2012: Goto END
>             >> --> ResetConfig Target=$FQDD
>             >> Wed Nov 14 14:15:51 2012: ResetConfig Target=$FQDD wsman invoke -aResetConfig"http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_RAIDService?SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_RAIDService,SystemN
>             ame=DCIM:Co
>             mputerSystem,Name=DCIM:RAIDService"
>             >> -k "Target=RAID.Integrated.1-1" -h 10.13.58.189 -P 443 -u root -p
>             >> ****** -V -v -c dummy.cert -j utf-8 -y basic
>             >>
>             >> ResetConfig_OUTPUT
>             >>   RebootRequired = YES
>             >>   ReturnValue = 0
>             >>
>             >> --> Until ReturnValue=0 $swait $lwait CreateVirtualDisk Target=$FQDD
>             >> PDArray=Disk.Bay.0:Enclosure.Internal.0-0:$FQDD
>             >> PDArray=Disk.Bay.1:Enclosure.Internal.0-0:$FQDD VDPropValueArray=2
>             >> Wed Nov 14 14:16:15 2012: Until ReturnValue=0 $swait $lwait
>             >> CreateVirtualDisk Target=$FQDD
>             >> PDArray=Disk.Bay.0:Enclosure.Internal.0-0:$FQDD
>             >> PDArray=Disk.Bay.1:Enclosure.Internal.0-0:$FQDD VDPropValueArray=2
>             >> Wed Nov 14 14:16:15 2012: CreateVirtualDisk
>             >> Target=RAID.Integrated.1-1
>             >> PDArray=Disk.Bay.0:Enclosure.Internal.0-0:RAID.Integrated.1-1
>             >> PDArray=Disk.Bay.1:Enclosure.Internal.0-0:RAID.Integrated.1-1
>             >> VDPropValueArray=2
>             >> wsman invoke -a CreateVirtualDisk
> >>"http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_RAIDService?SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_RAIDService,SystemName=DCIM:
>             Co
>             mputerSystem,Name=DCIM:RAIDService"
>             >> -h 10.13.58.189 -P 443 -u root -p ****** -V -v -c dummy.cert -j utf-8
>             >> -y basic -J /tmp/tmpiAcJZi
>             >>
>             >> <p:CreateVirtualDisk_INPUT
>             >> xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/
>             >> D
>             >> CIM_RAIDService">
>             >>
>             >> <p:PDArray>Disk.Bay.0:Enclosure.Internal.0-0:RAID.Integrated.1-1</p:P
>             >> D
>             >> Array>
>             >>
>             >> <p:PDArray>Disk.Bay.1:Enclosure.Internal.0-0:RAID.Integrated.1-1</p:PDArray>
>             >>   <p:Target>RAID.Integrated.1-1</p:Target>
>             >>   <p:VDPropNameArray>RAIDLevel</p:VDPropNameArray>
>             >>   <p:VDPropNameArray>SpanLength</p:VDPropNameArray>
>             >>   <p:VDPropValueArray>2</p:VDPropValueArray>
>             >> </p:CreateVirtualDisk_INPUT>
>             >>
>             >> CreateVirtualDisk_OUTPUT
>             >>   Message = Physical disk not found
>             >>   MessageID = STOR029
>             >>   ReturnValue = 2
>             >>
>             >>   Until: ReturnValue != 0  [['2']]
>             >>
>             >> ^CDeleting /tmp/tmpiAcJZi
>             >> Set $IP root:******@10.13.58.189
>             >> --> Until ReturnValue=0 $swait $lwait CreateVirtualDisk Target=$FQDD
>             >> PDArray=Disk.Bay.0:Enclosure.Internal.0-0
>             >> PDArray=Disk.Bay.1:Enclosure.Internal.0-0 VDPropValueArray=2 Wed Nov
>             >> 14 14:16:29 2012: Until ReturnValue=0 $swait $lwait CreateVirtualDisk
>             >> Target=$FQDD PDArray=Disk.Bay.0:Enclosure.Internal.0-0
>             >> PDArray=Disk.Bay.1:Enclosure.Internal.0-0 VDPropValueArray=2 Wed Nov
>             >> 14 14:16:29 2012: CreateVirtualDisk Target=RAID.Integrated.1-1
>             >> PDArray=Disk.Bay.0:Enclosure.Internal.0-0
>             >> PDArray=Disk.Bay.1:Enclosure.Internal.0-0 VDPropValueArray=2 wsman invoke -aCreateVirtualDisk"http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_RAIDService?SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_RAIDService,S
>             ystemName=DCIM:Co
>             mputerSystem,Name=DCIM:RAIDService"
>             >> -h 10.13.58.189 -P 443 -u root -p ****** -V -v -c dummy.cert -j utf-8
>             >> -y basic -J /tmp/tmpTxHkhU
>             >>
>             >> <p:CreateVirtualDisk_INPUT
>             >> xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_RAIDService">
>             >>   <p:PDArray>Disk.Bay.0:Enclosure.Internal.0-0</p:PDArray>
>             >>   <p:PDArray>Disk.Bay.1:Enclosure.Internal.0-0</p:PDArray>
>             >>   <p:Target>RAID.Integrated.1-1</p:Target>
>             >>   <p:VDPropNameArray>RAIDLevel</p:VDPropNameArray>
>             >>   <p:VDPropNameArray>SpanLength</p:VDPropNameArray>
>             >>   <p:VDPropValueArray>2</p:VDPropValueArray>
>             >> </p:CreateVirtualDisk_INPUT>
>             >>
>             >> CreateVirtualDisk_OUTPUT
>             >>   Message = Physical disk not found
>             >>   MessageID = STOR029
>             >>   ReturnValue = 2
>             >>
>             >>   Until: ReturnValue != 0  [['2']]
>             >>
>             >>
>             >>
>             >>
>             >>
>             >>
>             >>>
>             >>> LC on TechCenter:
>             >>> http://en.community.dell.com/techcenter/systems-management/w/wiki/19
>             >>> 7
>             >>> 9
>             >>> .lifecycle-controller.aspx BP guide:
>             >>> http://en.community.dell.com/techcenter/extras/m/white_papers/200661
>             >>> 7
>             >>> 3
>             >>> .aspx BP script samples:
>             >>> http://en.community.dell.com/techcenter/extras/m/white_papers/200661
>             >>> 7
>             >>> 8
>             >>> .aspx
>             >>>
>             >>> Also, do check out the RAID profile document which goes into all the RAID capabilities of Lifecycle Controller.
>             >>>
>             >>> Profiles:
>             >>> http://en.community.dell.com/techcenter/systems-management/w/wiki/19
>             >>> 0
>             >>> 6 .dcim-library-profile.aspx RAID profile:
>             >>> http://en.community.dell.com/techcenter/systems-management/w/wiki/35
>             >>> 2
>             >>> 7
>             >>> .dcim-raid-profile-1-2.aspx
>             >>>
>             >>> Hope this helps.
>             >>>
>             >>> Best regards,
>             >>> Ganesh Viswanathan
>             >>>
>             >>>
>             >>> -----Original Message-----
>             >>> From: linux-poweredge-bounces-Lists On Behalf Of
>             >>> martin.flemming at desy.de
>             >>> Sent: Friday, November 09, 2012 3:37 AM
>             >>> To: linux-poweredge-Lists
>             >>> Subject: [Linux-PowerEdge] LC remote changing from raid1 to raid0
>             >>>
>             >>>
>             >>> 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 ?
>             >>>
>             >>>
>             >>> I've found the wiki-side
>             >>>
>             >>> http://en.community.dell.com/techcenter/systems-management/w/wiki/19
>             >>> 8
>             >>> 1 .scripting-the-dell-lifecycle-controller.aspx
>             >>>
>             >>>
>             >>> My first try was to use
>             >>>
>             >>> RAID Attributes push pull     Python and Shell scripts to inventory
>             >>> (pull) and configure (push) RAID attributes using WSMan.
>             >>>
>             >>> wsmanclipy, sh
>             >>>
>             >>>
>             >>> flemming@:/scratch/flemming/lc2/raid $ ./pullRAID.sh IP address
>             >>> (ENTER for default: ) ? XXXXXX User name (ENTER for default: ) ?
>             >>> XXXXX User password (ENTER for default: ) ? XXXX
>             >>>
>             >>>  Building the Order Attributes Template File...
>             >>>
>             >>>  Getting the Attributes ....
>             >>> pullraid.py:197: DeprecationWarning: os.popen3 is deprecated.  Use the subprocess module.
>             >>>   (fin, fout, ferr) = os.popen3(command, "t")  Creating the .ini
>             >>> file ....
>             >>> Traceback (most recent call last):
>             >>>   File "pullraid.py", line 244, in <module>
>             >>>     CNARunner(idracIp, idracUser, idracPass, attrSet)
>             >>>   File "pullraid.py", line 54, in __init__
>             >>>     self.run()
>             >>>   File "pullraid.py", line 90, in run
>             >>>     self.buildIni(self.idracIp, self.settings, orderAttr)
>             >>>   File "pullraid.py", line 137, in buildIni
>             >>>     if vallist[j].hasChildNodes() == True:
>             >>> IndexError: list index out of range
>             >>> flemming at ip-console3:/scratch/flemming/lc2/raid $
>             >>>
>             >>> ...  what means the error-messages above ?
>             >>>
>             >>>
>             >>> I've got these files
>             >>> XXXX_raid.ini
>             >>> XXXX_raid.log
>             >>> XXXX_raidorder.xml
>             >>>
>             >>> .. thinking that i can't change my raid-configuration with these scripts, can i ?
>             >>>
>             >>>
>             >>> After that i switch to the scriptcollection
>             >>> linux_lc1_5_scripts_2011_09_8_v1_2.zip
>             >>>
>             >>> .. specialy
>             >>>
>             >>> 16_RAID_Storage_Management
>             >>>
>             >>> ... got somebody an quick advice, how i delete my virtual disk(raid1) an create a new one with raid0 ?
>             >>>
>             >>> thanks & cheers
>             >>>
>             >>>        Martin
> 
> 
> _______________________________________________
> Linux-PowerEdge mailing list
> Linux-PowerEdge at dell.com
> https://lists.us.dell.com/mailman/listinfo/linux-poweredge
> 
> 
> 
>

Gruss

        Martin Flemming


______________________________________________________
Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : 040 - 8998 - 4667
22603 Hamburg      mail   : martin.flemming at desy.de
______________________________________________________


More information about the Linux-PowerEdge mailing list