HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Making partitions of a LUN (raw disk)
Operating System - HP-UX
1829023
Members
2776
Online
109986
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-2008 12:27 PM
10-31-2008 12:27 PM
I need to make partitions of a LUN presented to a host. This is to create voting disks and OCR for my Oracle RAC on the partitions created from the LUN.
I can present multiple LUNS as small as 100MB each; but I would want to present one big LUN and create partitions off of the lun.
Is this possible? If so, how do I accomplish this?
I can present multiple LUNS as small as 100MB each; but I would want to present one big LUN and create partitions off of the lun.
Is this possible? If so, how do I accomplish this?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2008 12:56 PM
10-31-2008 12:56 PM
Solution
With HP-UX, the standard way to do this is to use LVM (or optionally VxVM, if you have it).
The general procedure with LVM is:
1.) run "ioscan -fnCdisk" to confirm the new LUN is visible to the system
2.) run "insf -Cdisk" to add the device files for the disk, if they are not already present
3.) make the disk into a LVM PV with the pvcreate command: "pvcreate /dev/rdsk/cXtYdZ"
(or in HP-UX 11.31, you can use "pvcreate /dev/rdisk/diskN")
4.) create a new VG with the vgcreate command OR extend an existing VG with vgextend
(Note: do not put application data to vg00: it makes Ignite tape recovery operations slow and complicated.)
If creating a new VG:
4.1) Choose a name for the VG. I'll use vgNEW in this example.
4.2) Examine the minor numbers of existing VGs: "ll /dev/*/group". The minor number is of the form 0xNN0000.
4.3) Choose an unused minor number and create the VG directory and group device file:
mkdir /dev/vgNEW
mknod /dev/vgNEW/group c 64 0xNN0000
4.4) Run:
vgcreate vgNEW /dev/dsk/cXtYdZ
(on 11.31: vgcreate vgNEW /dev/disk/diskN)
If extending an old volume group, simply run:
vgextend vgOLD /dev/dsk/cXtYdZ
(on 11.31: vgextend vgOLD /dev/disk/diskN)
5.) create the desired number of LVs with the lvcreate command
To create a 100MB LV on VG vgNEW:
lvcreate -L 100 vgNEW
After this, you'll have the LVs named as /dev/vgNEW/lvol1, /dev/vgNEW/lvol2, etc.
For raw access (Oracle), you can use device names like /dev/vgNEW/rlvol1 etc.
MK
The general procedure with LVM is:
1.) run "ioscan -fnCdisk" to confirm the new LUN is visible to the system
2.) run "insf -Cdisk" to add the device files for the disk, if they are not already present
3.) make the disk into a LVM PV with the pvcreate command: "pvcreate /dev/rdsk/cXtYdZ"
(or in HP-UX 11.31, you can use "pvcreate /dev/rdisk/diskN")
4.) create a new VG with the vgcreate command OR extend an existing VG with vgextend
(Note: do not put application data to vg00: it makes Ignite tape recovery operations slow and complicated.)
If creating a new VG:
4.1) Choose a name for the VG. I'll use vgNEW in this example.
4.2) Examine the minor numbers of existing VGs: "ll /dev/*/group". The minor number is of the form 0xNN0000.
4.3) Choose an unused minor number and create the VG directory and group device file:
mkdir /dev/vgNEW
mknod /dev/vgNEW/group c 64 0xNN0000
4.4) Run:
vgcreate vgNEW /dev/dsk/cXtYdZ
(on 11.31: vgcreate vgNEW /dev/disk/diskN)
If extending an old volume group, simply run:
vgextend vgOLD /dev/dsk/cXtYdZ
(on 11.31: vgextend vgOLD /dev/disk/diskN)
5.) create the desired number of LVs with the lvcreate command
To create a 100MB LV on VG vgNEW:
lvcreate -L 100 vgNEW
After this, you'll have the LVs named as /dev/vgNEW/lvol1, /dev/vgNEW/lvol2, etc.
For raw access (Oracle), you can use device names like /dev/vgNEW/rlvol1 etc.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2008 01:03 PM
10-31-2008 01:03 PM
Re: Making partitions of a LUN (raw disk)
Matti,
Thank you so much. I will assin points once I clarify this:
So, essentially, we're talking logical volumes (created after PV, VGs)???
Thanks!
Ravi.
Thank you so much. I will assin points once I clarify this:
So, essentially, we're talking logical volumes (created after PV, VGs)???
Thanks!
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2008 02:00 PM
10-31-2008 02:00 PM
Re: Making partitions of a LUN (raw disk)
Yes.
10.20 was the last version of HP-UX that supported traditional disk partitions for general use.
The new Itanium servers use a limited form of partitioning for the EFI bootloader and off-line diagnostics on the system disk(s) only.
LVM is more flexible than traditional partitioning: with LVM, you can e.g. move the data from one physical disk or LUN to another (using pvmove) while the system is running and using the data.
A disk partition can never grow beyond the size of the actual physical disk if you need more space; the LVM logical volume *can* do that.
MK
10.20 was the last version of HP-UX that supported traditional disk partitions for general use.
The new Itanium servers use a limited form of partitioning for the EFI bootloader and off-line diagnostics on the system disk(s) only.
LVM is more flexible than traditional partitioning: with LVM, you can e.g. move the data from one physical disk or LUN to another (using pvmove) while the system is running and using the data.
A disk partition can never grow beyond the size of the actual physical disk if you need more space; the LVM logical volume *can* do that.
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP