cancel
Showing results for 
Search instead for 
Did you mean: 

Storage Management In HP-UX

 
SOLVED
Go to solution
Raoof
Regular Advisor

Storage Management In HP-UX

Dear Experts,


Server details as follows:  ia64 hp server rx3600 and hp eva4000 san storage


Please help me out as am a newbie want to know about the functionality or the management of these below logical drives or the disk space available in local server and san storage.


1)From the below result logical drive size shows 279960 MB equals to 273.39 GB, from where this space has been calculated? as the local server has 4 disk each of 146.8 which in total around 587.2 GB.


Logical Drive Summary:

---- 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


---- 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


main concern is about the below file system in the server, which space has been used for the below partitions created in the server, is it either from logical drive space i.e. 273.39 GB or from those 4 disk 587.2 GB.


File System layout

    LVM Device file            mount point     size  fs type
    /dev/vg00:                                            
    /dev/vg00/lvol1            /stand          1792  vxfs
    /dev/vg00/lvol2            swap            8192       
    /dev/vg00/lvol3            /               1024  vxfs
    /dev/vg00/lvol4            /tmp            512   vxfs
    /dev/vg00/lvol5            /home           128   vxfs
    /dev/vg00/lvol6            /opt            8832  vxfs
    /dev/vg00/lvol7            /usr            5824  vxfs
    /dev/vg00/lvol8            /var            8704  vxfs
    /dev/vg00/lvo19            /u01            61440 vxfs
    /dev/vg00/lvo20            /backup         61440 vxfs
    /dev/vg00/lvo21                            12288 unused ------>  what this space?
    /dev/vg00                  unallocated     108864     -----------> what about this space?can we use this?

2)Below the detail of swap space


Check for memory and swap

             Kb      Kb      Kb   PCT  START/      Kb

TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME

dev     8388608 1890012 6498596   23%       0       -    1  /dev/vg00/lvol2

reserve       - 6498576 -6498576

memory  15926564 10027756 5898808   63%


Swap configuration
    type       size  priority  device/location
    dev        8192     1      /dev/vg00/lvol2


If we want to increase the size of swap then upto how much of size it is recommended and from where we can take the space to increase the size of swap.


3)About SAN Storage, below are some details.


SQL> select name, state, type, total_mb, free_mb from v$asm_diskgroup;

NAME                           STATE       TYPE     TOTAL_MB    FREE_MB
------------------------------ ----------- ------ ---------- ----------
DATA                           CONNECTED   EXTERN     409600     305429
FLASH_RECOVERY MOUNTED     EXTERN     409600     226385


select name, path, group_number, TOTAL_MB, FREE_MB from v$asm_disk order by 3;


NAME                                        PATH                 GROUP_NUMBER   TOTAL_MB    FREE_MB
--------------------                         -------------------- ------------                     ----------           ----------
                                                 /dev/rdisk/disk43               0                            0          0
                                                 /dev/rdisk/disk42               0                            0          0
                                                 /dev/rdisk/disk44               0                            0          0
DATA_0001                            /dev/rdisk/disk46               1                     204800     152714
DATA_0000                            /dev/rdisk/disk45               1                     204800     152715
FLASH_RECOVERY_0000  /dev/rdisk/disk47               2                    204800     110890
FLASH_RECOVERY_0001  /dev/rdisk/disk48               2                    204800     110855


-How i can check the total space available in the san storage, how much the space has been used and how much is left. From the above results it shows that 2 partition each of 200GB has been created for database files, 2 for fra, and other 5 each of 4Gb for voting disk and ocr. Here i want to know why 2 partitions has been created for dbfiles, is not possible to make one part with 400GB instead of 2 virtual partion which anyhow showing as one part only as a DATA.

Will be really grateful and thankful if you could please help me out to get the clear idea about the storage stucture of local server and of san.


Awaiting for your kind reply.

Best Regards

7 REPLIES
Henry Fauni
Valued Contributor

Re: Storage Management In HP-UX

1)From the below result logical drive size shows 279960 MB equals to 273.39 GB, from where this space has been calculated? as the local server has 4 disk each of 146.8 which in total around 587.2 GB.

 

-> From the report you provided, it looks like 1 of 4 146GB disks is reserved as a "spare", then the remaining 3 are configured as RAID5. RAID5 uses 1 of 3 disks as parity, so that explains roughly 292GB useable.

/dev/vg00/lvo21                            12288 unused ------>  what this space?

 

-> Does above show up in bdf?


/dev/vg00                  unallocated     108864     -----------> what about this space?can we use this?

 

-> Yes, you can use this space, but for "swap", it has to be contiguous.


Please provide:

# bdf

# cat /etc/fstab

# ioscan -fun

# ioscan -funC disk

# vgdisplay -v
 

Raoof
Regular Advisor

Re: Storage Management In HP-UX

Dear Henry,

 

Thanks for prompt reply, please find attached the result of all requested cammonds.

 

 

Awaiting for your valuable reply.

 

Regards

Torsten.
Acclaimed Contributor
Solution

Re: Storage Management In HP-UX

Your 4 internal disks are connected to a P400 smartarray controller:

 

ext_bus     0  0/6/0/0/0/0/4/0/0/0        ciss           CLAIMED     INTERFACE    PCIe SAS SmartArray P400 RAID Controller
                             /dev/ciss0

 

you can get more information by running

 

# saconfig /dev/ciss0

 

# sautil /dev/ciss0

 

You have a RAID5 based on 4 disks, 1 as spare, so you have round about the capacity of 2*146GB - this is what you have.

 

 

From the vgdisplay output you see

 

PE Size (Mbytes)            64             

 

Free PE                     1701   

 

so you have 108864MB free in vg00.

 

 

 

Do the same calculation for the EVA based VGs.

 

 

 

 


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: Storage Management In HP-UX

Dear Torsten,

 

Thanks for the reply.

-- Do the same calculation for the EVA based VGs.

As am a newbie will be really grateful if you could please let me know the cammonds with which i can gather info from EVA based vgs.

 

And from you below detail it shows that i have around 106GB in the local server, so can i use that space for swap area as you see the size of swap area is 8Gb, need to double the size of swap, can i? if yes then what will be procedure to do so.

 

From the vgdisplay output you see

 

PE Size (Mbytes)            64             

 

Free PE                     1701

 

so you have 108864MB free in vg00.

 

 

---You have a RAID5 based on 4 disks, 1 as spare, so you have round about the capacity of 2*146GB - this is what you have.

 

So it means the sapce used for the below partitions is from those 2 disks 2*146GB = 292

 

Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3    1048576  267728  774840   26% /
/dev/vg00/lvol1    1835008  342792 1480632   19% /stand
/dev/vg00/lvol8    8912896 6960920 1940248   78% /var
/dev/vg00/lvol7    5963776 3024968 2915896   51% /usr
/dev/vg00/lvo19    62914560 32460169 28551121   53% /u01
/dev/vg00/lvol4     524288   40696  480968    8% /tmp
/dev/vg00/lvol6    9043968 6942136 2085536   77% /opt
/dev/vg00/lvol5     131072    5432  124664    4% /home
/dev/vg00/lvo20    62914560 46059925 15801354   74% /backup


 

 

 

 

Raoof
Regular Advisor

Re: Storage Management In HP-UX

Also from the below details gathered from san storage using amcmd and crs cammonds

 

ASMCMD> lsdg
State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Name
MOUNTED  EXTERN  N        1024   4096  1048576    409600   305429                0          305429              0  DATA/
MOUNTED  EXTERN  N        1024   4096  1048576    409600   221460                0          221460              0  FLASH_RECOVERY/

 


$ ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          2
         Total space (kbytes)     :    4193836
         Used space (kbytes)      :       3864
         Available space (kbytes) :    4189972
         ID                       :  643548444
         Device/File Name         : /dev/rdisk/disk40
                                    Device/File integrity check succeeded
         Device/File Name         : /dev/rdisk/disk41
                                    Device/File integrity check succeeded

         Cluster registry integrity check succeeded

 

$ crsctl query css votedisk
 0.     0    /dev/rdisk/disk42
 1.     0    /dev/rdisk/disk43
 2.     0    /dev/rdisk/disk44
Located 3 voting disk(s).

 

From the eva it displays 5 disks each of 4GB allotted for voting disk and crs , other 4 disks each of 200GB, 2 disk for data and 2 disks for fra, which in total size is around 820Gb, but i want to know how much total storage size exist in the san, from which this 820 has been allotted.

 

 

Regards

 

Torsten.
Acclaimed Contributor

Re: Storage Management In HP-UX

Your vg00 has

PE Size (Mbytes) 64

Total PE 4360
Alloc PE 2659

170176MB allocated
279040MB total

There is also some space used for boot and diagnostics partition on the disks, not controlled by LVM.

Do you have other VG's configured?

Try

# vgdisplay -v

# vxdisk list

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!   
Torsten.
Acclaimed Contributor

Re: Storage Management In HP-UX

For EVA details you should use command view to get the detailed information.

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!