- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LVM in HPUX
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-29-2008 09:57 PM
04-29-2008 09:57 PM
# pvcreate -f /dev/rdsk/c4t2d0
But below is not working
# pvcreate -f /dev/rdsk/c4t2d0 /dev/rdsk/c4t2d2 /dev/rdsk/c4t2d3
How to create the PV using multiple raw disk in HPUX whereas 2nd command is working in Linux but not in HPUX plz help ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2008 10:00 PM
04-29-2008 10:00 PM
SolutionHope 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
04-29-2008 10:07 PM
04-29-2008 10:07 PM
Re: LVM in HPUX
Ref. url:
http://www.knowledgeroot.dk/hp-ux/lvm/creating-volume-group-and-logical-volume-with-distributed-and-pvg-strict/
# list=`xpinfo -d -l |awk -F, {'print $8" "$5" "$4" "$1'}| sed 's/\/dev\/rdsk\///g' |awk {'print $4'}`
# for i in $list
> do
> print "pvcreate /dev/rdsk/$i"
> done
pvcreate /dev/rdsk/c8t0d0
pvcreate /dev/rdsk/c9t0d0
pvcreate /dev/rdsk/c10t0d0
pvcreate /dev/rdsk/c11t0d0
pvcreate /dev/rdsk/c8t0d1
pvcreate /dev/rdsk/c9t0d1
pvcreate /dev/rdsk/c10t0d1
After i check the output, i just copy/paste. :)
-- Johnny Damtoft
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2008 10:08 PM
04-29-2008 10:08 PM
Re: LVM in HPUX
If you want more than one you can do something like this. But be sure about the device names.
for i in /dev/rdsk/c4t2d0 /dev/rdsk/c4t2d2 /dev/rdsk/c4t2d3
do
echo $i
pvcreate $i
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2008 10:10 PM
04-29-2008 10:10 PM
Re: LVM in HPUX
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
04-29-2008 10:12 PM
04-29-2008 10:12 PM
Re: LVM in HPUX
let I have created PVs as below
pvcreate -f /dev/rdsk/c4t2d0
pvcreate -f /dev/rdsk/c4t2d2
pvcreate -f /dev/rdsk/c4t2d3
but how could I
add one PV to another when I need to extend lv in /dev/rdsk/c4t2d0 disk when this disk donot have space ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2008 10:16 PM
04-29-2008 10:16 PM
Re: LVM in HPUX
let I have created PVs as below
pvcreate -f /dev/rdsk/c4t2d0
pvcreate -f /dev/rdsk/c4t2d2
pvcreate -f /dev/rdsk/c4t2d3"
Let's say your new LUN is
/dev/rdsk/c4t2d3
you run
pvcreate /dev/rdsk/c4t2d4
and add this PV to your VG using vgextend.
After this you can lvextend the LVOL.
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
04-29-2008 10:21 PM
04-29-2008 10:21 PM
Re: LVM in HPUX
#pvcreate -f /dev/dsk/cxtxdx
#lvextend
then extend the size in file system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2008 10:22 PM
04-29-2008 10:22 PM
Re: LVM in HPUX
Let's say your new LUN is
/dev/rdsk/c4t2d4
you run
pvcreate /dev/rdsk/c4t2d4
and add this PV to your VG using vgextend.
After this you can lvextend the LVOL.
see also
http://docs.hp.com/en/B2355-90950/ch06s01.html
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
04-29-2008 10:22 PM
04-29-2008 10:22 PM
Re: LVM in HPUX
then mount the file system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2008 10:23 PM
04-29-2008 10:23 PM
Re: LVM in HPUX
first you extend the VG belongs that LV by adding the new PVs.
i.e.,
if your LV is /dev/vg02/lvol1
and your new PV is /dev/dsk/c4t2d3
you first extend the vg02:
vgextend /dev/vg02 /dev/dsk/c4t2d3
Then extend the LV
lvextend -L 100000 /dev/vg02/lvol1
100000 = is the new size in MegaBytes. While you lvextend it MUST BE BIGGER THAN the old LV Size. You must note that existing LV Size before you extend the LV to a new size and it MUST BE BIGGER. Otherwise, you will lose the data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2008 10:24 PM
04-29-2008 10:24 PM
Re: LVM in HPUX
"Then create pv
#pvcreate -f /dev/dsk/cxtxdx
#lvextend
then extend the size in file system"
Some steps are missing, right?
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
04-29-2008 10:40 PM
04-29-2008 10:40 PM
Re: LVM in HPUX
http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1223722
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2008 11:12 PM
04-29-2008 11:12 PM
Re: LVM in HPUX
To better understand lvm, I am defining the
three basic terms
physical volume
volume group
logical volume
physcial volume- is the actual physical volume disk drive
volume group: u can combine many physical volume to the volume group, means collection of physical volume is the volume group
logical volume: in the volume group u can create logical volume it is an are where u can create the file system.
how to create a logical volume
1. create a physical volume
2. create a volume group
3.create a logical volume
also u can extend the existing volume group
by adding new physical volume
ok
thanks and regards
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2008 11:54 PM
04-30-2008 11:54 PM
Re: LVM in HPUX
Dear
Please assign points who are answerign u thread otherwise u have to close u thread ASAP, if u are giving points to the peoples they will answer u thread ASAP, otherwise they will hesitate to answer u questions ok
take care, co-operate with team
thanks and regards
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2009 10:37 PM
08-30-2009 10:37 PM