- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How do I verify if a disk device contains data
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
06-24-2002 06:16 PM
06-24-2002 06:16 PM
The disks are currently not in any volume group and a pvdisplay
"pvdisplay: Couldn't find the volume group to which physical volume "/dev/dsk/c10t1d3" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c10t1d3"."
However we do use raw devices for oracle so I want to confirm the DBA's havent used them at some stage.
Being a little paranoid as Ive been told all the disks were allocated.
Any thoughts ?
Thanks
Steph
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 06:34 PM
06-24-2002 06:34 PM
Re: How do I verify if a disk device contains data
You can tell if a disk has previously been used by issuing:
# pvcreate /dev/rdsk/c10t1d3
If it returns this message
pvcreate: The physical volume already belongs to a volume group
Then the disk either is or was part of a group. Can any of these disks be seen from a different server? If they are, run the same commands on the other system. Also run this, I find that if it doesn't appear here then it should be safe to proceed. Check the other server in case here as well.
# strings /etc/lvmtab (and look for your disk)
If it doesn't appear you can re-use the disk by issuing:
# pvcreate -f /dev/dsk/c10t1d3
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 07:19 PM
06-24-2002 07:19 PM
Re: How do I verify if a disk device contains data
Get the DBA's to generate a listing of all database files in use. That's an easy SQL script for them.
As a general rule, raw disks are typically not used directly as Oracle files but instead raw LVOL's are used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 07:41 PM
06-24-2002 07:41 PM
SolutionAlso you can do a strings /etc/lvmtab | grep
cd /etc/lvmconf
grep
if the same is being by oracle as raw devices then you cans till doa strings /dev/vgXX/rlvol* if you are sure that these are a part of a lvol this command will give u a ascii data even i case the same is not readable otherwise.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 08:17 PM
06-24-2002 08:17 PM
Re: How do I verify if a disk device contains data
I'll be referring them back to the DBA's to see if they still need them, or whether they used them as a dumping ground at some stage.
Cheers
Steph