21.02.2013 Views

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

In the examples, a disk has been incorrectly removed from the system and the<br />

logical volume control block needs to be rebuilt.<br />

The disks in the system before the physical volume was removed is shown in the<br />

following command output:<br />

# lsdev -Cc disk<br />

hdisk0 Available 30-58-00-8,0 16 Bit SCSI Disk Drive<br />

hdisk1 Available 30-58-00-9,0 16 Bit SCSI Disk Drive<br />

hdisk2 Available 10-60-00-8,0 16 Bit SCSI Disk Drive<br />

hdisk3 Available 10-60-00-9,0 16 Bit SCSI Disk Drive<br />

The allocation of the physical volumes before the disk was removed are shown<br />

as follows:<br />

# lspv<br />

hdisk0 000bc6fdc3dc07a7 rootvg<br />

hdisk1 000bc6fdbff75ee2 volg01<br />

hdisk2 000bc6fdbff92812 volg01<br />

hdisk3 000bc6fdbff972f4 volg01<br />

The logical volumes on the volume group:<br />

# lsvg -l volg01<br />

volg01:<br />

LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT<br />

logvol01 jfs 1000 1000 2 open/syncd /userfs01<br />

loglv00 jfslog 1 1 1 open/syncd N/A<br />

The logical volume distribution on the physical volumes is shown using the lslv<br />

command:<br />

# lslv -l logvol01<br />

logvol01:/userfs01<br />

PV COPIES IN BAND DISTRIBUTION<br />

hdisk1 542:000:000 19% 109:108:108:108:109<br />

hdisk3 458:000:000 23% 109:108:108:108:025<br />

The system after a reboot has the following physical volumes:<br />

# lspv<br />

hdisk0 000bc6fdc3dc07a7 rootvg<br />

hdisk1 000bc6fdbff75ee2 volg01<br />

hdisk3 000bc6fdbff972f4 volg01<br />

When trying to mount the file system on the logical volume, the error may look<br />

similar to the following example:<br />

# mount /userfs01<br />

mount: 0506-324 Cannot mount /dev/logvol01 on /userfs01: There is an input or<br />

output error.<br />

Chapter 7. LVM, file system, and disk problem determination 149

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!