- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Creating a logical volume from shell?
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
06-11-2004 07:44 AM
06-11-2004 07:44 AM
I've got multiple volume groups with available space, I have to setup informix databases using RAW space,
how can I create the logical volume below
/dev/vg## without having to go into SAM?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 07:46 AM
06-11-2004 07:46 AM
Re: Creating a logical volume from shell?
see the lvcreate man page for possible options that you'll need to use
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 07:49 AM
06-11-2004 07:49 AM
Re: Creating a logical volume from shell?
it is pretty cryptic.
From the man page I can see HOW to create one, but on how to point to the Volume Group.. If it is created by default in the correct VG will it work OK?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 07:50 AM
06-11-2004 07:50 AM
SolutionUse the following
lvcreate -L XXXXX -n lv_name /dev/vg_name
where XXXXX=size in MB. If you're going to want a mirror then add -m 1 If you want it striped then add -i x -I YYY where x=number of disks in the stripe (stripe count) & YYY=stripe size in KB (must be power of 2)
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 07:52 AM
06-11-2004 07:52 AM
Re: Creating a logical volume from shell?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 07:56 AM
06-11-2004 07:56 AM
Re: Creating a logical volume from shell?
lvcreate -L
IIRC, you can leave out the -n switch and it'll create it with a lvol## format.
Then you can check it with:
lvdisplay -v /dev/
If you're not creating raw volumes, you need to do this:
newfs -F vxfs /dev/
Then add it to you fstab and mount it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 07:58 AM
06-11-2004 07:58 AM
Re: Creating a logical volume from shell?
You just start using /dev/vg_name/lv_name
But you should consider putting *commented* entries in the /etc/fstab as a reminder or a placeholder if you will for those LVs you've created in those VGs because they'll never show up in a bdf output & can become forgotten over time.
My 2 cents,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 08:00 AM
06-11-2004 08:00 AM
Re: Creating a logical volume from shell?
BUT I hate that. I want my lv_name to tell me just what the heck that LV's for. I want it to have meaning - not just another number. Just my preference.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 08:01 AM
06-11-2004 08:01 AM
Re: Creating a logical volume from shell?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 08:12 AM
06-11-2004 08:12 AM
Re: Creating a logical volume from shell?
I am starting to get confused so let me run this past you all.
for example if I use:
lvcreate -L 1048576 -n plvdbs /dev/vg02
It will create the RAW logical called plvdbs since I am not creating a VXFS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 08:15 AM
06-11-2004 08:15 AM
Re: Creating a logical volume from shell?
Sorry for the confusion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 08:18 AM
06-11-2004 08:18 AM
Re: Creating a logical volume from shell?
We are heading in an upgrade and need to parallel 22 informix spaces.. I will script it and be done with it..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 08:20 AM
06-11-2004 08:20 AM
Re: Creating a logical volume from shell?
The '-L 1048576' will create a 1,048,576 MB = 1,024 GB = 1 TB Volume. Do you want 1 TB?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 08:22 AM
06-11-2004 08:22 AM
Re: Creating a logical volume from shell?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 08:28 AM
06-11-2004 08:28 AM
Re: Creating a logical volume from shell?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 08:30 AM
06-11-2004 08:30 AM
Re: Creating a logical volume from shell?
And Mark and Jeff for the assist..