- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Lvol creation
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
07-27-2004 10:39 PM
07-27-2004 10:39 PM
Lvol creation
I have 4 PV c8t1d0,c8t1d1,c8t1d2,c8t1d3. I have created a vg01 with this 4 PV. I need to create 3 lvols such that c8t1d0 will be in lvol1, c8t1d1 and c8t1d2 will be in lvol2 and c8t1d3 will be on lvol3. I will not use any striping. What will be the command for creating this three lvol.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2004 11:04 PM
07-27-2004 11:04 PM
Re: Lvol creation
I don't know what are you going to achieve
by that...
Anyways
I dont think it's so simple with LVM but
i will advise you to create 4 vg's instead and allot the full vg to a single LV.
say you can create
vg01 = c8t1d1
vg02 = c8t1d2
vg03 = c8t1d3
vg04 = c8t1d4
then create single LV's on each above vg's.
This will also be simple and helpful for data
recovery and failure of disks..
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2004 11:07 PM
07-27-2004 11:07 PM
Re: Lvol creation
lvcreate -n lvol2 /dev/vg01
lvcreate -n lvol3 /dev/vg01
Replace -l X with the number of extents to allocate to each lvol:
lvextend -l X /dev/vg01/lvol1 /dev/dsk/c8t1d0
lvextend -l X /dev/vg01/lvol2 /dev/dsk/c8t1d2
lvextend -l X /dev/vg01/lvol3 /dev/dsk/c8t1d3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2004 11:08 PM
07-27-2004 11:08 PM
Re: Lvol creation
I'll recomend you the following schema:
lvol1 --> vg01 --> c8t1d0
lvol2 --> vg02 --> c8t1d1, c8t1d2
lvol3 --> vg03 --> c8t1d3
#
pvcreate -f /dev/rdsk/c8t1d0
mkdir -p /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgcreate vg01 /dev/dsk/c8t1d0
lvcreate -L
newfs -F vxfs /dev/vg01/rlvol1
fsadm -F vxfs -o largefiles /dev/vg01/rlvol1
mkdir -p /
mount /dev/vg01/lvol1 /
#
pvcreate -f /dev/rdsk/c8t1d1
pvcreate -f /dev/rdsk/c8t1d2
mkdir -p /dev/vg02
mknod /dev/vg02/group c 64 0x020000
vgcreate vg02 /dev/dsk/c8t1d1 /dev/rdsk/c8t1d2
lvcreate -L
newfs -F vxfs /dev/vg02/rlvol2
fsadm -F vxfs -o largefiles /dev/vg02/rlvol2
mkdir -p /
mount /dev/vg02/lvol2 /
#
pvcreate -f /dev/rdsk/c8t1d3
mkdir -p /dev/vg03
mknod /dev/vg03/group c 64 0x030000
vgcreate vg02 /dev/dsk/c8t1d3
lvcreate -L
newfs -F vxfs /dev/vg03/rlvol3
fsadm -F vxfs -o largefiles /dev/vg03/rlvol3
mkdir -p /
mount /dev/vg03/lvol3 /
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2004 11:11 PM
07-27-2004 11:11 PM
Re: Lvol creation
lvextend -l X /dev/vg01/lvol2 /dev/dsk/c8t1d1 /dev/dsk/c8t1d2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2004 11:24 PM
07-27-2004 11:24 PM
Re: Lvol creation
You have the correct syntax.
You can also specify -l (lower case L) to specify the extent size, or -L (upper case) to specify the size in Megabytes rather than extents.
See http://www.docs.hp.com/hpux/onlinedocs/B2355-90691/00/01/199-con.html for further explanation of -l and -L.