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

Added a new disk, How to see it ?

 
amreek bansal
Frequent Advisor

Added a new disk, How to see it ?


Hi . We have added an additional disk (so it can be used for swap). I havent rebooted the server, my question is this, in solaris I would run devfsadm to pick up the new disk, what are the steps to firstly see the new disk and to start using it ? What device name wouldit have? Thanks..
16 REPLIES
Tingli
Esteemed Contributor

Re: Added a new disk, How to see it ?

# ioscan -fnC disk
# insf -e
# ioscan -funC disk
amreek bansal
Frequent Advisor

Re: Added a new disk, How to see it ?


hi tinqli, thanks for the reply. I will run these commands, but i have a question, the disk which i've added, I take it is hotswappable, so no need to reboot ? and from the commands you gave, how would i identify the new disk (device name i.e c0t0d0..) which has been added ? as i dont want to mess up and choose the wrong one. Sorry if its basic question, i am new to hp-ux, although i know solaris well. pls explain..
thanks..
Tingli
Esteemed Contributor

Re: Added a new disk, How to see it ?

You can run # ioscan -funC disk first. This one won't show the new disks yet. Then you run # ioscan -fnC disk (which doesn't have the u), it shows up the new disks.
Michael Steele_2
Honored Contributor

Re: Added a new disk, How to see it ?

Not the same with adding in swap disks. Swap is apart of the O/S and I believe you'll need the -B option in pvcreate. You will definietly need the -C for continuous option in lvcreate. Here's the basic procedure.


Check to see if maxswapchunks is set high
# pvcreate -B /dev/dsk/c#t#d# (* verify this*)
# lvcreate -C y -L 300 -n swap /dev/vg00
# swapon -p 2 /dev/vg00/swap
vi /etc/fstab
/dev/vg00/swap ... swap pri=2 0 0
Support Fatherhood - Stop Family Law
Bijeesh
Respected Contributor

Re: Added a new disk, How to see it ?

hi
The ioscan output contains any disk with S/W state UNCLAIMED means no associated software found.
To this disk H/W path you can run #insf -H (get from ioscan o/p)
you can also run
#pvdisplay /dev/dsk/c#t#d# to confirm that the disk is not to your VGs.
Patrick Wallek
Honored Contributor

Re: Added a new disk, How to see it ?

>>pvcreate -B /dev/dsk/c#t#d# (* verify this*)

You don't need the '-B' for a swap disk. The '-B' is only needed if this will be a boot disk.
Bijeesh
Respected Contributor

Re: Added a new disk, How to see it ?

hi
I think Amreek is trying to make secondary swap.Then it is not required the -B option with pvcreate.
Tingli
Esteemed Contributor

Re: Added a new disk, How to see it ?

By using sam, the 2nd swap disk can be created easily.
Pedro G Marques
Occasional Visitor

Re: Added a new disk, How to see it ?

Hi Amreek

If you don't know what disk is a new disk, you can compare the output of ioscan with the follow command:

# strings /etc/lvmtab

This is not a 100% rigth, because if you have another disk out of LVM you can have a

Another way is, if this disk is physical, not an EVA lun or another external Storage, the Hw paths of disks usually appears in front of Server. You can compare the path of physical Server and ioscan output

Regards
Basheer_2
Trusted Contributor

Re: Added a new disk, How to see it ?

use these steps
1) ls -lsrt /dev/dsk
2) ls -lsrt /dev/rdsk

1) and 2) will give you the existing ones

now after adding your new disk
do

1) ioscan
2) insf -e -C disk

now do
1) ls -lsrt /dev/dsk
2) ls -ls rt /dev/rdsk

look at the date-timestamp for the last 2 entries. it should show today and current time.

do pvcreate -f on the new disk
Sajjad Sahir
Honored Contributor

Re: Added a new disk, How to see it ?



once disk is presented
u have to create device file for it

insf -C disk

then use ioscan -funC disk

unclaimed one

compare with string /etc/lvmtab file

then create physical volume by using pvcreate command


thanks and regards

Sajjad Sahir
amreek bansal
Frequent Advisor

Re: Added a new disk, How to see it ?


Thanks for all the replies, i have made progress. I have got the disk and initailised it. using

pvcreate -f /dev/rdsk/c1t2d0

Then I want to create a new volume group, so i did this
cd /dev
mkdir vgsw (vgsw being the new volume group name)
cd vgsw
mknod group c 64 0x030000

So this all worked nicely, but the next step to create the volume group is where i get this error, please help.

vgcreate /dev/vgsw /dev/dsk/c1t2d0
Increased the number of physical extents per physical volume to 35003.
vgcreate: Volume Group "/dev/vgsw" could not be created:
VGRA for the disk is too big for the specified parameters. Increase the extent size or decrase max_PVs/max_LVs andtry again.


Does anyone know how to resolve this ? Thanks
Sajjad Sahir
Honored Contributor

Re: Added a new disk, How to see it ?

Dear Amreek

don't try to use pvcreate -f if lun is located to somewhere else it will destroy whole data. so u should carefule to use pvcreate -f command.
if u are using pvcreate only without f it will tell u if lun is already used or not

once u got the answers u can close the thread.

thanks and regards.

Sajjad Sahir
Suraj K Sankari
Honored Contributor

Re: Added a new disk, How to see it ?

Hi,
Please assign points who gave there valuable time to your problem......

When you return to view the answer, please rate it by assigning points
on a scale of 1-10. To assign points, simply login and click the
dropdown points menu next to each reply. Use the following scale when
rating a response:

N/A: The reply was a clarification to my original question
1-3: The answer didn't help answer my question, but thanks anyhow!
4-7: The answer helped with a portion of my question, but I still need
help.
8-10: The answer has solved my problem completely! I'm a happy camper!



Suraj
shankar!
Frequent Advisor

Re: Added a new disk, How to see it ?

You can use "sam" to check the status of newly added disk.
run sam --> Disks and file systems --> Disk devices --> you can see label "use underneath Unused. this can tell that the disk was not used by OS.

-shankar
amreek bansal
Frequent Advisor

Re: Added a new disk, How to see it ?


Thanks everyone for thier help. Its all done now. clsoing thread