- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Create 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
Discussions
Discussions
Forums
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
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
тАО12-19-2007 05:04 AM
тАО12-19-2007 05:04 AM
Create Logical volume
I am planning to create several lvol(lvol1, lvol2,lvol3) in my new volume group(VG05). Please guide me to create those logical volumes in CLI mode.
Thanks
Niru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2007 05:10 AM
тАО12-19-2007 05:10 AM
Re: Create Logical volume
http://docs.hp.com/en/B2355-60105/lvcreate.1M.html
Do you want to mirror the LVOLs and if, how many disks are in that VG?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2007 05:15 AM
тАО12-19-2007 05:15 AM
Re: Create Logical volume
the basic create command is
lvcreate -n lvname1 -L sizeinMB vg05
without striping or mirrorring.
Hasan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2007 05:51 AM
тАО12-19-2007 05:51 AM
Re: Create Logical volume
Basic usage information can be found at http://www.olearycomputers.com/ll/hplvcreate.html
The way I normally do this is to create a data file:
#VG LV SIZE MP
######################
vg05 lvol1 2048 /oracle
vg05 lvol2 1024 /oracle/fs1
vg05 lvol3 512 /oracle/fs2
vg05 lvol4 8196 /oracle/fs3
vg05 lvol5 8196 /oracle/fs4
Then, you read through the data file:
grep -v ^# ${file | while read vg lv size
do
echo lvcreate -L ${size} -n ${lv} ${vg}
[[ ${size} -gt 2048 ]] && args="-o largefiles" || args=""
echo newfs -F vxfs ${args} /dev/${vg}/r${lv}
[[ ! -d ${mp} ]] && mkdir -p -m 755 ${mp}
[[ ${size} -gt 2048 ]] && args=",largefiles" || args=""
echo "${lv} ${mp} vxfs delaylog${args} 0 2" >> /etc/fstab
echo mount ${mp}
done
If that looks right, remove the echos.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2007 05:56 AM
тАО12-19-2007 05:56 AM
Re: Create Logical volume
;-)
Or not?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2007 06:01 AM
тАО12-19-2007 06:01 AM
Re: Create Logical volume
"A good script will make an admin's day... A bad one will ruin it."
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2007 06:12 AM
тАО12-19-2007 06:12 AM
Re: Create Logical volume
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!