LVM Install a New Physical Volume: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== Installation of a New Physical Volume ==
== AIX ==
=== Installation of a New Physical Volume ===
# <tt>'''# diag'''</tt>
# <tt>'''# diag'''</tt>
# Select: <tt>'''Task Selection'''</tt>
# Select: <tt>'''Task Selection'''</tt>
Line 7: Line 8:
# Select: <tt>'''Slot #'''</tt> of the physical volume you wish to remove.
# Select: <tt>'''Slot #'''</tt> of the physical volume you wish to remove.
# Follow the on-screen instructions to install the new physical volume.
# Follow the on-screen instructions to install the new physical volume.
== Linux ==
=== Installation of a New Physical Volume ===
# Definitions:
## <tt>'''XXX#'''</tt> – Device location <tt>'''/dev/XXX#'''</tt> ex. <tt>'''/dev/sda1'''</tt>
## <tt>'''GGGG'''</tt> – Volume group identifier
# Partitioning the physical volume:
## <tt>'''# fdisk /dev/XXX'''</tt>
### Command (m for help): <tt>'''n'''</tt>
### <tt>'''p'''</tt>
### Partition Number (1-4): <tt>'''1'''</tt>
### First cylinder(1-..., default 1): <Enter>
### Last cylinder(1-..., default): <Enter>
### Command (m for help): <tt>'''t'''</tt>
### Hex code (type L to list codes): <tt>'''8e'''</tt>
### Command (m for help): <tt>'''w'''</tt>
# Initialize disk for use by the LVM:
## <tt>'''# pvcreate /dev/XXX#'''</tt>
## If creating a new volume group.
### <tt>'''# vgcreate –s 32 <VGNAME> /dev/XXX#'''</tt>
## If adding to an existing volume group.
### <tt>'''# vgextend GGGG /dev/XXX#'''</tt>


== Further Reading ==
== Further Reading ==
# [http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp IBM pSeries and AIX Information Center]
# [http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp IBM pSeries and AIX Information Center]

Revision as of 15:43, 5 January 2012

AIX

Installation of a New Physical Volume

  1. # diag
  2. Select: Task Selection
  3. Select: Hot Plug Task
  4. Select: SCSI and SCSI Raid Hot Plug Manager
  5. Select: Attach a Device Attached to an SCSI Hot Swap Enclosure Device
  6. Select: Slot # of the physical volume you wish to remove.
  7. Follow the on-screen instructions to install the new physical volume.

Linux

Installation of a New Physical Volume

  1. Definitions:
    1. XXX# – Device location /dev/XXX# ex. /dev/sda1
    2. GGGG – Volume group identifier
  2. Partitioning the physical volume:
    1. # fdisk /dev/XXX
      1. Command (m for help): n
      2. p
      3. Partition Number (1-4): 1
      4. First cylinder(1-..., default 1): <Enter>
      5. Last cylinder(1-..., default): <Enter>
      6. Command (m for help): t
      7. Hex code (type L to list codes): 8e
      8. Command (m for help): w
  3. Initialize disk for use by the LVM:
    1. # pvcreate /dev/XXX#
    2. If creating a new volume group.
      1. # vgcreate –s 32 <VGNAME> /dev/XXX#
    3. If adding to an existing volume group.
      1. # vgextend GGGG /dev/XXX#

Further Reading

  1. IBM pSeries and AIX Information Center