- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Urgently need help for creating VG, LVM ...
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
04-17-2002 06:14 PM
04-17-2002 06:14 PM
I am setting up environment for Oracle installation.
This is L2000 new box. Only vg00 is created.
There are total 8 disks, one is used for vg00.
I am createing separate vg for each disk.
I have created vg11, vg12 and logical volume group lvol1 in vg11 and lvol1 in vg12.
but here the size of the lvol1 in both the vgs showing 0 size.
Iam using SAM. I can see vg11 and vg12 in "VOLUME GROUP" of sam, but in "LOGICAL VOLUMES"
"USE" column is showing Unsed and "Total Mbytes" showing 0
When I tried to increase the size, by using ACTION--->INCREASE SIZE
---- Non existent logical volume
So vg and lvol are created, need to increase the size of lvol and create a file system (mount point) /u01 in vg11.
Please help me to setup this.
Thanks
Regards
Shah
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 06:31 PM
04-17-2002 06:31 PM
Re: Urgently need help for creating VG, LVM ...
Use lvextend to extend the size of the LV in the VGs.
Example, extend 2048 MB, use HFS, use largefiles:
# lvextend -L 2048 /dev/vg11/lvol1
# newfs -F hfs -o largefiles /dev/vg11/rlvol1
# mkdir /u01
# mount /dev/vg11/lvol1 /u01
Remember to update /etc/fstab with the entry for /u01 so that upon system startup, the mounting of /u01 will take effect.
# vi /etc/fstab
Hope this helps. REgards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 07:04 PM
04-17-2002 07:04 PM
Re: Urgently need help for creating VG, LVM ...
-- Can I use 100% space of the disk for lvol1 belongs to vg11 ?
-- hfs VS VxFS ? What is the diff, in other server we have used VxFS.
newfs -F hfs -o largefiles /dev/vg11/rlvol1
In the above command is rlovl1 or lvol1?
What should be the entry in /etc/fstab?
Please ...
Thanks
Regards
Shah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 07:26 PM
04-17-2002 07:26 PM
Re: Urgently need help for creating VG, LVM ...
what Steven mentioned is just an example.
You can choose your own what you want.
By default it should take vxfs.(/etc/default/fs)
#lvextend -L 2048 /dev/vg11/lvol1
# newfs /dev/vg11/rlvol1 (yes it is rlvol1)
# mkdir /u01
# mount /dev/vg11/lvol1 /u01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 07:28 PM
04-17-2002 07:28 PM
Re: Urgently need help for creating VG, LVM ...
/dev/vg11/lvol1 /u01 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 07:47 PM
04-17-2002 07:47 PM
Re: Urgently need help for creating VG, LVM ...
VxFS (or JFS) is normally preferred over HFS unless you have applications that only runs on top of HFS. VxFS has become the defacto filesystem for use from HP-UX 11.00 onwards.
VxFS is faster, performs journaling to allow faster fsck and so forth. Apart from base JFS (which comes default), you have the online JFS (which can be purchased) which allows you to extend filesystems on-the-fly without the need to unmount (umount) the filesystem. Other benefits (such as defragmentation) can be read from the HP-UX release notes or from http://www.docs.hp.com
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 08:18 PM
04-17-2002 08:18 PM
Re: Urgently need help for creating VG, LVM ...
Thanks Lot,
Still, I haven't tried your commands, what I want to check is, whether to use Vxfs or HFS for Oracle-Apps Installation?
Regard
Shah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 08:33 PM
04-17-2002 08:33 PM
Re: Urgently need help for creating VG, LVM ...
The best type of filesystem to use is VxFS.
HFS is outdated and is seldom used. VxFs
out performs HFS in nearly all cases, speed,
overhead and recovery.
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 08:42 PM
04-17-2002 08:42 PM
Re: Urgently need help for creating VG, LVM ...
You should use VxFS for the reasons which we have indicated above.
I remember evaluating Oracle tablespace creation and the results are that raw LVs outperform VxFS which outperforms HFS, given the same control factors eg. OS block size and fragment size.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 08:44 PM
04-17-2002 08:44 PM
Re: Urgently need help for creating VG, LVM ...
# pvcreate /dev/rdsk/c2t2d0
# mkdir /dev/vg02
# mknod /dev/vg02/group c 64 0x020000
==> minor number 0x02000 must be unique.
# vgcreate /dev/vg02 /dev/dsk/c2t2d0
# lvcreate -L 2000 -n lvol1 /dev/vg02
# vgdisplay -v vg02 | more
==> just checking
# newfs -F vxfs -o largefiles /dev/vg02/rlvol1
# mkdir /u01
# mount /dev/vg02/lvol1 /u01
# vi /etc/fstab
==> edit to reflect new mtpoint
Later if you want to extend another disk to vg02, you would o .. (eg: c2t3d0)
# pvcreate /dev/rdsk/c2t3d0
# vgextend /dev/vg01 /dev/dsk/c2t3d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 08:49 PM
04-17-2002 08:49 PM
Re: Urgently need help for creating VG, LVM ...
I am using VxFS, but when I tried,
# lvextend -L 34724 /dev/vg11/rlvol1
Lvextend: Logical volume "/dev/vg11/rlvol1" is not a block special file.
I can see the file rlvol1 in /dev/vg11 dir.
What could be the problem?
Please ...
Thanks
Regards
Shah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 08:50 PM
04-17-2002 08:50 PM
Re: Urgently need help for creating VG, LVM ...
Before the release of JFS 3.3, there was no JFS (VxFS) filesystem that supports ACLs (Access Control Lists).
As a result, for a few of us who require our systems to conform to C2 security in TCSEC Orange Book, we have to resort to using HFS instead.
Since JFS 3.3 supports ACLs, this security limitation no longer applies, especially on the newer releases of HP-UX.
Unless
1) you are concerned with conforming to TCSEC C2 level, AND
2) you are not using JFS version 3.3 or higher, THEN
you should either
a) upgrade to JFS 3.3, or
b) run HFS
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 08:52 PM
04-17-2002 08:52 PM
Re: Urgently need help for creating VG, LVM ...
You should use the block device in lvextend and the raw/character device in newfs.
It should thus be:
# lvextend -L 34724 /dev/vg11/lvol1
# newfs /dev/vg11/rlvol1
If you want to support files larger than 2 GB, then
# newfs -o largefiles /dev/vg11/rlvol1
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 09:10 PM
04-17-2002 09:10 PM
Re: Urgently need help for creating VG, LVM ...
But still, Iam facing the problem,
# lvextend -L 34724 /dev/vg11/lvol1
error output
lvextend: Logical volume "/dev/vg11/lvol1" cound not be changed:
The supplied lv number refers to a non-existent logcial volume.
So please ..
Regards
Shah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 09:14 PM
04-17-2002 09:14 PM
Re: Urgently need help for creating VG, LVM ...
>> lvextend: Logical volume "/dev/vg11/lvol1" cound not be changed:
The supplied lv number refers to a non-existent logicial volume.
That means lvol1 was never created in the first place. In that case, you should use lvcreate instead:
# lvcreate -L 34724 -n lvol1 /dev/vg11
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 11:51 PM
04-17-2002 11:51 PM
Re: Urgently need help for creating VG, LVM ...
sorry, I am still lost, nothing is working.
I had rebooted the server, thru SAM I see nothing in volume group except vg00 (old)
and in logical volume and under disk, all disks are "unsed",
when I tried to select one of the disk and create vg11, it says it is already in /etc/lvmtab.
and in /etc/vg11 still entries are there.
How should I start from the begining?
How should I remove all these entries?
Please help...
Thanks
Regards
Shah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 11:54 PM
04-17-2002 11:54 PM
Re: Urgently need help for creating VG, LVM ...
Show us the output of
# vgdisplay -v /dev/vg11
That will tell us the status of your vg11.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 12:11 AM
04-18-2002 12:11 AM
Re: Urgently need help for creating VG, LVM ...
Shabaz, I have attached an LVM reference guide
Regards
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 12:12 AM
04-18-2002 12:12 AM
Re: Urgently need help for creating VG, LVM ...
Shabaz, I have attached an LVM reference guide
Regards
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 12:14 AM
04-18-2002 12:14 AM
Re: Urgently need help for creating VG, LVM ...
Managing Systems and Workgroups: A Guide for HP-UX System Administrators available at:
http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
Especially section 6:
Administering a System: Managing Disks and Files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 12:52 AM
04-18-2002 12:52 AM
Re: Urgently need help for creating VG, LVM ...
Yes, I understand I should had to go-through the docs,but I had not time.
I tried the following,
# vgdisplay -v vg11
vgdispaly: volume group not activiated.
vgdisplay: cannot display volume group "vg11".
So How to active the vg, I tried vgchange, but didn't get the full syntax.
please ...
Regards
Shah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 12:54 AM
04-18-2002 12:54 AM
Re: Urgently need help for creating VG, LVM ...
vgchange -a y /dev/vg11
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 01:03 AM
04-18-2002 01:03 AM
Re: Urgently need help for creating VG, LVM ...
# vgexport /dev/vg11
==> that will wipe it out clean from the system
It can only be exported if vg11 is inactive, which is what the state it's in now.
And now start the vg creation again. I suggest you use command line method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 01:07 AM
04-18-2002 01:07 AM
Re: Urgently need help for creating VG, LVM ...
if you have got so much trouble with your VG's vg11, vg12, ... I suggest to delete all this VG's.
Try vgexport to do this.
After them check your /etc/lvmtab and your /dev dir. May be you have to remove /dev/vg11, /dev/vg12, ... manually. Then do a initial create of your new VG's (pvcreate -f, vgcreate, lvcreate, ... or use SAM).
Hope this helps
Ruediger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 02:42 AM
04-18-2002 02:42 AM
Re: Urgently need help for creating VG, LVM ...
Thanks lot everybody,
Finally I did it, with great help from all of you.
Now hopefull last and important question,
How to make sure, all the vgs & lvgs are saved, if rebooted server nothing go off.
Please tell me the exact entry in /etc/vfstab
Thanks
Regards
Shah