LVM Install a New Physical Volume: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 25: | Line 25: | ||
### Command (m for help): <tt>'''w'''</tt> | ### Command (m for help): <tt>'''w'''</tt> | ||
# Initialize disk for use by the LVM: | # Initialize disk for use by the LVM: | ||
# | #: <tt>'''# pvcreate /dev/XXX#'''</tt> | ||
## If creating a new volume group. | ## If creating a new volume group. | ||
# | #:: <tt>'''# vgcreate –s 32 <volume_group> /dev/XXX#'''</tt> | ||
## If adding to an existing volume group. | ## If adding to an existing volume group. | ||
# | #:: <tt>'''# vgextend GGGG /dev/XXX#'''</tt> | ||
== Further Reading == | == Further Reading == |
Revision as of 18:42, 1 March 2017
AIX
Installation of a New Physical Volume
- # diag
- Select: Task Selection
- Select: Hot Plug Task
- Select: SCSI and SCSI Raid Hot Plug Manager
- Select: Attach a Device Attached to an SCSI Hot Swap Enclosure Device
- Select: Slot # of the physical volume you wish to remove.
- Follow the on-screen instructions to install the new physical volume.
Linux
Installation of a New Physical Volume
- Definitions:
- XXX# – Device location /dev/XXX# ex. /dev/sda1
- GGGG – Volume group identifier
- Partitioning the physical volume:
- # fdisk /dev/XXX
- Command (m for help): n
- p
- Partition Number (1-4): 1
- First cylinder(1-..., default 1): <Enter>
- Last cylinder(1-..., default): <Enter>
- Command (m for help): t
- Hex code (type L to list codes): 8e
- Command (m for help): w
- # fdisk /dev/XXX
- Initialize disk for use by the LVM:
- # pvcreate /dev/XXX#
- If creating a new volume group.
- # vgcreate –s 32 <volume_group> /dev/XXX#
- If adding to an existing volume group.
- # vgextend GGGG /dev/XXX#