DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

Create a Logical Volume and format it in HP-UX

January 6, 2017 DbAppWeb Admin

When we need more space on a server. To get more space we create new virtual LUNs from our storage and present that LUN on the server to get the required space.

After exporting the LUNs to a server we need to create Physical Volume, Volume Group, and Logical Volume and then we format the logical volume using a file system. VxFS is used as the primary filesystem of the HP-UX operating system.

After formatting the Logical Volume we can mount this on a directory (mount point) and can use the disk as per our requirements.

Rescan the Disks:

If you added a new disk to the system or exported a virtual volume from your storage then rescan the disks to find the new disk. Here I have added a new virtual volume from my 3PAR storage  /dev/disk/disk11.

# ioscan -fnNC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 3 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP Virtual LvDisk
/dev/disk/disk3 /dev/disk/disk3_p2 /dev/rdisk/disk3 /dev/rdisk/disk3_p2
/dev/disk/disk3_p1 /dev/disk/disk3_p3 /dev/rdisk/disk3_p1 /dev/rdisk/disk3_p3
disk 4 64000/0xfa00/0x7 esdisk CLAIMED DEVICE 3PARdataVV
/dev/disk/disk4 /dev/rdisk/disk4
disk 5 64000/0xfa00/0x8 esdisk CLAIMED DEVICE 3PARdataVV
/dev/disk/disk5 /dev/rdisk/disk5
disk 11 64000/0xfa00/0x12 esdisk CLAIMED DEVICE 3PARdataVV
/dev/disk/disk11 /dev/rdisk/disk11

Create Physical Volume:

Create the Physical Volume using the command pvcreate .

# pvcreate /dev/rdisk/disk11
Physical volume “/dev/rdisk/disk11” has been successfully created.

Create Volume Group:

Create the Volume Group using the command vgcreate.

# vgcreate -s 32 /dev/produpload1 /dev/disk/disk11
Increased the number of physical extents per physical volume to 32767.
Volume group “/dev/produpload1” has been successfully created.
Volume Group configuration for /dev/produpload1 has been saved in /etc/lvmconf/produpload1.conf

See the Details of the Volume Group:

See the details of the Volume Group using the command vgdisplay.

# vgdisplay -v produpload1
— Volume groups —
VG Name /dev/produpload1
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 32767
VGDA 2
PE Size (Mbytes) 32
Total PE 32767
Alloc PE 0
Free PE 32767
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 16776704m
VG Max Extents 524272
— Physical volumes —
PV Name /dev/disk/disk11
PV Status available
Total PE 32767
Free PE 32767
Autoswitch On
Proactive Polling On

Create Logical Volume:

Now create the Logical Volume using the command lvcreate.

# lvcreate -l 32767 /dev/produpload1
Logical volume “/dev/produpload1/lvol1” has been successfully created with
character device “/dev/produpload1/rlvol1”.
Logical volume “/dev/produpload1/lvol1” has been successfully extended.
Volume Group configuration for /dev/produpload1 has been saved in /etc/lvmconf/produpload1.conf

Format the Volume:

Format the volume in vxfs file format (Veritas File System).

# mkfs -F vxfs /dev/produpload1/rlvol1
version 7 layout
1073709056 sectors, 1073709056 blocks of size 1024, log size 262144 blocks
largefiles supported

Create the mount point and mount:

Create mount point directory and mount the formated volume to this directory.

# mkdir produpload1

# mount /dev/produpload1/lvol1 /produpload1

# bdf

/dev/produpload1/lvol1
               1073709056 526419 1006108730 0% /produpload1

 

Related Posts

  • How to Find NIC (Network Interface Card) Details in HP-UX
  • How to Install a .depot Package Using swinstall on HP-UX
  • HP-UX: How to restrict NFS share access to a particular server?
  • crontab: you are not authorized to use cron. Sorry. in HP-UX
  • HP-UX: SSH taking too much time after adding the DNS Servers
  • How to add DNS servers on an HP-UX server
  • How to login to vPar console in HP-UX
  • How to extend the size of Logical Volume (LV) in HP-UX
  • How to determine file system type in HP-UX using command
  • How to check vPar machines status in HP-UX
  • How to find HBA cards/ports and WWN Number details in HP-UX (nPar)
  • How to find HBA cards/ports and WWN Number details in HP-UX (vPar)
  • HP-UX command to get Physical Memory Information
  • HP-UX command to get Processor Information
  • HP-UX command to get Hardware Serial Number
  • su: Sorry in HP-UX while switching from normal user to root user
  • SSH login taking too much time on HP-UX 11.31
  • How to Disable Root SHH Login in HP-UX?
  • hpvmstatus: HPVM currently not running.
  • How to view/print routing table in HP-UX?
  • Create a Logical Volume larger than 2TB and format it in HP-UX
  • Protect SSH Logins with SSH and MOTD Banner Messages in HP-UX
  • Remove welcome message after login in HP-UX 11.31
  • Create a Logical Volume and format it in HP-UX
  • How to rescan new LUNs added in HP-UX 11.31
  • How to reboot a HP-UX machine?
  • How to remove File System, LV and VG in HP-UX and Linux?
  • How to remove NO_HW devices from ioscan in HP-UX without a reboot?
  • Change root user password of vpar machine in HP-UX

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
Prev Article
Next Article
Tags:HP-UX Sys Admin
  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com