General
cancel
Showing results for 
Search instead for 
Did you mean: 

ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

SOLVED
Go to solution
gunners
Frequent Advisor

ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Hi,

I have a quick question. I have an RP4410 Server running hp/ux 11.11 Operating system , and an external storage disk device MSA30.

I am adding new disks tomorrow to the MSA30 , and as they are plug in direct , does the Operating system see them  instantly ? or do I have to run a command on the unix side to actually pick them up as 'physical disks'

Thanks a mill

Dave

20 REPLIES
Pete Randall
Outstanding Contributor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Ioscan should pick them up right away.


Pete
gunners
Frequent Advisor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Cheers Pete,

so literally just 'ioscan' without any switches or qualifiers ?

 

Dave

Pete Randall
Outstanding Contributor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Cheers to you, too!

 

Full syntax should be "ioscan -fnCdisk", though you could certainly leave off  "Cdisk" if you don't mind wading through all the extra output.


Pete
Arunabha Banerjee
Valued Contributor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Before running the ioscan just take the output # ls -ltr /dev/rdsk/ | tail -10. So that after running the ioscan you can easily notice the new disk device file. If still you are not able to see the new disk then run # insf -eC disk command.

AB
Patrick Wallek
Honored Contributor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

You will probably also need to tell the system to create the device files for the disks.  You do this with the 'insf' command.

 

The procedure I usually follow:

 

ioscan -fnC disk ---> This makes sure that the new disks are accessible by the OS.

 

insf -C disk ---> Creates the device files for the disks

 

ioscan -fnC disk ---> This will show the device files that were just created for the new disks.

Doug O'Leary
Honored Contributor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Hey;

 

I believe it was stated above, but just to be clear: you need two commands:

 

ioscan -fnC disk # rescans the bus

insf -eC disk # create the new device drivers.

 

Hope that helps.

 

Doug


------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Torsten.
Acclaimed Contributor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

It depends ...

 

Is the MSA30 connected to a plain SCSI controller or a smart array controller (e.g. sa6400)?

 

"ioscan -fn" will tell you.

 

Procedure depends on this!


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!   
gunners
Frequent Advisor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

OK , thats great , just have one more question here , If I add two new disks , and I want to make them 'raided' (i think is the phrase) , so if one goes bang ,  the other keeps the data intact , and we just need to replace it and it builds itself back into the two disk set , how do i configure this ?

Torsten.
Acclaimed Contributor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

For this functionality you need a smartarray controller installed in the server. You can configure RAID1 or RAID5 on the disks. In case of a disk failure just replace the disk - done.

 

Otherwise you can mirror the disks with LVM, but you need to do adjustments after a disk replacement.

 

Please show your

 

# ioscan -fn


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!   
gunners
Frequent Advisor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Hmmm , not sure i understand whats happened - see below - I have physically installed 4 disks - 2 on each side of the MSA30 , bu it looks like nothing has changed ? :S

 

dubhptst: # ls -ltr /dev/rdsk/ | tail -10
total 0
crw-r--r--   1 bin        sys        188 0x000000 Jun 22  2007 c0t0d0
crw-r--r--   1 bin        sys        188 0x040000 Jul 27  2009 c4t0d0
crw-r--r--   1 bin        sys        188 0x040100 Jul 27  2009 c4t0d1
crw-r--r--   1 bin        sys        188 0x020000 Sep 14  2009 c2t0d0
crw-r--r--   1 bin        sys        188 0x021000 Sep 14  2009 c2t1d0
dubhptst: # ioscan -fnC disk
Class     I  H/W Path       Driver   S/W State   H/W Type     Description
==========================================================================
disk      0  0/0/3/0.0.0.0  sdisk    CLAIMED     DEVICE       TEAC    DV-28E-N
                           /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
disk      1  0/1/1/0.0.0    sdisk    CLAIMED     DEVICE       HP 73.4GMBA3073NC
                           /dev/dsk/c2t0d0   /dev/rdsk/c2t0d0
disk      2  0/1/1/0.1.0    sdisk    CLAIMED     DEVICE       HP 73.4GST373454LC
                           /dev/dsk/c2t1d0   /dev/rdsk/c2t1d0
disk      3  0/6/1/0/4/0.0.0  sdisk    CLAIMED     DEVICE       HP      LOGICAL
VOLUME
                           /dev/dsk/c4t0d0   /dev/rdsk/c4t0d0
disk      4  0/6/1/0/4/0.0.1  sdisk    CLAIMED     DEVICE       HP      LOGICAL
VOLUME
                           /dev/dsk/c4t0d1   /dev/rdsk/c4t0d1
dubhptst: # insf -eC disk
insf: Installing special files for sdisk instance 0 address 0/0/3/0.0.0.0
insf: Installing special files for sdisk instance 1 address 0/1/1/0.0.0
insf: Installing special files for sdisk instance 2 address 0/1/1/0.1.0
insf: Installing special files for sdisk instance 3 address 0/6/1/0/4/0.0.0
insf: Installing special files for sdisk instance 4 address 0/6/1/0/4/0.0.1
dubhptst: # ls -ltr /dev/rdsk/ | tail -10
total 0
crw-r-----   1 bin        sys        188 0x000000 Jun 22  2007 c0t0d0
crw-r-----   1 bin        sys        188 0x040000 Jul 27  2009 c4t0d0
crw-r-----   1 bin        sys        188 0x040100 Jul 27  2009 c4t0d1
crw-r-----   1 bin        sys        188 0x020000 Sep 14  2009 c2t0d0
crw-r-----   1 bin        sys        188 0x021000 Sep 14  2009 c2t1d0
dubhptst: #

gunners
Frequent Advisor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Hi just an addition , I think Im learning more as I go along here , would I be right in thinking that if I have added in two disks on each side of the MSA30 Disk unit , that they would show up as 'additional space' on the devices that already exist - so in other words see below from 'SAM' extract of disk devices , the additional space would show up on vg01 and vg02 below. If this is t rue then it has not happened

 

0/0/3/0.0.0.0     1          Unused   --              0   DVD-ROM Drive ( ^ │
││ 0/1/1/0.0.0       1          LVM      vg00        70007   HP 73.4GMBA3073   │
││ 0/1/1/0.1.0       1          LVM      vg00        70007   HP 73.4GST37345   │
││ 0/6/1/0/4/0.0.0   1          LVM      vg01       138920   HP      LOGICAL   │
││ 0/6/1/0/4/0.0.1   1          LVM      vg02       138920   HP      LOGICAL   │

 

Torsten.
Acclaimed Contributor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

"LOGICAL VOLUME" indicates you are using a smart array controller.

 

Use ioscan to find the controller device, e.g.

 

# ioscan -fnCciss

 

and get the information

 

saconfig /dev/ciss1

 

the use saconfig to configure the new disks.


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!   
gunners
Frequent Advisor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Hi there Torsten , ok I ran those commands , is this what I should expect to come back as the response?

the ioscan just came back to the unix prompt

 

dubhptst: # ioscan -fnCciss
dubhptst: # saconfig /dev/ciss1


saconfig (/dev/ciss1): Error - File open failed
saconfig (/dev/ciss1): No such file or directory, errno=2


  SmartArray RAID device files (/dev/cissX) found using "/usr/sbin/ioscan -kfnd
ciss":

Class     I  H/W Path     Driver   S/W State   H/W Type     Description
========================================================================
ext_bus   4  0/6/1/0/4/0  ciss     CLAIMED     INTERFACE    PCI-X SmartArray 640
2 RAID Controller
                         /dev/ciss4

  Run "sautil run_startup_script" if you suspect that the device file is missing
 or corrupted.
dubhptst: #

Torsten.
Acclaimed Contributor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Run

 

# sautil /dev/ciss4

 

# saconfig /dev/ciss4

 

and post. 


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!   
gunners
Frequent Advisor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Hi Torsten , I attach notepad file with extracts of above

Torsten.
Acclaimed Contributor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Let's see what we have:

 

1 MSA30 with DB module

 

2 logical drives in RAID5 (138920 MB each)

 

6 assigned disks

 

4 unassigned (new) disks

 

 

Now you have several options:

 

extend the existing RAIDs

-> extend the existing logical drives

-> create new logical drives on the existing RAIDs

 

create 1 or more new RAIDs with new logical drives

 

What is your goal?


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!   
gunners
Frequent Advisor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Ok Torsten ,

Thanks again for coming back to me

Right , Literally I just want to see more disk space on the current environment. So when I go into 'sam' I want to see the additional diskspace I have added , coming up on vg01 and vg02 and thus I can extent my filesystems  as they grow in the future as we may be doing disk to disk backups , so I guess its the 'extend the existing RAIDs' option is what I want from your question  below

 

 

Now you have several options:

 

extend the existing RAIDs

-> extend the existing logical drives

-> create new logical drives on the existing RAIDs

 

create 1 or more new RAIDs with new logical drives

 

What is your goal?

chris huys_4
Honored Contributor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

you will need first to check if the existing volumegroups, were you want the luns to be increased from, would be able to "accept" the increased lunsize.

 

I.e.

# vgdisplay /dev/vg01

 

# vgdisplay /dev/vg02

 

And its the product of "max PV per PE * PE size" , which will determine, the maximum size of any lun within that volumegroup. (and no, you dont want to play with vgmodify on hp-ux 11.11)

Torsten.
Acclaimed Contributor

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

I would do the following:

 

- check with vgdisplay the maximum values for the VGs

 

- create a new RAID5 on the 6 new disks (see man saconfig)

 

- create 2 (or more) logical drives on the RAID

 

- add them to the existing VGs

 

- vgextend the VG's

 

- lvextend or lvcreate the LVOLs

 

- extend or create the file systems

 

- done


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!   
gunners
Frequent Advisor
Solution

Re: ADDING NEW DISK CAPACITY FROM O/S LEVEL QUERY

Hi Torsten, I've been on holidays , apologies for leaving this in limbo.

 

Ok , Ive managed to get a solution as follows:

 

sautil /dev/ciss4 -s   (this gave me the details of the controller and its disks

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

# RAID Size Status

0 5 138920 MB OK
1 5 138920 MB OK


---- SCSI DEVICE SUMMARY -----------------------------------------------------

Location Ch ID Type Capacity Status

external 1 0 DISK 72.8 GB OK
external 1 1 DISK 72.8 GB OK
external 1 2 DISK 72.8 GB OK
external 1 3 DISK 72.8 GB UNASSIGNED
external 1 4 DISK 72.8 GB UNASSIGNED
external 1 15 PROCESSOR
external 2 0 DISK 72.8 GB OK
external 2 1 DISK 72.8 GB OK
external 2 2 DISK 72.8 GB OK
external 2 3 DISK 72.8 GB UNASSIGNED
external 2 4 DISK 72.8 GB UNASSIGNED
external 2 7 PROCESSOR

 

I was then able to see the 'unassigned' disks and create a new raid 5 using below command

 

saconfig /dev/ciss4 -R 5 -p 1:3 -p 1:4 -p 2:3 -p 2:4

 

I was then able to work away with the extra capacity.

 

Thanks for all the pointers as always