- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Create new Logical Volume
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-05-2001 01:08 AM
10-05-2001 01:08 AM
Create new Logical Volume
I need a great help from the UNIX experts because in my current project there is no Unix administrator.
I need to create a new logical volume and make a symbolic link for oracle datafile in the RAW devices. Kindly advice me the following steps are correct or not.
STEP1:
To create a new logical volume I will run the following scripts in the root user
# lvcreate -n sdata1 vgoracle
# lvextend -L 1500 /dev/vgoracle/sdata1 /dev/dsk/c6t0d4
STEP2: To create a symbolic link, I will run the following scripts on the each node login as oracle user
$ ln ?s /dev/vgoracle/sdata1 /data/oracle/oradata/WEB/sdata1_01.dbf
Thanks & Regards
Michael Selvam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2001 01:18 AM
10-05-2001 01:18 AM
Re: Create new Logical Volume
It's OK, but remember:
lvextend -l
lvextend -L
Later,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2001 01:19 AM
10-05-2001 01:19 AM
Re: Create new Logical Volume
Looks good, it will create a 1500 MB lvol, but when you create the symbolic link you want it to point to the raw lvol, rsdata, not sdata.
Im not sure why you do it this way, creating a link from a filename called X.dbf pointing to a raw lvol, normally oracle raw databases are handled without such links (?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2001 04:32 AM
10-05-2001 04:32 AM
Re: Create new Logical Volume
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2001 05:16 AM
10-05-2001 05:16 AM
Re: Create new Logical Volume
/dev/vgoracle/sdata1 is the block device.
You need to use the character device !!!
/dev/vgoracle/rsdata1
Second:
After lvcreate, the permissions on the rawdevice usally are 644 for root. You might need to adjust to get access for the oracle user, i.e.
chown oracle:dba /dev/vgoracle/rsdata1
chmod 600 /dev/vgoracle/rsdata1
Third:
lvextend may round up to the next PE size ! So the volume might be bigger than expected. Check the real size with lvdisplay after lvextend.
Fourth:
When you use the device in Oracle, give a little spare space to the size, in case HP and Oracle programming guys have diffrent views about GB / MB / KB ( 1000 <-> 1024 ), so that you are not leaving the rawdevice at the edge. This might cause errors.
Hope this helps
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2001 06:15 AM
10-05-2001 06:15 AM
Re: Create new Logical Volume
You may want to change the ownership of raw volume to oracle before creating the links.
#chown oracle:dba /dev/vgoracle/rsdata1
Also change permissions to 755
#chmod 755 /dev/vgoracle/rsdata1
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2001 08:25 AM
10-05-2001 08:25 AM
Re: Create new Logical Volume
to modify Prashant recommendation a little bit:
chmod 664 /dev/...
for the x-permission is not needed for data files/volumes,
but you may have processes running in group "dba",
but not being user "oracle"...
Just my ?0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2001 12:58 PM
10-06-2001 12:58 PM
Re: Create new Logical Volume
The other guys are correct in the advice given,
I would like to add one further thing, and that
is how to check whether you have enough space
to begin with.
# vgdisplay -v /dev/vgoracle
and note both the information in header which
indicates the space available and the in
section which relates directly to the disk
that you want to use.
My 3 cents worth
Good Luck
-Michael