- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How I will find the HDDs Size?
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
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
11-14-2005 08:20 AM
11-14-2005 08:20 AM
There should be a considerable amount of disk that is already attached to the server but has not been assigned to any volume group.
This is the output of the command:
# pvdisplay /dev/dsk/c23t4d1
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c23t4d1" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c23t4d1".
#
Does it mean, This HDDs is free to use?
May i create the new VG using somany HDDs?
How will i find this HDD size / capacity?
Thanks
Vipin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 08:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 08:26 AM
11-14-2005 08:26 AM
Re: How I will find the HDDs Size?
To find the size of the drive use the 'diskinfo' command.
# diskinfo /dev/rdsk/c23t4d1
As long as you are sure that the device is not in use by something other than LVM, then yes you should be able to create a new VG with this drive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 08:29 AM
11-14-2005 08:29 AM
Re: How I will find the HDDs Size?
Otherwise the disk is probabily available.
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 08:34 AM
11-14-2005 08:34 AM
Re: How I will find the HDDs Size?
Now I am able to find the size of HDDs.
This is the output of the command:
# pvdisplay /dev/dsk/c23t4d1
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c23t4d1" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c23t4d1".
#
Does it mean, This HDDs is free to use?
May i create the new VG using somany HDDs?
I am not sure that the device is not in use by something other than LVM,but this command output shows that "couldnt find the volume group"
How can I check that this is unused disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 08:39 AM
11-14-2005 08:39 AM
Re: How I will find the HDDs Size?
You really need to go to a class or at least study some HP-UX before you touch a production box. You are an accident waiting to happen but all of that can be prevented with some training.
Maybe this will convince you. I consider myself to be moderately proficient at HP-UX administration and I couldn't do what you are trying to do without very carefully studying your system --- and knowing the applications running on it. You see, it is quite possible that one (or more) hosts are using an application that sees a disk and/or a LUN as purely a collection of disk blocks. It would appear to be completely unused and yet contain irreplacable data. Such applications are not too common (fortunately) but neither are they unheard of. You also need to know something about databases because they do use raw disks quite commonly.
The Forums are not a substitute for a class or a set of good references. The bad news is that no class or reference is going to be able to icompletely safely address your question because it is so system and application dependent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 08:51 AM
11-14-2005 08:51 AM
Re: How I will find the HDDs Size?
I am not going to do anything without my training,
But I need to create an excel file for my unused HDDs, Details of those HDDs which we can use in future.
Thanks
Vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 03:50 PM
11-14-2005 03:50 PM
Re: How I will find the HDDs Size?
#ioscan -fnC disk and get the list something like this,
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336754LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
Here, you can see the size as 36.4 GB. You can use diskinfo get more information.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 03:56 PM
11-14-2005 03:56 PM
Re: How I will find the HDDs Size?
Hardware Number Volume Total â
â Path of Paths Use Group Mbytes Descrip â
â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â
â â 0/0/2/0.0.0.0 1 Unused -- 0 DVD-ROM ^ â
â â 0/1/1/0.0.0 1 LVM vg00 34732 HP 36.4G â
â â 0/1/1/0.1.0 1 Unused -- 34732 HP 36.4G â
â â 0/3/1/1.33.11.19.0.0.0 1 Unused -- 180 EMC SYMM â â
â â 0/3/1/1.33.11.19.0.0.1 1 Unused -- 898 EMC SYMM â â
â â 0/3/1/1.33.11.19.0.0.2 1 Unused -- 898 EMC SYMM â â
â â 0/3/1/1.33.11.19.0.0.3 1 Unused -- 898 EMC SYMM â â
â â 0/3/1/1.33.11.19.0.0.4 1 Unused -- 898 EMC SYMM â â
â â 0/3/1/1.33.11.19.0.0.5 1 Unused -- 898 EMC SYMM â â
â â 0/3/1/1.33.11.19.0.0.6 1 Unused -- 898 EMC SYMM v â
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 04:12 PM
11-14-2005 04:12 PM
Re: How I will find the HDDs Size?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 04:24 PM
11-14-2005 04:24 PM
Re: How I will find the HDDs Size?
SAM will be the best way to do this since you are not so confident on command line. It will display you all unused disk drives with their sizes as well.
But for databse devices again even SAM also report unused. SO the output created shall be a rough approximation and not the actual value.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 01:17 AM
11-15-2005 01:17 AM
Re: How I will find the HDDs Size?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 01:22 AM
11-15-2005 01:22 AM
Re: How I will find the HDDs Size?
I myself have almost ruined an Informix database which was using raw disk for database storage. Only the "Hmm, I wonder?" question I asked myself before creating a new filesystem on the disk saved me from disaster.
Know your OS. Know your applications. Know what you are doing BEFORE you do it.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 02:11 AM
11-15-2005 02:11 AM
Re: How I will find the HDDs Size?
But then how will i find that some process (raw) doesn't use those Harddisks.
is there any command using this, I will come to know that these are my free disks, and I can use them for creating new volume groups.
One thing more:
when i give this command #strings /etc/lvmtab, it shows that
/dev/vg10
/dev/dsk/c20t1d0
/dev/dsk/c23t1d0
/dev/dsk/c26t1d0
/dev/dsk/c29t1d0
and when I check using #sam in GUI, It shows:
vg10 has 1 PV.
what does it means?
Thanks
Vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 02:31 AM
11-15-2005 02:31 AM
Re: How I will find the HDDs Size?
But then how will i find that some process (raw) doesn't use those Harddisks.
is there any command using this, I will come to know that these are my free disks, and I can use them for creating new volume groups.
NO, there is no command to positively identify this. Commands like lsof can show you that a raw device is not in use at the moment. I am running out of ways to say this but there is no magic bullet. You must study your system and the applications that run on it.
One method that would probably work to identify the raw volumes in use is to go blindly ahead and include then in a new volume group and build filesystems. Wait a week or so and if nobody screams at you then the raw device was probably unused. Of course, this approach does have some drawbacks.
You asked:
One thing more:
when i give this command #strings /etc/lvmtab, it shows that
/dev/vg10
/dev/dsk/c20t1d0
/dev/dsk/c23t1d0
/dev/dsk/c26t1d0
/dev/dsk/c29t1d0
These are probably alternate links to the same physical disk/LUN. SAM is a poor tool for this as well. Do a "vgdisplay -v /dev/vg10" and that should give you a clear answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2006 07:10 AM
11-01-2006 07:10 AM
Re: How I will find the HDDs Size?
command gives a good picture of used/unused logincal volumes/vg with the unused volumes you can figure out which disks are used for the logical volumes