Operating System - HP-UX
1820782 Members
3764 Online
109627 Solutions
New Discussion юеВ

HP RP5700 SAN Storagetek D240 mounting

 
SOLVED
Go to solution
Surizan Othman
Frequent Advisor

HP RP5700 SAN Storagetek D240 mounting

Hi,

I've been using Storagetek D240 a SAN unit mounting to HP RP5700. It almost out of space and it need a hard disk expansion. It store all the Oracle data. If I expand the SAN hard disk, do I need to configure my HP-UX or hard disk expansion will be change automatically. It mounted on /u01 and it's filesystem was /dev/vg01/lvol9.
14 REPLIES 14
Khairy
Esteemed Contributor

Re: HP RP5700 SAN Storagetek D240 mounting

hi suriza,

adding more disk or expand your storage will require you to perform minor volume group configuration.

Assuming its under vg01.
When you get your d240 expand, make sure the engineer configure the lun to be same size with the ones you have. You can check your lun (disk) size with the following command:

# vgdisplay -v
(check for physical volumes, let say its c1t1d0)
You can check the size with
# diskinfo /dev/rdsk/c1t1d0

Get a copy of ioscan before adding new disk to D240.
# ioscan -funC disk > /tmp/ioscan-funC-disk.txt

When the engineer configure the newly additional disk and assign the luns accordingly, scan the disks.

# ioscan -fnC disk

You shall see additional new disks. Compare it with ioscan output earlier (in /tmp/ioscan-funC-disk.txt) Then, init the disk and expand vg01 to include the new disk.
# pvcreate -f /dev/rdsk/c#t#d#
# vgextend vg01 /dev/dsk/c#t#d#

Unmount the filesystem
# umount /u01

Now, extend your logical volume size. Assuming your existing is 20GB, and u want to add 10Gb more.
# lvextend -L 30720M /dev/vg01

Increase the filesystem and mount it back.
# extendfs -F vxfs /dev/vg01/rlvol9
# mount /u01

It should show the new size.

good luck!

ps: dont forget about the points, thanks!



Surizan Othman
Frequent Advisor

Re: HP RP5700 SAN Storagetek D240 mounting

Hi Khairy,

Thanks for your help. But after I check with my finance, we purchase a 6 X 73GB 10K Fibre drive (F736). When I run command bdf it stated only 140GB mounted on /u01 and it's filesystems /dev/vg01/lvol9. We suppose to have 438GB space on SAN. Where's the rest go. In /dev there is 3 folders vg00, vg01 and vg02.
This is what have been display when I run command bdf.
filesystems mounted on
/dev/vg00/lvol3 /
/dev/vg00/lvol1 /stand
/dev/vg00/lvol8 /var
/dev/vg00/lvol7 /usr
/dev/vg01/lvol9 /u01
/dev/vg00/lvol4 /tmp
/dev/vg00/lvol6 /opt
/dev/vg00/lvol5 /home

If I have to expand the SAN hard disk. Can I use a procedure like stated in your previous reply.

Thanks
Khairy
Esteemed Contributor

Re: HP RP5700 SAN Storagetek D240 mounting

hi suriza,

you have to understand, most fibrechannel storage are raid capabilities.

In this case, i'm not sure how the STK engineer configured the storage for you. He/She may had it configured as raid-1 and raid 5 groups and divided those groups to severals luns. From yr system, you will see these luns as `individual disks`.

configured all disks as raid 1 will have you 50% of the entire disk capacity. Raid 5 will allow you to have at least more than 75% of the entire disk capacity. This is due to raid 5 need at least 1 disk for parity. You also have to check whether yr storage is configured with spare disk.

In this case, before we go any futher, it worth to check your current vg configuration.

please post the following output:
# vgdisplay -v
# ioscan -funC disk

Rgds
Surizan Othman
Frequent Advisor

Re: HP RP5700 SAN Storagetek D240 mounting

hi Khairy,


Please find attachment for my vgdisplay and iosan output command

Thanks
Khairy
Esteemed Contributor

Re: HP RP5700 SAN Storagetek D240 mounting

looks like you still have a lot of unused disks. That's good.

it seems vg01/vg02 have pvlinks for dual path. That means c8t0d0=c11t0d0,c8t0d1=c11t0d1 and so on.....

in this case, you could easily vgextend your vg01. But pls make sure with your colleague or dba that the other D240 disks c8t0d2 or others are not being used by any apps/database.

# pvcreate -f /dev/rdsk/c11t0d2
# vgextend /dev/vg01 /dev/dsk/c11t0d2

Then perform lvextend and extendfs as i gave earlier or use fsadm to increase it online.

When complete, extend vg01 to include the alternate path for c11t0d2. To confirm c11t0d2 is the same c8t0d2:

# echo "0x2008?4D" | adb /dev/dsk/c11t0d2
# echo "0x2008?4D" | adb /dev/dsk/c8t0d2

If both disks are the same lun, both devices should show the same output. If they do, then do:
# vgextend /dev/vg01 /dev/dsk/c8t0d2

You can confirm the pvlink is set accordinly in:
# vgdisplay -v vg01 | more

Scroll down for physical volumes, you should see c8t0d2 is set as Alternate link.

Good luck!
Surizan Othman
Frequent Advisor

Re: HP RP5700 SAN Storagetek D240 mounting

Last question

How my oracle data inside. Is it intact or it will tamper. To play safe, I should backup all the data inside but I need to confirm the data is intact, Thanks
Nair1980
Frequent Advisor

Re: HP RP5700 SAN Storagetek D240 mounting

Hi

In general if you are adding disk to any VG or extending file system did not touch the data inside .. If you have online JFS installed in your server, you can do this on line also.

I am giving 2 places , where you need to take care while doing this change to avoid any data loss

1 ├п   while using pvcreate ..Make sure you are applying this command on a new disk only.

2 ├п   While giving fsadm command, make sure the size should be the new file system space . (if you provide a wrong input i.e the size to extend then it may cause a file system shrink and will cause a data loss)

NAir
Khairy
Esteemed Contributor
Solution

Re: HP RP5700 SAN Storagetek D240 mounting

hi surizan,

yes. The data will be intact. I assume you refering your data in /u01, right? Increasing logical volume and filesystem size wont affect your files in it.

A good backup is always a good precautions steps before you do anything to system.

Rgds
Khairy
Esteemed Contributor

Re: HP RP5700 SAN Storagetek D240 mounting

by the way, i dont think your server model is rp5700.

execute the following and you will find your server model:

# echo "map selall information;wait infolog quit ok" | cstm | grep "Model" | head -3



Surizan Othman
Frequent Advisor

Re: HP RP5700 SAN Storagetek D240 mounting

command unsuccessful

cstm not found
Nair1980
Frequent Advisor

Re: HP RP5700 SAN Storagetek D240 mounting

Hi

If you are looking for just model name

I hope this command will solve the purpose

#model

Nair
Surizan Othman
Frequent Advisor

Re: HP RP5700 SAN Storagetek D240 mounting

I'm just curious. We bought Storagetek D240 SAN with 6 X 73GB configure as RAID 5. As my understanding, it will left us 5 usable hard disk with total usable disk space was 339.91GB. But after I'm spoke with my vendor who setup this. Their calculation is differ from my understanding (5X73GB)/3 = 120GB. Why Raid 5 need to be divide by 3. It just wasting a hard disk anyway. From what Khairy said, my SAN still have a lot of unused disk. But my vendor said, I used almost of disk space of 120GB. I don't have any idea to buy a new hard disk or just call HP support for hard disk expansion. What do you say guys. Thanks
Nair1980
Frequent Advisor

Re: HP RP5700 SAN Storagetek D240 mounting

Hi

As per my understanding about RAID5 you should get 5 disk spaces as available space after configuring the array.


Considering that you did not keep any hot spare disk

Nair
Khairy
Esteemed Contributor

Re: HP RP5700 SAN Storagetek D240 mounting

hi surizan,

>>> cstm command not found
it seems onlineDiag not installed.

I've configured several IBM/HP/Compaq fibrechannel before but not storagetek.

Not sure why the engineer did that or maybe its just the way storagetek handle the disks.

But from vgdisplay output and fstab, it clearly /dev/vg02/lvol9 size is almost 140GB.

So i dont think each lun is 120GB each.

Execute this command to check sizes for the rest of disks.

# diskinfo /dev/rdsk/c11t0d2

Perform the same command for the rest of c11t0d3-d15.

You will see the sizes in 512K. Multiply accordingly to get the exact size.

Anyway, if no other server is currently using/sharing the san storage. You can safely use the remaining disks.
# pvcreate /dev/rdsk/c11t0d2
# pvcreate /dev/rdsk/c11t0d3
.
.
and so on.

Notice the command without -f. If its been used by other hpux system, it will post error the disks is been used by other system.

If nothing appears and no other non-hpux server is sharing the storage, then you can safely proceed to extend volume group.

Rgds