- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- A simple query
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
02-12-2008 02:36 AM
02-12-2008 02:36 AM
A simple query
OS : HP-UX 11i
Database : Oracle 10g (10.2.1.0)
i am working as a Oracle DBA,we are using raw devices for storage.
brw-r----- 1 oracle dba 64 0*020000 apr 12 2006 kdb_control1_raw
[/dev/vg_rac (location of file)]
plz tell what this statement acctually signifies.
what 64 and 0*020000 shows .
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2008 03:09 AM
02-12-2008 03:09 AM
Re: A simple query
These numbers are used by LVM, its a block device (the "b" in the beginnign of the line), device special file, with the major number 64 and the minor number 0x020000. 64 will be the save for all your logical volumes, where the minor will be uniqe for each of them.
Yours
Danny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2008 03:27 AM
02-12-2008 03:27 AM
Re: A simple query
How can we see the size of this file(filled size).
and what is the process of taking cold backup for these files ?
cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2008 03:36 AM
02-12-2008 03:36 AM
Re: A simple query
-I assume you are using asm with the raw files. so you can check the used size with asm.
-make backups with rman and do not use dd.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2008 03:41 AM
02-12-2008 03:41 AM
Re: A simple query
no, i am not using ASM.
cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2008 04:40 AM
02-12-2008 04:40 AM
Re: A simple query
You can NOT ask the OS about the filled size. It does not know that's why they call it a 'raw' device.
The OS will know the allocated size: vgdisplay, lvdisplay...
The application (oracle) knows the used size. Ask it kindly.
You could possibly use 'dd' to make a copy/backup either copying everything, or copying as much as t oracle thinks it is using.
Using dd is tedious and error prone, thus discouraged.
You would drive it with information obtained through SQL with queries similar to:
column status format a8
column member format a55
column file_name format a45
column Tablespace format a15
column segment_name format a15
column extent_name format a15
column owner format a10
column file format a45
column id format 99
set pages 9999
set heading off
set FEEDBACK off
select 'redo_'||l.group# "Tablespace", l.group# "Id", l.bytes/(1024*1024) "MB",
MEMBER "File" from v$logfile f, v$log l where l.group# = f.group#
union
select tablespace_name "Tablespace", FILE_ID "Id", bytes/(1024*1024) "MB",
file_name "File" from dba_data_files
union
select tablespace_name "Tablespace", FILE_ID "Id", bytes/(1024*1024) "MB",
file_name "File" from dba_temp_files
union
select 'Control_file' "Tablespace", rownum "Id", 0 "MB",
name "File" from v$controlfile
order by 1
/
The last part of that union applies to the specific raw device you ask about.
Hope this helps some,
Hein van den Heuvel (at gmail dot com)
HvdH Performance Consulting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2008 05:10 AM
02-12-2008 05:10 AM
Re: A simple query
64 indicates the LUN's major number
0*020000 indicates the LUN's minor number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2008 12:50 AM
02-13-2008 12:50 AM
Re: A simple query
eg. To find the details of your device use :
bdf |grep kdb_control1_raw
This command will show you how many percentage of spaces filled and how many left. All sizes will be in kb. To know details you may use:
lvdisplay /dev/vg_rac/kdb_control1_raw
Shibin