- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Added a new disk, How to see it ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2009 08:14 AM
05-05-2009 08:14 AM
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2009 08:25 AM
05-05-2009 08:25 AM
Re: Added a new disk, How to see it ?
# insf -e
# ioscan -funC disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2009 08:32 AM
05-05-2009 08:32 AM
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2009 08:41 AM
05-05-2009 08:41 AM
Re: Added a new disk, How to see it ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2009 08:55 AM
05-05-2009 08:55 AM
Re: Added a new disk, How to see it ?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2009 09:03 AM
05-05-2009 09:03 AM
Re: Added a new disk, How to see it ?
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
you can also run
#pvdisplay /dev/dsk/c#t#d# to confirm that the disk is not to your VGs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2009 09:04 AM
05-05-2009 09:04 AM
Re: Added a new disk, How to see it ?
You don't need the '-B' for a swap disk. The '-B' is only needed if this will be a boot disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2009 09:11 AM
05-05-2009 09:11 AM
Re: Added a new disk, How to see it ?
I think Amreek is trying to make secondary swap.Then it is not required the -B option with pvcreate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2009 09:59 AM
05-05-2009 09:59 AM
Re: Added a new disk, How to see it ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2009 01:43 PM
05-05-2009 01:43 PM
Re: Added a new disk, How to see it ?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2009 10:18 PM
05-05-2009 10:18 PM
Re: Added a new disk, How to see it ?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 12:07 AM
05-06-2009 12:07 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 01:46 AM
05-06-2009 01:46 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 01:52 AM
05-06-2009 01:52 AM
Re: Added a new disk, How to see it ?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 02:09 AM
05-06-2009 02:09 AM
Re: Added a new disk, How to see it ?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 02:45 AM
05-06-2009 02:45 AM
Re: Added a new disk, How to see it ?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2009 02:52 AM
05-06-2009 02:52 AM
Re: Added a new disk, How to see it ?
Thanks everyone for thier help. Its all done now. clsoing thread