How do I set a specific Pvid in AIX?
The most common way to generate a PVID is to simply add it to a volume group. Alternatively, the chdev command with the pv attribute flag set to yes (chdev –l hdisk# -a pv=yes) may be used to assign a PVID to an hdisk without adding it to a VG.
How do I replace a missing drive in AIX?
How to Replace(rootvg & non-rootvg) disk in AIX:
- Remove all copies from disk: # unmirrorvg vg_name hdiskX.
- Remove disk from volume group:
- Remove disk from ODM:
- Connect new disk to system (use Hot Plug Disk Replacement Procedure) (May have to shut down if not hot-pluggable)
- Add new disk to volume group:
- Create new copies:
How do I create a physical volume in AIX?
Creating a Volume Group
- Create a Volume Group.
- Create a Logical Volume within the VG containing a JFS2 filesystem that will be automatically mounted during boot.
- Add a disk to the VG and mirror the data across 2 disks.
- Display LP>PP mappig and LVCB.
What is physical volume in AIX?
The disk itself is called a physical volume (PV). When multiple PVs are available they can be collected into volume groups (VGs). In the figure above, we see three disks, hdisk1, hdisk2, and hdisk3. Each disk has been divided into PPs.
What is Varyonvg?
Description. The varyonvg command activates the volume group specified by the volumegroup parameter and all associated logical volumes. A volume group that is activated is available for use. When a volume group is activated, physical partitions are synchronized if they are not current.
How can we replace a failed disk in Rootvg?
Replacing a failed disk (rootvg)
- unmirrorvg rootvg hdisk0. (savebase -v)
- reducevg rootvg hdisk0.
- rmdev -Rdl hdisk0.
- diag (safely remove hot swap device/drive), physically remove the old disk.
- insert the new disk (diag – hotplug task)
- cfgmgr -vl scsi0.
- extendvg -f rootvg hdisk0.
- mirrorvg -m rootvg hdisk0.
What are physical volumes?
A physical volume is any physical storage device, such as a Hard Disk Drive ( HDD ), Solid State Drive ( SSD ), or partition, that has been initialized as a physical volume with LVM. Without properly initialized physical volumes, you cannot create Volume Groups or logical volumes.
How do I find disk details in AIX?
#bootinfo -s hdiskX–> gives the size of the given disk. If you need the size of all the disks, check for the disks which are all available. It gives the sizes of all the disks.
How do I find my LUN ID in AIX?
If u have EMC PowerPath installed, powermt display dev=all will map all the hdiskXX devs (which are in fact paths to the LUNS) with the hdiskpower devices and u can also get the wwn from there. You can use cat/grep/sed/awk to get the luns u need and use sort/uniq to get rid of any duplicates.
What is VG in AIX?
When you install a system, the first volume group (VG) is created. It is called the rootvg. Your rootvg volume group is a base set of logical volumes required to start the system. It includes paging space, the journal log, boot data, and dump storage, each on its own separate logical volume.
How do I mirror a drive in AIX?
There are four steps required in mirroring rootvg:
- Mirror rootvg using mirrorvg or mklvcopy.
- Make the new mirrored disk bootable by running bosboot.
- Add the new mirrored disk to the bootlist.
- Reboot the system to disable quorum. (5300-06 and below only)
How do I check disk space in Unix?
Unix command to check disk space:
- df command – Shows the amount of disk space used and available on Unix file systems.
- du command – Display disk usage statistic for each directory on Unix server.
How do I find disk information in AIX?
#bootinfo -s hdiskX–> gives the size of the given disk. If you need the size of all the disks, check for the disks which are all available. It gives the sizes of all the disks.
What is a physical volume identifier (PVID) in Aix?
The Logical Volume Manager (LVM) on AIX uses a Physical Volume Identifier (PVID) to keep track of disk drives that are part of an LVM volume group. This is a system-generated 16-digit number that is stored physically on the hard drive and read into the ODM. LVM also stores this PVID in the Volume Group Descriptor Area (VGDA) for the volume group.
What is LVM PVID in Aix?
The Logical Volume Manager (LVM) on AIX uses a Physical Volume Identifier (PVID) to keep track of disk drives that are part of an LVM volume group. This is a system-generated 16-digit number that is stored physically on the hard drive and read into the ODM.
Where is the PVID number stored in LVM?
This is a system-generated 16-digit number that is stored physically on the hard drive and read into the ODM. LVM also stores this PVID in the Volume Group Descriptor Area (VGDA) for the volume group. Each PVID on a system uniquely identifies one physical volume.
What does chdev do in Linux?
The chdev command changes the characteristics of the specified device with the given device logical name that is specified with the -l Name flag. The device can be in the Defined, Stopped, or Available state. Some changes may not be allowed when the device is in the Available state.