- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvcreate doubt
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-31-2001 04:48 AM
10-31-2001 04:48 AM
I??ve a simple doubt about lvcreate.
I??d like create a lvol in specific disk.
The correct command to do its follow:
#lvcreate -l
Please, help me. I forget how to do this...
Tkts,
Valkiria
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 04:53 AM
10-31-2001 04:53 AM
Re: lvcreate doubt
lvcreate -n lv## /dev/vg## (create 0 sized LV)
lvextend -l <# 4MB extents> /dev/vg##/lv## /dev/dsk/cXtXd0 - Make lv's size you want
Don't forget to make the mountpoint and newfs
mkdir /mntpoint
mkdir /mntpoint
newfs -F vxfs -b
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 04:55 AM
10-31-2001 04:55 AM
Re: lvcreate doubt
lvcreate -n lvolname vgname
This creates a LV of 0 size in the volume group.
Then use lvextend to size the LV and assign the LV to a particular disk:
lvextend -L size /dev/vgname/lvname /dev/dsk/cXtYdZ
e.g. to create a 200MB logical volume called lvol4 in volumge group vg01 and on disk c1t2d0 do the following:
lvcreate -n lvol4 /dev/vg01
lvextend -L 200 /dev/vg01/lvol4 /dev/dsk/c1t2d0
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 05:01 AM
10-31-2001 05:01 AM
Solutionit's a two step process:
first define the LVOL (size will be 0) and then extend the LVOL on the specific disk.
lvcreate -n lvoln /dev/vgxx
lvextend -L nnn /dev/vgxx/lvoln /dev/dsk/cxtydz
afterwards you can create the filesystem and edit /etc/fstab if required.
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 05:13 AM
10-31-2001 05:13 AM
Re: lvcreate doubt
<>
Before you create an lvol, make sure
1) About the Size of Lvol which you want to
create.
2) The Name of the Lvol which you want to create
3) The VG on which you want to Create it.
(optional: and the disk on which you want it.)
4) Optional:The allocation policy (distributed, striping...). This is not necessary for
simple creation.
>>#lvcreate -l
To make it easy, assign size in Mbytes
by giving -L option
You cannot specify the disk name in
an lvcreate command. It would need to
go into lvextend command:
so, the right command would be:
lvcreate -n
(this creates a LV of Zero size)
lvextend -L
(this extends the LV to the specified size)
But, before you do this, make sure the
Disk belongs to that volume group, by
giving the VGDISPLAY command
vgdisplay -v /dev/vgname will show what
disks belong to the VG.
Also, once you create the LV, if this
is going to be filesystem, you would need
to give the newfs command to make it a
filesystem.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 05:36 AM
10-31-2001 05:36 AM
Re: lvcreate doubt
:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 08:42 AM
10-31-2001 08:42 AM
Re: lvcreate doubt
you can do it like this,
lvcreate -n lv_name /dev/vg_name
lvextend -L lv_size /dev/vg_name/lv_name /dev/dsk/pv_name
newfs -F vxfs -o largefiles /dev/vg_name/rlv_name
you can also refer to the hp manual "Managing systems and workgroups"
Here is a thread to that manual, Look for the section Managing Disks -> Tasks That You Can Perform Only with HP-UX Commands --> Extending a Logical Volume to a Specific Disk.
Hope this helps.
thanks