Operating System - Linux
1752550 Members
5251 Online
108788 Solutions
New Discussion

Re: Migrate RAID0 to RAID1 online with hpacucli

 
Vit Foukal
New Member

Migrate RAID0 to RAID1 online with hpacucli

Hello everyone

Can someone confirm me that following will work as expected without data loss, please?

I have the following Linux machine:
Linux server 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:33:05 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)

Installed Packages
hpacucli.i386 8.28-13.0 installed

And following Smart Array configuration:

Smart Array P410i in Slot 0 (Embedded)
Bus Interface: PCI
Slot: 0
Serial Number: 50014380048BC170
Cache Serial Number: PAAVP9SXTZD8
RAID 6 (ADG) Status: Disabled
Controller Status: OK
Chassis Slot:
Hardware Revision: Rev C
Firmware Version: 1.66
Rebuild Priority: Medium
Expand Priority: Medium
Surface Scan Delay: 15 secs
Queue Depth: Automatic
Monitor and Performance Delay: 60 min
Elevator Sort: Enabled
Degraded Performance Optimization: Disabled
Inconsistency Repair Policy: Disabled
Post Prompt Timeout: 0 secs
Cache Board Present: True
Cache Status: OK
Accelerator Ratio: 50% Read / 50% Write
Drive Write Cache: Disabled
Total Cache Size: 512 MB
No-Battery Write Cache: Disabled
Cache Backup Power Source: Batteries
Battery/Capacitor Count: 1
Battery/Capacitor Status: OK
SATA NCQ Supported: True

Array: A
Interface Type: SAS
Unused Space: 0 MB
Status: OK

Logical Drive: 1
Size: 136.7 GB
Fault Tolerance: RAID 0
Heads: 255
Sectors Per Track: 32
Cylinders: 35132
Stripe Size: 128 KB
Status: OK
Array Accelerator: Enabled
Unique Identifier: 600508B1001030343842433137300F00
Disk Name: /dev/cciss/c0d0
Mount Points: /boot 101 MB
Logical Drive Label: ABE655DB50014380048BC170FF12

physicaldrive 1I:1:1
Port: 1I
Box: 1
Bay: 1
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 146 GB
Rotational Speed: 10000
Firmware Revision: HPD3
Serial Number: 3SD0RBC800009001L8ZS
Model: HP DG0146BALVN
PHY Count: 2
PHY Transfer Rate: 3.0GBPS, Unknown

unassigned

physicaldrive 1I:1:2
Port: 1I
Box: 1
Bay: 2
Status: OK
Drive Type: Unassigned Drive
Interface Type: SAS
Size: 146 GB
Rotational Speed: 10000
Firmware Revision: HPD0
Serial Number: D0A2P9705ANB0930
Model: HP DG0146BARTP
PHY Count: 2
PHY Transfer Rate: 3.0GBPS, Unknown


I would like to add unassigned disk to Logical Drive 1 and migrate RAID 0 to RAID 1. I would like to do it with hpacucli with following commands:

# hpacucli ctrl slot=0 ld 1 add drives=allunassigned
# hpacucli ctrl slot=0 ld 1 modify raid=1

1.) Will it work (I have never tried) with hpacucli (and all documentation I have found describe it using ACU GUI)?
2.) Are the commands correct, is something else required?
3.) Can it performed online (BBWC is available, I guess), while system is running?
4.) How the system performance will be affected? Do you recommend me to lower the rebuild priority to low?


Thank you very much for the comments, if additional information are required, just give me a shout.


Vit
8 REPLIES 8
Vit Foukal
New Member

Re: Migrate RAID0 to RAID1 online with hpacucli

Hello


Just in case someone will be interested in. It works the way described.
In the end I decided to perform it with service interruption and high rebuild priority.

So actual sequence was:

Set rebuild priority to high:
# hpacucli ctrl slot=0 modify rebuildpriority=high

Assigning of unassigned disks to logical drive:
(this action invoked synchronization of RAID with default raid type (of RAID0) - there was only one disk before, right - it took about 1hr (146GB disks))
# hpacucli ctrl slot=0 ld 1 add drives=allunassigned

After synchronization finished, I migrate the RAID0 to RAID1:
(this action took about 5hrs)
# hpacucli ctrl slot=0 ld 1 modify raid=1


Actual answers to the questions in previous post are:
Ad1) yes
Ad2) yes, see the sequence above
Ad3) yes
Ad4) do not know, rather did it with service outage


Hope this helps some one.


Vit
Fog-Watch
Advisor

Re: Migrate RAID0 to RAID1 online with hpacucli

Thanks
UGster
Occasional Visitor

Re: Migrate RAID0 to RAID1 online with hpacucli

Thanks. 

I tried this too. works like charm

Synergics
Occasional Visitor

Re: Migrate RAID0 to RAID1 online with hpacucli

Just a quick note:

You will need to have a battery cache (BBWC) - that is fully charged - for these commands to work.

pashar
Occasional Visitor

Re: Migrate RAID0 to RAID1 online with hpacucli

can somebody help me with this error I'm getting?

 

 

 

 

[root@tbc-lxstx02 ~]# hpacucli ctrl slot=0 ld 1 add drives=allunassigned

Controller: Smart Array P410i in Slot 0 (Embedded) is operating without a memory board and contains one or more logical drives with a RAID level that is not supported in the current configuration. Any configuration command (e.g. logical drive creation, array expansion, etc.) or modification to the controller will result in the loss of all existing data on the disabled volume(s).

Error: This operation is not supported with the current configuration. Use the        "show" command on devices to show additional details about the        configuration.

 

 

 

[root@tbc-lxstx02 ~]# hpacucli ctrl slot=0 show config detail

Controller: Smart Array P410i in Slot 0 (Embedded) is operating without a memory board and contains one or more logical drives with a RAID level that is not supported in the current configuration. Any configuration command (e.g. logical drive creation, array expansion, etc.) or modification to the controller will result in the loss of all existing data on the disabled volume(s).

Smart Array P410i in Slot 0 (Embedded)    Bus Interface: PCI    Slot: 0    Serial Number: 500143801715A330    RAID 6 (ADG) Status: Disabled    Controller Status: OK    Hardware Revision: C    Firmware Version: 5.12    Rebuild Priority: High    Expand Priority: Medium    Surface Scan Delay: 15 secs    Surface Scan Mode: Idle    Wait for Cache Room: Disabled    Surface Analysis Inconsistency Notification: Disabled    Post Prompt Timeout: 0 secs    Cache Board Present: False    Drive Write Cache: Disabled    Total Cache Size: 0 MB    SATA NCQ Supported: True

   Array: A       Interface Type: SAS       Unused Space: 0 MB       Status: OK

 

      Logical Drive: 1          Size: 279.4 GB          Fault Tolerance: RAID 0          Heads: 255          Sectors Per Track: 32          Cylinders: 65535          Strip Size: 256 KB          Full Stripe Size: 256 KB          Status: OK          Unique Identifier: 600508B1001C700145CF34E347FFAC06          Disk Name: /dev/cciss/c0d0          Mount Points: /boot 101 MB          OS Status: LOCKED          Logical Drive Label: ADC1EBE0500143801715A3301F83

      physicaldrive 1I:1:1          Port: 1I          Box: 1          Bay: 1          Status: OK          Drive Type: Data Drive          Interface Type: SAS          Size: 300 GB          Rotational Speed: 10000          Firmware Revision: HPD4          Serial Number: EB01PB90GFGL1139          Model: HP      EG0300FBDSP          Current Temperature (C): 26          Maximum Temperature (C): 34          PHY Count: 2          PHY Transfer Rate: 6.0GBPS, Unknown

   unassigned

      physicaldrive 1I:1:2          Port: 1I          Box: 1          Bay: 2          Status: OK          Drive Type: Unassigned Drive          Interface Type: SAS          Size: 300 GB          Rotational Speed: 10000          Firmware Revision: HPD4          Serial Number: EB01PB80D5G01134          Model: HP      EG0300FBDSP          Current Temperature (C): 26          Maximum Temperature (C): 48          PHY Count: 2          PHY Transfer Rate: 6.0GBPS, Unknown       This physical drive is part of a logical drive that is not supported by the current configuration. Any configuration command (e.g. logical drive creation, array expansion, etc.) or modification to the controller will result in the loss of all existing data on the disabled logical drive(s).

 

Certifiedgeek05
New Member

Re: Migrate RAID0 to RAID1 online with hpacucli

Has anyone done this successfully in the following conditions?

 

1. OS Windows 2008

2. 4 300GB with over 500GB of free space?

 

Thanks,

David

mvpel
Trusted Contributor

Re: Migrate RAID0 to RAID1 online with hpacucli

It helped me right now, today! Thanks!

 

It looks like when I upgraded the P410i firmware from 5.14 to 5.70, along with the disk firmware, it must have dropped the mirror on the logicaldrive and turned it into a RAID-0. Maybe I forgot to power-cycle it, or something.

dmelo87
New Member

Re: Migrate RAID0 to RAID1 online with hpacucli

Would it work to first change the RAID type and assigning the spare unasigned hard drive afterwards?

1) hpacucli ctrl slot=0 ld 1 modify raid=1

2) hpacucli ctrl slot=0 ld 1 add drives=allunassigned

 

This way there is no need to wait until the HDs sync on RAID 0 or to convert two HDs from RAID 0 to 1.