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 |
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