LVM Install a New Physical Volume: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 33: | Line 33: | ||
[[Category:AIX]] | [[Category:AIX]] | ||
[[Category:Linux]] | [[Category:Linux]] | ||
EDRPRDRAP01 | |||
fdisk /dev/sda | |||
Command (m for help): n | |||
Select (default p): p | |||
Partition number (9,10, default 9): [Take default] | |||
First sector (1072588800): [Take default] | |||
Last sector, +sectors or +size{K,M,G} : +5G | |||
Print the partition table | |||
Command (m for help): p | |||
Change the partition type | |||
Command (m for help): t | |||
Partition number (1-9, default 9): 9 | |||
Hex code (type L to list all codes): 8e | |||
Print the partition table | |||
Command (m for help): p | |||
Save the partition table | |||
Command (m for help): w | |||
Initialize the new partition as a physical volumes | |||
pvcreate /dev/sda9 | |||
Add new physical volume to volume group | |||
vgextend orabin01vg /dev/sda9 | |||
Extend the logical volume & filesystem | |||
lvextend -L +5G -r |
Revision as of 14:56, 9 March 2022
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
- 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/<physical_volume#>
- If creating a new volume group
- # vgcreate <volume_group> /dev/<physical_volume#>
- If adding to an existing volume group
- # vgextend <volume_group> /dev/<physical_volume#>
Further Reading
EDRPRDRAP01
fdisk /dev/sda Command (m for help): n Select (default p): p Partition number (9,10, default 9): [Take default] First sector (1072588800): [Take default] Last sector, +sectors or +size{K,M,G} : +5G
Print the partition table Command (m for help): p
Change the partition type Command (m for help): t Partition number (1-9, default 9): 9 Hex code (type L to list all codes): 8e
Print the partition table Command (m for help): p
Save the partition table Command (m for help): w
Initialize the new partition as a physical volumes pvcreate /dev/sda9
Add new physical volume to volume group vgextend orabin01vg /dev/sda9
Extend the logical volume & filesystem lvextend -L +5G -r