- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Creating raw filesystems
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
01-30-2003 09:29 AM
01-30-2003 09:29 AM
Creating raw filesystems
We have a requirement to create raw slices for oracle. I quite do not understand what that means and how you would create it. They want it to be created on vg02. Please let me know how to do it.
Thanks
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 09:32 AM
01-30-2003 09:32 AM
Re: Creating raw filesystems
Create logical volumes with the normal procedure. Don't run newfs on them. Change permissions /dev/vg02/*lvol* to them so that they can access rlvol*.
Ex.,
#lvcreate -n lvol1 -L size_in_mb vg02
(no newfs here)
#chown oracle:dba /dev/vg02/*lvol*
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 10:00 AM
01-30-2003 10:00 AM
Re: Creating raw filesystems
ln -s /dev/vg02/rFile /oracle/InstanceName/newdirname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 10:01 AM
01-30-2003 10:01 AM
Re: Creating raw filesystems
Creating a raw volume is identical to creating a cooked volume with the exception of leaving out the step of creating the FS.
pvcreate (-f) /dev/rdsk/cxtydz
mkdir /dev/vg02
mknod group -c 64 0x020000
vgcreate vg02 /dev/dsk/cxtydz
lvcreate -l #_extents -n lvol_name vg02
mkdir /mnt_poimt
mount /dev/vg02/rlvol_name /mnt_point
Note there's NO newfs command in there and that you mount the rlvol_name & not the cooked LV.
Also I'd recommend you put a commented note in /etc/fstab to indicate the existence of this raw volume.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 12:57 PM
01-30-2003 12:57 PM
Re: Creating raw filesystems
cd /dev/vg02
ls -l
crw-rw-r-- root sys 64 0x020000 group
brw-rw-r-- root sys 64 0x020001 lvol1
crw-rw-r-- root sys 64 0x020001 rlvol1
rlvol1 - raw or character device
lvol1 - block device
That said..... you do not need to "cook" (newfs or fsadm) the logical volume, just point the DB at the device (e.g. /dev/vg02/rlvol1). However I would use a layer of indirection so that the database is more "portable" (you may need to recover it onto another computer)
as an example
cd /opt/oracle/databaselinks/
ln -s /dev/vg02/rlvol1
I would choose something meaningfile for name like dbsdata1_chk1.
You will probably need to change the permissions of the device say
rw-rw---- oracle oracle
chmod 660 /dev/vg02/rlvol1
chown oracle:oracle /dev/vg02/rlvol1
good luck
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 03:46 PM
01-30-2003 03:46 PM
Re: Creating raw filesystems
like the other already said: "raw" means NO filesystem, no data structure known to UN*X.
And as the oracle DBA your just use the device file, where you usually would enter the data-file-name to be created.
But you have to be pretty careful with the size, as oracle needs a few MBs at the start of the raw-device for itself, so a 100MB raw-device would NOT give you 100MB of space...
FWIW,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 06:47 PM
01-30-2003 06:47 PM
Re: Creating raw filesystems
If I am not wrong I think we cannot mount the raw file system. So the last 2 command what u have mentioned will not be applicable for raw FS. We can mount only if we have any FS(used by newfs) on the logical volume.
Correct me if there is any way to mount the Raw FS using mount command.
- Suki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 02:51 PM
01-31-2003 02:51 PM
Re: Creating raw filesystems
Follow what Sridhar and Jeff have mentioned.
I also have raw filesystems for oracle on my servers.
For raw filesystems you don't have to format the filesystem hence, you don't run the newfs command.
Just do an lvcreate and leave it at that.
Regards,
Anil