- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Identify raw file systems
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
10-07-2003 03:19 AM
10-07-2003 03:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 03:21 AM
10-07-2003 03:21 AM
Re: Identify raw file systems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 03:23 AM
10-07-2003 03:23 AM
Re: Identify raw file systems
ll /dev/vg*/rlvol*
?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 03:29 AM
10-07-2003 03:29 AM
Re: Identify raw file systems
Because, by definition, the volume is raw there is nothing to identify it as "raw".
The best you can do is to identify disks/LVOL's as unused.
I'll confine this to LVM but the same concepts apply to whole disks or vxvm.
Do a vgdisplay -v and note the logical volumes. You then need to do a bdf and display the mounted filesystem. Finally, do a swapinfo to display any used swap devices. Anything leftover is unused --- at the moment. For example, you may have unmounted a filesystem thus it will not appear in a bdf output but the LVOL does contain a filesystem. The important point is to look for unused LVOL's but be very careful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 03:33 AM
10-07-2003 03:33 AM
Re: Identify raw file systems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 03:36 AM
10-07-2003 03:36 AM
Re: Identify raw file systems
This ambiguity is exactly *why* I always put commented entries for raw volumes in the /etc/fstab file. I do the same for MC/SG filesystems.
My $0.02,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 03:59 AM
10-07-2003 03:59 AM
Solution1) Create a sqlplus script to output
"select file_name from dba_data_files;"
and output that to a file.
2) Read the files and do an ls -l | awk '{print $1}'. That will reveal the mode of the file. If the first character is a 'b' or 'c' then it is a raw volume. (If the first character is a '-' then it's a regular file. Now for the gotcha, if the first character is an 'l' then it's a symbolic link and you have to follow the link (which might be another soft link) until the first character is either 'b','c' or '-'. I normally use symbolic links for raw oracle volumes so that it's very easy to convert from raw to cooked and vice-versa --- with no Oracle changes.