HP XP10000 Creating logical volumes, Lvremove, Lvextend, Lvreduce, To create logical volumes

Page 43

Creating logical volumes

Use these commands for logical volume configuration:

lvremove

Deletes a logical volume.

 

Any file system attached to the logical volume must be

 

unmounted before executing the lvremove command.

 

Example: lvremove /dev/vgnn/lvolx

lvextend

Increases the size of an existing logical volume.

 

Example: lvextend –L size /dev/vgnn/lvolx

lvreduce

Decreases the size of an existing logical volume.

 

Any file system attached to the logical volume must be

 

unmounted before executing the lvreduce command.

 

Example: lvreduce –L size /dev/vgnn/lvolx

Caution Data within the file system can be lost after execution of lvreduce.

Create logical volumes after you create volume groups. A logical volume must be created for each new SCSI disk device

To create logical volumes:

1.Use the lvcreate –Lcommand to create a logical volume.

Specify the volume size (in megabytes) and the volume group for the new logical volume. HP-UX assigns the logical volume numbers automatically (lvol1, lvol2, lvol3). Use the following capacity values for the size parameter:

OPEN-K = 1740 OPEN-3 = 2344 OPEN-8 = 7004 OPEN-9 = 7004 OPEN-E = 13888

Installation

45

Image 43
Contents Sixth edition July Part number A5951-96015 XP128 XP1024 XP10000 XP12000Sixth edition July 2005 part number A5951-96015 Contents Troubleshooting Disk arrays About this guideIntended audience PrerequisitesContact HP Related documentationHP storage website HP sales and authorized resellersHP technical support Bold Document conventionsRevision history That USE of the Software is AT Your Sole RISK. HP Warranty statementAbout this guide Page Installation Features and requirements Fibre Channel interface Failover Device emulation typesRAID Manager command devices Snmp configurationInstallation procedures Setting the host mode for the disk array ports Install and configure the disk arrayPage Mode Level Description and Usage Software Setting the System Option ModesFibre Address Configuring the Fibre Channel portsFabric and Connection parameter settings Installing and configuring the HBAs Install and configure the hostLoading the OS and software Clustering and fabric zoning SAN Defining the paths Connect the disk arrayPage Example Verifying HBA installationTo verify device recognition Verifying device recognitionCxtydz where Page Configure disk array devices Verifying the device files and drivers Claimed Busnexus Creating the device files # lsdev Character Block Driver Class 188 Sdisk Disk Example of a completed device data table To create the physical volumes Creating the physical volumesTo create volume groups Creating new volume groups# mknod /dev/vg06/group c 64 Vgda Lvextend Creating logical volumesTo create logical volumes LvremoveOPEN-L = To create file systems Creating the file systemsRepeat for each logical volume on the disk array To change the I/O timeout parameter Setting the I/O timeout parameterCreating the mount directories To create a mount directory for each logical volumeTo mount and verify the file systems Mounting and verifying the file systemsTo set up and verify the auto-mount parameters Setting and verifying the auto-mount parametersParameter Name Enter Page Troubleshooting Error conditions With vgcreate Pvcreate for example, /dev/rdskNewfs for example, /dev/vg01/r/vo/x Host hangs or devices are Contact Information Calling the HP support centerPage Worksheets Path worksheet Disk array device emulations Supported emulations Luse Device type specificationsPage Disk array device emulations MPE Luse device parametersPhysical Max Extent Extent size Device type Size PE OPEN-8/9/E-CVS Scsi TID map for Fibre Channel adapters Value Reference information for SAM Configuring the devices using SAM Reference information for SAM To change the maximum number of volume groups Setting the maximum number of volume groups using SAMArray group Command ViewCommand View XP Command deviceFailover Host modeDisk controller unit Disk cabinet unit Emulation modesRemote console PC OPEN-xPath PortVolume Remote Control RCRemote Web Console Index Page Index