User Tools

Site Tools


aix:format_disk

This is an old revision of the document!


AIX format a disk

First bring the disk out of the volume group, and clear the PVID:

[root@aix01]/root# lspv
hdisk3          000e583a618a3ca8                    testvg          active      
[root@aix01]/root# reducevg testvg hdisk3
[root@aix01]/root# chpv -C hdisk3

Format the disk, it will put 0 on each block:

[root@aix01]/root# dd if=/dev/zero of=/dev/hdisk3 bs=1024k count=$(bootinfo -s hdisk3)
aix/format_disk.1609532501.txt.gz · Last modified: 2021/01/01 21:21 by 127.0.0.1