System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade hard drives and configure raid 5

Raoof
Regular Advisor

Upgrade hard drives and configure raid 5

Dear Expert's,

 

I have the following hardware structure and planning to updgrade the hard drives by adding more 4 hdd to the existing structure.

 

I will be really grateful and thankful to you if you can please provide me a step to add the new 4 hdd to the existing array controller, configure raid 5 and create a new logical volumne group.

 

 

sautil /dev/ciss0                       Extensive Output (in detail)

 

******************************************************************************

****                                                                      ****

****             S A U T I L   S u p p o r t   U t i l i t y              ****

****                                                                      ****

****             for the HP SmartArray RAID Controller Family             ****

****                                                                      ****

****                           version A.02.15                            ****

****                                                                      ****

****  (C) Copyright 2003-2007 Hewlett-Packard Development Company, L.P.   ****

******************************************************************************

 

---- DRIVER INFORMATION ------------------------------------------------------

 

  Driver State........................ READY

 

---- CONTROLLER INFORMATION --------------------------------------------------

 

  Controller Product Number........... P400

  Controller Product Name............. HP PCIe SmartArray P400

  Hardware Path....................... 0/6/0/0/0/0/4/0/0/0

  Serial Number....................... PAFGL0T9SYV0SR

  Device File......................... /dev/ciss0

  Hardware Revision................... 'E'

  Boot Block Revision................. 0.04

  Firmware Revision (running)......... 7.08

  Firmware Revision (in ROM).......... 7.08

  Firmware Revision (inactive)........ 7.08

  # of Logical Drives................. 1

  # of Physical Disks Configured...... 3

  # of Physical Disks Detected........ 4

  Logical Drive Rebuild Priority...... 0   (low)

  Array Capacity Expansion Priority... 0   (low)

  Auto-Fail Missing Disks at Boot..... disabled

  SCSI Transfer Detection Mode........ Auto Detect

  Controller Path Selection Method.... default

  Max # of Logical Drives............. 64  Last firmware lockup................ 0

---- ARRAY ACCELERATOR (CACHE) INFORMATION -----------------------------------

 

  Array Accelerator Board Present?.... yes

  Cache Configuration Status.......... cache enabled

  Cache Ratio......................... 25% Read / 75% Write

  Total Cache Size (MB)............... 208

    Read Cache........................ 052

    Write Cache....................... 156

    Transfer Buffer................... 000

  Battery Pack Count.................. 1

  Battery Status (pack #1)............ ok

 

---- LOGICAL DRIVE SUMMARY ---------------------------------------------------

 

       #   RAID      Size        Status  

 

       0   5        279960 MB    OK       

 

---- SAS/SATA DEVICE SUMMARY -------------------------------------------------

 

  Location  Ct Enc Bay       WWID           Type        Capacity Status

 

  internal  2I   1   8  0x5000c500235b646d  DISK       146.8 GB  OK       

  internal  2I   1   7  0x5000c500235df251  DISK       146.8 GB  OK       

  internal  2I   1   6  0x5000c500235e1449  DISK       146.8 GB  OK       

  internal  2I   1   5  0x5000c500235d1425  DISK       146.8 GB  SPARE

 

---- SAS/SATA ENCLOSURE SUMMARY ----------------------------------------------

 

  Location  Ct   Enc  Expander_count    Bay_count     SEP_count    

 

  internal  1I   1    0                 4             1             

  internal  2I   1    0                 4             1              

 

---- LOGICAL DRIVE 0 ---------------------------------------------------------

 

  Logical Drive Device File........... /dev/dsk/c0t0d0

  Fault Tolerance Mode................ RAID 5 (Distributed Data Guarding)

  Logical Drive Size.................. 279960 MB   

  Logical Drive Status................ OK       

  # of Participating Physical Disks... 3

 

 

 

  Participating Physical Disk(s)...... Ct:Enc:Bay:WWID

                                       2I:1:8:0x5000c500235b646d

                                       2I:1:7:0x5000c500235df251

                                       2I:1:6:0x5000c500235e1449

 

  Participating Spare Disk(s)......... Ct:Enc:Bay:WWID

                                       none

 

  Stripe Size......................... 64 KB

  Logical Drive Cache Status.......... cache enabled

  Configuration Signature............. 0xAC0A0442

  Media Exchange Detected?............ no

 

Awaiting for your kind reply.

Regards,

Syed

 

 

P.S. this thread has beenmoevd from Integrity Servers to HP-UX > sysadmin. - Hp Forum moderator

25 REPLIES
Torsten.
Acclaimed Contributor

Re: Upgrade hard drives and configure raid 5

What do you want to do?

 

Create a new RAID5 or extend the existing?


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raoof
Regular Advisor

Re: Upgrade hard drives and configure raid 5

Hi Torsten,

 

Thanks for the response.

 

I want to extend the existing RAID 5 with the new 4 HDD.

 

Regards

Raoof
Regular Advisor

Re: Upgrade hard drives and configure raid 5

So out of 8 drives 1 will be as spare. 7 will be for Raid 5

Raoof
Regular Advisor

Re: Upgrade hard drives and configure raid 5

Dear Torsten,

 

Below is the current stucture of the array controller after adding the new drives to it.

 

---- LOGICAL DRIVE SUMMARY ---------------------------------------------------

# RAID Size Status

0 5 279960 MB OK


---- SAS/SATA DEVICE SUMMARY -------------------------------------------------

Location Ct Enc Bay WWID Type Capacity Status

internal 1I 1 4 0x5000c5000bfe9b49 DISK 146.8 GB UNASSIGNED
internal 1I 1 3 0x5000c5000bfe76e5 DISK 146.8 GB UNASSIGNED
internal 1I 1 2 0x5000c5000c04bda5 DISK 146.8 GB UNASSIGNED
internal 1I 1 1 0x5000c5000bfe9c85 DISK 146.8 GB UNASSIGNED
internal 2I 1 8 0x5000c500235b646d DISK 146.8 GB OK
internal 2I 1 7 0x5000c500235df251 DISK 146.8 GB OK
internal 2I 1 6 0x5000c500235e1449 DISK 146.8 GB OK
internal 2I 1 5 0x5000c500235d1425 DISK 146.8 GB SPARE


---- SAS/SATA ENCLOSURE SUMMARY ----------------------------------------------

Location Ct Enc Expander_count Bay_count SEP_count

internal 1I 1 0 4 1
internal 2I 1 0 4 1


---- LOGICAL DRIVE 0 ---------------------------------------------------------

Logical Drive Device File........... /dev/dsk/c0t0d0
Fault Tolerance Mode................ RAID 5 (Distributed Data Guarding)
Logical Drive Size.................. 279960 MB
Logical Drive Status................ OK
# of Participating Physical Disks... 3

Participating Physical Disk(s)...... Ct:Enc:Bay:WWID
2I:1:8:0x5000c500235b646d
2I:1:7:0x5000c500235df251
2I:1:6:0x5000c500235e1449

Participating Spare Disk(s)......... Ct:Enc:Bay:WWID
2I:1:5:0x5000c500235d1425

Stripe Size......................... 64 KB
Logical Drive Cache Status.......... cache enabled
Configuration Signature............. 0xAC0A0442
Media Exchange Detected?............ no

 

 

Need your advice please whether we should go with extending the existing raid 5 or can create the new one with the new hdd's.

 

Can you please provide me the steps to the same regards.

 

Awaiting for your reply.

 

Thansk & Regards

Torsten.
Acclaimed Contributor

Re: Upgrade hard drives and configure raid 5

To be safe, take an ignite backup first.

 

add the disks now:

# saconfig /dev/ciss0 -E 1 -p 1l:1:1 -p 1l:1:2 -p 1l:1:3 -p 1l:1:4


Send saconfig again, please.


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raoof
Regular Advisor

Re: Upgrade hard drives and configure raid 5

 

 

Thansk for the response.

 

Below given commonds  will create the new group or will extend the existing  the Raid 5.

 

We can create or extend the raid without going offline?

 

# saconfig /dev/ciss0 -E 1 -p 1l:1:1
# saconfig /dev/ciss0 -E 1 -p 1l:1:2
# saconfig /dev/ciss0 -E 1 -p 1l:1:3
# saconfig /dev/ciss0 -E 1 -p 1l:1:4

 

Please correct me if am wrong in the below commonds.

 

Below commond : To extend the capacity of the specified logical drive up to larger capacity. It means to extend the existing raid?


saconfig /dev/cissX -E logical_drive -c capacity


Below commond: To expand the specified logical drive and others in an array by physical drive(s). It mens to create the new group?


saconfig /dev/cissX -E logical_drive -p physical_drive_id

 

Torsten.
Acclaimed Contributor

Re: Upgrade hard drives and configure raid 5

From man page:

To expand the specified logical drive and others in an array by
physical drive(s)

saconfig /dev/cissX -E <Logical drive #> -p <physical_drive_id>
[-p <physical_drive_id> ... ]


The commands will expand the RAID5, so you will have 7 disks in this RAID5.

Now you can extend the existing logical drive within this RAID5 or create a new logical drive within this RAID5 - it depends on what you want to do.

You may also create a NEW raid5 with a new logical drive.

Please let me know.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raoof
Regular Advisor

Re: Upgrade hard drives and configure raid 5

Thanks for the repsonse. Highly appreciated.

 

>The commands will expand the RAID5, so you will have 7 disks in this RAID5.

 

This sounds great.

 

>>Now you can extend the existing logical drive within this RAID5 or create a new logical drive within this RAID5 - it depends on what you want to do. You may also create a NEW raid5 with a new logical drive.

 

Here i want to let know that my actual aim is to add the new hdrives to the array controller, initialize it with the current raid configuration to utilize the new space by creating the new mount points with the required sizes.

 

Do i really need to create the new logical drive or we can use the existing one. Also please let me know whether this task can be accomplished without going offline, i mean no need to shutownd or restart the servers?

 

After initialising the new drives do i need to create new logical volume group for the new mount points or can use the same lvm group i.e. vg00

 

FYR, Current structure of the mount point as below.

 

mcmsdbl1@root@/>#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 648752 396792 62% /
/dev/vg00/lvol1 1835008 506680 1318008 28% /stand
/dev/vg00/lvol8 8912896 6133840 2773328 69% /var
/dev/vg00/lvol7 5963776 3407832 2536096 57% /usr
/dev/vg00/lvo19 62914560 42839555 18820442 69% /u01
/dev/vg00/lvol4 524288 98712 423392 19% /tmp
/dev/vg00/lvol6 9043968 7000816 2027312 78% /opt
/dev/vg00/lvol5 131072 5432 124664 4% /home
/dev/vg00/lvo20 104857600 49634688 51771613 49% /backup

 

Following is the vg details:


mcmsdbl1@root@/>#vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 11
Open LV 11
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4370
VGDA 2
PE Size (Mbytes) 64
Total PE 4360
Alloc PE 4266
Free PE 94
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 4370g
VG Max Extents 69920

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 1792
Current LE 28
Allocated PE 28
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 8192
Current LE 128
Allocated PE 128
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 16
Allocated PE 16
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 32
Allocated PE 32
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 128
Current LE 2
Allocated PE 2
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 16448
Current LE 257
Allocated PE 257
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 5824
Current LE 91
Allocated PE 91
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg00/lvo19
LV Status available/syncd
LV Size (Mbytes) 61440
Current LE 960
Allocated PE 960
Used PV 1

LV Name /dev/vg00/lvo20
LV Status available/syncd
LV Size (Mbytes) 102400
Current LE 1600
Allocated PE 1600
Used PV 1

LV Name /dev/vg00/lvo22
LV Status available/syncd
LV Size (Mbytes) 57344
Current LE 896
Allocated PE 896
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk1_p2
PV Status available
Total PE 4360
Free PE 94
Autoswitch On
Proactive Polling On



 

Thanks & Best Regards

Torsten.
Acclaimed Contributor

Re: Upgrade hard drives and configure raid 5

Here is the background:

 

You create a RAID on physical disks.

Currently you have a single logical disk within this RAID.

 

Now you can either create a new RAID on the new disks or extend the existing RAID with the new disks.

 

If you extend the RAID, you can either extend the logical drive within this RAID (this is the "disk" used for vg00) or create another logical drive within the same RAID (this would be another "disk" from OS point of view.

 

 

I would extend the existing RAID (see commands above) and then create a new logical drive, if you want to use this for a new VG.

 

Keep in mind VG00 should be only used for OS, not for data.

 

Is this what you want to do?

 

You already have 11 LVOLs, maybe you want to extend your VG00 "disk"?


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raoof
Regular Advisor

Re: Upgrade hard drives and configure raid 5

Dear Torsten,

 

Thanks for the detail explanation.

 

>>> If you extend the RAID, you can either extend the logical drive within this RAID (this is the "disk" used for vg00)

 

If we extend the logical drive used for vg00 then can we resize the existing mount points stated below highlited in red.

 

mcmsdbl1@root@/>#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 648752 396792 62% /
/dev/vg00/lvol1 1835008 506680 1318008 28% /stand
/dev/vg00/lvol8 8912896 6133840 2773328 69% /var
/dev/vg00/lvol7 5963776 3407832 2536096 57% /usr
/dev/vg00/lvo19 62914560 42839555 18820442 69% /u01
/dev/vg00/lvol4 524288 98712 423392 19% /tmp
/dev/vg00/lvol6 9043968 7000816 2027312 78% /opt
/dev/vg00/lvol5 131072 5432 124664 4% /home
/dev/vg00/lvo20 104857600 49634688 51771613 49% /backup

 

 

>>> or create another logical drive within the same RAID (this would be another "disk" from OS point of view.

 

To configure a logical drive, use the following command:
saconfig /dev/cissX -R <RAID level> [-S <Stripe size (KB)>] -p <physical drive id> [-p <physical drive id> ... ] [-s <physical drive id>] [-c <capacity (GB)>]

 

By running the below commond will it create a new logical drive as  "Logical Drive 1" within same RAID i.e. RAID 5 saconfig /dev/ciss0 -R 5 -S 64 -p 1l:1:1 -p 1I:1:2 -p 1l:1:3 -p 1l:1:4

 

I will be really thankful if you could provide me the steps to create

 

 

# saconfig /dev/ciss0 -E 1 -p 1l:1:1
# saconfig /dev/ciss0 -E 1 -p 1l:1:2
# saconfig /dev/ciss0 -E 1 -p 1l:1:3
# saconfig /dev/ciss0 -E 1 -p 1l:1:4

 

>>> I would extend the existing RAID (see commands above) and then create a new logical drive, if you want to use this for a new VG.

 

No need to restart the server after running the above commonds?

 

 

>>> You already have 22 LVOLs, maybe you want to extend your VG00 "disk"?

 

I Want to create a new mount points using the space from new disks, so this can be done in the same vg00 disk or we can create the new vg01 group and create the mount points in it. I will be really thankful if you could please provide me the steps in the same regards.

 

 

Thanks & Best Regards

Syed

 

 

Torsten.
Acclaimed Contributor

Re: Upgrade hard drives and configure raid 5

To create a new RAID:

# saconfig /dev/ciss0 -R 5 -p 1I:1:4 -p 1I:1:3 -p 1I:1:2 -p 1I:1:1

# ioscan

# saconfig /dev/ciss0


This will give you a new disk device and you can create another VG on it.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raoof
Regular Advisor

Re: Upgrade hard drives and configure raid 5

Dear Torsten,

 

Thanks for the response.

 

Current output of the below command is as follows.

 

mcmsdbl1@root@/># ioscan -fnC disk 

Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 4 0/3/0/0/0/0.1.4.0.0.0.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c3t0d1 /dev/rdsk/c3t0d1
disk 5 0/3/0/0/0/0.1.4.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c3t0d2 /dev/rdsk/c3t0d2
disk 6 0/3/0/0/0/0.1.4.0.0.0.3 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c3t0d3 /dev/rdsk/c3t0d3
disk 7 0/3/0/0/0/0.1.4.0.0.0.4 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c3t0d4 /dev/rdsk/c3t0d4
disk 8 0/3/0/0/0/0.1.4.0.0.0.5 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c3t0d5 /dev/rdsk/c3t0d5
disk 9 0/3/0/0/0/0.1.4.0.0.0.6 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c3t0d6 /dev/rdsk/c3t0d6
disk 10 0/3/0/0/0/0.1.4.0.0.0.7 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c3t0d7 /dev/rdsk/c3t0d7
disk 11 0/3/0/0/0/0.1.4.0.0.1.0 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c3t1d0 /dev/rdsk/c3t1d0
disk 12 0/3/0/0/0/0.1.4.0.0.1.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c3t1d1 /dev/rdsk/c3t1d1
disk 50 0/3/0/0/0/0.1.4.0.0.1.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c3t1d2 /dev/rdsk/c3t1d2
disk 13 0/3/0/0/0/0.1.5.0.0.0.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c5t0d1 /dev/rdsk/c5t0d1
disk 14 0/3/0/0/0/0.1.5.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c5t0d2 /dev/rdsk/c5t0d2
disk 15 0/3/0/0/0/0.1.5.0.0.0.3 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c5t0d3 /dev/rdsk/c5t0d3
disk 16 0/3/0/0/0/0.1.5.0.0.0.4 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c5t0d4 /dev/rdsk/c5t0d4
disk 17 0/3/0/0/0/0.1.5.0.0.0.5 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c5t0d5 /dev/rdsk/c5t0d5
disk 18 0/3/0/0/0/0.1.5.0.0.0.6 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c5t0d6 /dev/rdsk/c5t0d6
disk 19 0/3/0/0/0/0.1.5.0.0.0.7 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c5t0d7 /dev/rdsk/c5t0d7
disk 20 0/3/0/0/0/0.1.5.0.0.1.0 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c5t1d0 /dev/rdsk/c5t1d0
disk 21 0/3/0/0/0/0.1.5.0.0.1.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c5t1d1 /dev/rdsk/c5t1d1
disk 53 0/3/0/0/0/0.1.5.0.0.1.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c5t1d2 /dev/rdsk/c5t1d2
disk 0 0/6/0/0/0/0/4/0/0/0.0.0 sdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s2 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s2 /dev/rdsk/c0t0d0s3
disk 22 0/7/0/0/0/0.1.4.0.0.0.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c7t0d1 /dev/rdsk/c7t0d1
disk 23 0/7/0/0/0/0.1.4.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c7t0d2 /dev/rdsk/c7t0d2
disk 24 0/7/0/0/0/0.1.4.0.0.0.3 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c7t0d3 /dev/rdsk/c7t0d3
disk 25 0/7/0/0/0/0.1.4.0.0.0.4 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c7t0d4 /dev/rdsk/c7t0d4
disk 26 0/7/0/0/0/0.1.4.0.0.0.5 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c7t0d5 /dev/rdsk/c7t0d5
disk 27 0/7/0/0/0/0.1.4.0.0.0.6 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c7t0d6 /dev/rdsk/c7t0d6
disk 28 0/7/0/0/0/0.1.4.0.0.0.7 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c7t0d7 /dev/rdsk/c7t0d7
disk 29 0/7/0/0/0/0.1.4.0.0.1.0 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c7t1d0 /dev/rdsk/c7t1d0
disk 30 0/7/0/0/0/0.1.4.0.0.1.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c7t1d1 /dev/rdsk/c7t1d1
disk 51 0/7/0/0/0/0.1.4.0.0.1.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c7t1d2 /dev/rdsk/c7t1d2
disk 31 0/7/0/0/0/0.1.5.0.0.0.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c9t0d1 /dev/rdsk/c9t0d1
disk 32 0/7/0/0/0/0.1.5.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c9t0d2 /dev/rdsk/c9t0d2
disk 33 0/7/0/0/0/0.1.5.0.0.0.3 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c9t0d3 /dev/rdsk/c9t0d3
disk 34 0/7/0/0/0/0.1.5.0.0.0.4 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c9t0d4 /dev/rdsk/c9t0d4
disk 35 0/7/0/0/0/0.1.5.0.0.0.5 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c9t0d5 /dev/rdsk/c9t0d5
disk 36 0/7/0/0/0/0.1.5.0.0.0.6 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c9t0d6 /dev/rdsk/c9t0d6
disk 37 0/7/0/0/0/0.1.5.0.0.0.7 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c9t0d7 /dev/rdsk/c9t0d7
disk 38 0/7/0/0/0/0.1.5.0.0.1.0 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c9t1d0 /dev/rdsk/c9t1d0
disk 39 0/7/0/0/0/0.1.5.0.0.1.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c9t1d1 /dev/rdsk/c9t1d1
disk 54 0/7/0/0/0/0.1.5.0.0.1.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c9t1d2 /dev/rdsk/c9t1d2
disk 2 255/1/0.0.0 sdisk CLAIMED DEVICE Optiarc DVD RW AD-5590A
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0

 

 

After creating a new RAID using below command:

# saconfig /dev/ciss0 -R 5 -p 1I:1:4 -p 1I:1:3 -p 1I:1:2 -p 1I:1:1

# ioscan

# saconfig /dev/ciss0

  

Will go with the following procedure for creating the volume group and logical volume.

 

“Please correct me if am wrong here”.

 

mcmsdbl1@root@/dev/vg00>#vgdisplay -v

--- Volume groups ---

VG Name                     /dev/vg00

VG Write Access             read/write    

VG Status                   available                 

Max LV                      255   

Cur LV                      11    

Open LV                     11    

Max PV                      16    

Cur PV                      1     

Act PV                      1     

Max PE per PV               4370         

VGDA                        2  

PE Size (Mbytes)            64             

Total PE                    4360   

Alloc PE                    4266   

Free PE                     94     

Total PVG                   0       

Total Spare PVs             0             

Total Spare PVs in use      0                    

VG Version                  1.0      

VG Max Size                 4370g     

VG Max Extents              69920        

 

   --- Logical volumes ---

   LV Name                     /dev/vg00/lvol1

   LV Status                   available/syncd          

   LV Size (Mbytes)            1792           

   Current LE                  28       

   Allocated PE                28         

   Used PV                     1       (rest I have removed from here)

 

 

   --- Physical volumes ---

   PV Name                     /dev/disk/disk1_p2

   PV Status                   available               

   Total PE                    4360   

   Free PE                     94     

   Autoswitch                  On       

   Proactive Polling           On   

 

 

mcmsdbl1@root@/dev/vg00>#bdf

Filesystem          kbytes    used   avail %used Mounted on

/dev/vg00/lvol3    1048576  648888  396656   62% /

/dev/vg00/lvol1    1835008  506680 1318008   28% /stand

/dev/vg00/lvol8    8912896 6141712 2765504   69% /var

/dev/vg00/lvol7    5963776 3407832 2536096   57% /usr

/dev/vg00/lvo19    62914560 41351019 20244409   67% /u01

/dev/vg00/lvol4     524288   98712  423392   19% /tmp

/dev/vg00/lvol6    9043968 7001184 2026944   78% /opt

/dev/vg00/lvol5     131072    5432  124664    4% /home

/dev/vg00/lvo20    104857600 49850664 51569135   49% /backup

 

 

1) Initialize the disks using pvcreate.

 

 # pvcreate –f /dev/rdsk/cXtXdX /dev/rdsk/cXtXdX  /dev/rdsk/cXtXdX  --------à Here I have to specify 3 disks or 4 and the disks details will get after creating RAID right? Using ioscan -fnC disk 

 

And what should be the PV name as I see From the output of vgdisplay PV name is defined as  “/dev/disk/disk1_p2”.

 

2) Create a directory for the volume group

 

 # mkdir –p /dev/vg01

# chown root:root /dev/vg01

# chmod 755 /dev/vg01

 

3) Create device file named “group”

 

 # mknod  /dev/vg01/group c 64 0x010000

 

4) Create a VG

 

# vgcreate -s <PE Size>) -e <max PE per PV>

# vgcreate –s 64 –e 6000 /dev/vg01 /dev/dsk/cXtXdX  /dev/dsk/cXtXdX  /dev/dsk/ cXtXdX  --------à Here I have to specify 3 disks or 4 and the disks details will get after creating RAID right? Using ioscan -fnC disk 

Volume group "/dev/vg01" has been successfully created.

 Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

 

5) Create LV with 300GB size (To store backup files e.g. expdp dump file)

 

 # lvcreate -n lv01 -L 307200 vg01

 Warning: rounding up logical volume size to extent boundary at size "xxxx" MB.

 Logical volume "/dev/vg01/lv01" has been successfully created with

 character device "/dev/vg01/rlv01".

 Logical volume "/dev/vg01/lv01" has been successfully extended.

 Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

 

6) Create file system with largefiles enabled

 

 #newfs -F vxfs -o largefiles /dev/vg01/rlv01

 

7) Create mount point and mount the file system.

 

 #mkdir /dbbackup

 #mount /dev/vg01/lv01 /dbbackup

 

 

Awaiting for your valuable repsonse.

 

Thanks & Best Regards,

Syed

 

 

Torsten.
Acclaimed Contributor

Re: Upgrade hard drives and configure raid 5

If you created the array, please attach the ioscan and saconfig output to confirm the new logical drive is there.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raoof
Regular Advisor

Re: Upgrade hard drives and configure raid 5

No i did not created the array yet. I just want to be sure about the commands and steps to proceed further.

Torsten.
Acclaimed Contributor

Re: Upgrade hard drives and configure raid 5

Since you are running 11.31 you should consider to create a LVM 2.2 volume group!

 

This will give you more flexibility and features.

 

The LVM admin guide will tell you how to do this (or do "man vgcreate").


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raoof
Regular Advisor

Re: Upgrade hard drives and configure raid 5

 

---------- PHYSICAL DRIVES ----------

Location Ct Enc Bay WWID Size Status

Internal 1I 1 4 0x5000c5000bfe9b49 146.8 GB UNASSIGNED
Internal 1I 1 3 0x5000c5000bfe76e5 146.8 GB UNASSIGNED
Internal 1I 1 2 0x5000c5000c04bda5 146.8 GB UNASSIGNED
Internal 1I 1 1 0x5000c5000bfe9c85 146.8 GB UNASSIGNED
Internal 2I 1 8 0x5000c500235b646d 146.8 GB OK
Internal 2I 1 7 0x5000c500235df251 146.8 GB OK
Internal 2I 1 6 0x5000c500235e1449 146.8 GB OK
Internal 2I 1 5 0x5000c500235d1425 146.8 GB SPARE

 

From the below output

 

 mcmsdbl1@root@/>#ioscan -f -n -N -C disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 1 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/disk/disk1 /dev/disk/disk1_p1 /dev/disk/disk1_p2 /dev/disk/disk1_p3 /dev/rdisk/disk1 /dev/rdisk/disk1_p1 /dev/rdisk/disk1_p2 /dev/rdisk/disk1_p3
disk 3 64000/0xfa00/0x2 esdisk CLAIMED DEVICE Optiarc DVD RW AD-5590A
/dev/disk/disk3 /dev/rdisk/disk3
disk 40 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP HSV300
/dev/disk/disk40 /dev/rdisk/disk40
disk 41 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP HSV300
/dev/disk/disk41 /dev/rdisk/disk41
disk 42 64000/0xfa00/0x9 esdisk CLAIMED DEVICE HP HSV300
/dev/disk/disk42 /dev/rdisk/disk42
disk 43 64000/0xfa00/0xa esdisk CLAIMED DEVICE HP HSV300
/dev/disk/disk43 /dev/rdisk/disk43
disk 44 64000/0xfa00/0xb esdisk CLAIMED DEVICE HP HSV300
/dev/disk/disk44 /dev/rdisk/disk44
disk 45 64000/0xfa00/0xc esdisk CLAIMED DEVICE HP HSV300
/dev/disk/disk45 /dev/rdisk/disk45
disk 46 64000/0xfa00/0xd esdisk CLAIMED DEVICE HP HSV300
/dev/disk/disk46 /dev/rdisk/disk46
disk 47 64000/0xfa00/0xe esdisk CLAIMED DEVICE HP HSV300
/dev/disk/disk47 /dev/rdisk/disk47
disk 48 64000/0xfa00/0xf esdisk CLAIMED DEVICE HP HSV300
/dev/disk/disk48 /dev/rdisk/disk48
disk 52 64000/0xfa00/0x15 esdisk CLAIMED DEVICE HP HSV300
/dev/disk/disk52 /dev/rdisk/disk52

 

which disk have to use while creating the vg version 2.2.

 

Create a volume group version 2.2, named /dev/vg01, with unshared unit
of 4096 kilobytes, extent size of 8 megabytes and maximum total size
of 4 terabytes:

 

vgcreate -V 2.2 -S 4t -s 8 -U 4096 /dev/vg01 /dev/disk/?????

 

 

Torsten.
Acclaimed Contributor

Re: Upgrade hard drives and configure raid 5

no device file yet until you create the raid

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raoof
Regular Advisor

Re: Upgrade hard drives and configure raid 5

Thanks for the response.

 

Before proceeding further for creating a new RAID, i would like to ask one thing that  will there be any impact on the other 4 disks i.e. 2I:5 6 7 8 ?  by creating a new RAID beacuse this server is a production database server.

 

---------- PHYSICAL DRIVES ----------

Location Ct Enc Bay WWID Size Status

Internal 1I 1 4 0x5000c5000bfe9b49 146.8 GB UNASSIGNED
Internal 1I 1 3 0x5000c5000bfe76e5 146.8 GB UNASSIGNED
Internal 1I 1 2 0x5000c5000c04bda5 146.8 GB UNASSIGNED
Internal 1I 1 1 0x5000c5000bfe9c85 146.8 GB UNASSIGNED
Internal 2I 1 8 0x5000c500235b646d 146.8 GB OK 
Internal 2I 1 7 0x5000c500235df251 146.8 GB OK 
Internal 2I 1 6 0x5000c500235e1449 146.8 GB OK 
Internal 2I 1 5 0x5000c500235d1425 146.8 GB SPARE

 

---------- LOGICAL DRIVE 0 ----------

Device File = c0t0d0
RAID Level = 5
Size = 279960 MB
Stripe Size = 64 KB
Status = OK

 

hope their status will not change from OK to UNASSIGNED. Reason of asking this question is just because i have gone through one document where i got to see the different outputs and details in it.

 

FYR,

 

HP Smart Array SAS Controllers for Integrity Servers Support Guide HP-UX 11i v2 and 11i v3

 

# saconfig /dev/ciss5

******************** SmartArray RAID Controller /dev/ciss5 ********************
Auto-Fail Missing Disks at Boot = enabled
Cache Configuration Status = cache enabled
Cache Ratio = 50% Read / 50% Write
---------- PHYSICAL DRIVES ----------
Location Ct Enc Bay WWID Size Status
Internal 1I 1 12 0x500000e01117c732 36.4 GB OK
Internal 1I 1 11 0x500000e01115c352 36.4 GB OK
Internal 1I 1 10 0x5000c5000032b839 36.4 GB OK
Internal 1I 1 9 0x5000c5000030b0c5 36.4 GB OK
Internal 2I 1 16 0x500000e011213482 36.4 GB OK
Internal 2I 1 15 0x5000c500002084c9 73.4 GB OK
Internal 2I 1 14 0x5000c5000030b9c9 36.4 GB UNASSIGNED
The saconfig configuration CLI 45
Internal 2I 1 13 0x500000e01118a7a2 36.4 GB UNASSIGNED
---------- LOGICAL DRIVE 0 ----------
Device File = c5t0d0
RAID Level = 5  ============> if am not wrong RAID 5 is (Drives with Parity) --- Minimum 3 Drives
Size = 15360 MB   ======> so out of 6 one will be as of Parity, then for remaining 5, is this will be the size???
Stripe Size = 64 KB
Status = OK
Participating Physical Drive(s):
Ct Enc Bay WWID
1I 1 12 0x500000e01117c732
1I 1 11 0x500000e01115c352
1I 1 10 0x5000c5000032b839
1I 1 9 0x5000c5000030b0c5
2I 1 16 0x500000e011213482
2I 1 15 0x5000c500002084c9
Participating Spare Drive(s):

 

 

and below once RAID 1 was created on the newly added 2 drives, other's drives status converted to UNASSIGNED from OK ( Really am very confused, please help me)

 

# saconfig /dev/ciss5 -R 1 -S 64 -p 2I:1:13 -p 2I:1:14 -s 2I:1:15
Logical drive 0 created
Rebuild Priority is set to High
Use the saconfig /dev/cissX command to confirm the configuration:
# saconfig /dev/ciss5
******************** SmartArray RAID Controller /dev/ciss5 ********************
Auto-Fail Missing Disks at Boot = enabled
Cache Configuration Status = cache enabled
Cache Ratio = 25% Read / 75% Write
---------- PHYSICAL DRIVES ----------
Location Ct Enc Bay WWID Size Status
Internal 1I 1 12 0x500000e01117c732 36.4 GB UNASSIGNED
Internal 1I 1 11 0x500000e01115c352 36.4 GB UNASSIGNED
Internal 1I 1 10 0x5000c5000032b839 36.4 GB UNASSIGNED
Internal 1I 1 9 0x5000c5000030b0c5 36.4 GB UNASSIGNED
Internal 2I 1 16 0x500000e011213482 36.4 GB UNASSIGNED
Internal 2I 1 15 0x5000c500002084c9 73.4 GB SPARE
Internal 2I 1 14 0x5000c5000030b9c9 36.4 GB OK
Internal 2I 1 13 0x500000e01118a7a2 36.4 GB OK
---------- LOGICAL DRIVE 0 ----------
Device File = c5t0d0
RAID Level = 1+0
Size = 34700 MB
Stripe Size = 64 KB
Status = OK
Participating Physical Drive(s):
Ct Enc Bay WWID
2I 1 14 0x5000c5000030b9c9
2I 1 13 0x500000e01118a7a2
Participating Spare Drive(s):
Ct Enc Bay WWID
2I 1 15 0x5000c500002084c9

 

Please help me to proceed further with the below procedure.

 

To create a new RAID:

# saconfig /dev/ciss0 -R 5 -p 1I:1:4 -p 1I:1:3 -p 1I:1:2 -p 1I:1:1

# ioscan

# saconfig /dev/ciss0

This will give you a new disk device and you can create another VG on it.

 

 

Thanks & Best Regards,

Syed

Torsten.
Acclaimed Contributor

Re: Upgrade hard drives and configure raid 5

these are prepared examples in the manual, dont worry!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raoof
Regular Advisor

Re: Upgrade hard drives and configure raid 5

Thank you for your usual support and great assistance torsten.

 

I want to let you know that, I would like to go with your previous advice of expanding the existing RAID5 and creating a new logical drive within this RAID5. I have come to this conclusion by doing some rough calculation based on the below two scenarios.

 

1) Expanding the Existing RAID5:

 

Expanding the existing RAID5 with the new 4 physical drives will give us 7 drives in total and 1 as spare, out of which 6 will be in use (of size around 876 GB).

 

2) Creating the new RAID5:

 

But if I go with creating a new RAID5 with the new 4 physical drives out of which 3 will be in use of size around 438 GB and the size of existing RAID5 with 3 drives out of which 2 is in use of size around 292 GB, gives me the total space of around 730 GB in the controller.

 

It means based on above rough calculation there will be a difference of around 100 GB of space in the controller.

 

So, I would like to expand the current RAID5 and then create a new logical drive as ‘1’ in it (don’t want to extend the existing logical drive i.e. ‘0’).

 

Torsten, Below commands will expand the RAID5 and will it also create a new logical drive named as “Logical Drive 1” or I have to create the new logical drive in another statement?


# saconfig /dev/ciss0 -E 1 -p 1l:1:1
# saconfig /dev/ciss0 -E 1 -p 1l:1:2
# saconfig /dev/ciss0 -E 1 -p 1l:1:3
# saconfig /dev/ciss0 -E 1 -p 1l:1:4

 

Thank you again for your support.

 

Waiting for your kind reply to proceed further with your given valuable advices.

 

Best Regards,

Syed.

Torsten.
Acclaimed Contributor

Re: Upgrade hard drives and configure raid 5

Ok, so do now

 

# saconfig /dev/ciss0 -E 1 -p 1I:1:1 -p 1I:1:2 -p 1I:1:3 -p 1I:1:4

 

This will extend the existing arrray and take several hours.

 

Check the status again with saconfig/sautil.


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raoof
Regular Advisor

Re: Upgrade hard drives and configure raid 5

Thanks a lot torsten for the response.

 

I can run this below cammond now in the peak hours (8 AM to 4 PM is working hours - Saudi Arabia)? or can do it after working hours like around 4:30 or 5:00 PM. Just for safe side as it is a prodution server.

 

# saconfig /dev/ciss0 -E 1 -p 1I:1:1 -p 1I:1:2 -p 1I:1:3 -p 1I:1:4

 

Regards,

Syed

 

Torsten.
Acclaimed Contributor

Re: Upgrade hard drives and configure raid 5

See current values:


Array Capacity Expansion Priority... 0 (low)

 

(IMHO safe to run the command now)

 

It is adjustable:

saconfig /dev/cissX-e [low|medium|high]


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raoof
Regular Advisor

Re: Upgrade hard drives and configure raid 5

Array Capacity Expansion Priority... 0 (low)

 

What should be the value of it? where we can check the value of it. Do we need to set it to high before extending the raid.