Operating System - HP-UX
1752578 Members
4715 Online
108788 Solutions
New Discussion

Re: disk missing or F.S. corrupted

 
uadmin_1
Occasional Contributor

Re: disk missing or F.S. corrupted

Hi FR,

 

can you rerun fsck with -m option so it will return error code due to that error code (0, 32 or 33) we may get some idea about file system status.

 

# fsck -F vxfs -m -y  <lv path>

 

Regards,
Raj

NDO
Super Advisor

Re: disk missing or F.S. corrupted

 

 

Hi Rariasn!

 

from the output of lvdisplay -v /dev/vg01/lvol7 there is a clear missing disk I beleive from "???"

 

mcelbill[424]/ #lvdisplay -v /dev/vg01/lvol7 | more
--- Logical volumes ---
LV Name                     /dev/vg01/lvol7
VG Name                     /dev/vg01
LV Permission               read/write
LV Status                   available/syncd
Mirror copies               0
Consistency Recovery        MWC
Schedule                    parallel
LV Size (Mbytes)            995280
Current LE                  62205
Allocated PE                62205
Stripes                     0
Stripe Size (Kbytes)        0
Bad block                   on
Allocation                  strict
IO Timeout (Seconds)        default

   --- Distribution of logical volume ---
   PV Name            LE on PV  PE on PV
   /dev/dsk/c42t0d1   25408     25408
   /dev/dsk/c4t0d3    6998      6998
   /dev/dsk/c4t0d4    2559      2559
   /dev/dsk/c4t0d5    2038      2038

   --- Logical extents ---
   LE    PV1                PE1   Status 1
   00000 /dev/dsk/c42t0d1   20026 current
   00001 /dev/dsk/c42t0d1   20027 current
   00002 /dev/dsk/c42t0d1   20028 current
   00003 /dev/dsk/c42t0d1   20029 current
   00004 /dev/dsk/c42t0d1   20030 current
   00005 /dev/dsk/c42t0d1   20031 current
   00006 /dev/dsk/c42t0d1   20032 current

 

32402 /dev/dsk/c4t0d3    28791 current 

   32403 /dev/dsk/c4t0d3    28792 current 

   32404 /dev/dsk/c4t0d3    28793 current 

   32405 /dev/dsk/c4t0d3    28794 current 

   32406 ???                00000 current 

   32407 ???                00001 current 

   32408 ???                00002 current 

   32409 ???                00003 current 

   32410 ???                00004 current 

   32411 ???                00005 current 

   32412 ???                00006 current 

   32413 ???                00007 current 

   32414 ???                00008 current 

   32415 ???                00009 current 

   57598 ???                25192 current 

   57599 ???                25193 current 

   57600 ???                25194 current 

   57601 ???                25195 current 

   57602 ???                25196 current 

   57603 ???                25197 current 

   57604 ???                25198 current 

   57605 ???                25199 current 

   57606 ???                25200 current 

   57607 ???                25201 current 

   57608 /dev/dsk/c4t0d4    00000 current 

   57609 /dev/dsk/c4t0d4    00001 current 

   57610 /dev/dsk/c4t0d4    00002 current 

   57611 /dev/dsk/c4t0d4    00003 current 

   57612 /dev/dsk/c4t0d4    00004 current 

   57613 /dev/dsk/c4t0d4    00005 current 

   57614 /dev/dsk/c4t0d4    00006 current 

 

So There is a disk missing .

Do you agree?

 

Regards

 

Fernando

 

 

NDO
Super Advisor

Re: disk missing or F.S. corrupted

Hi Raj!

 

If I try your suggestion:

 

#fsck -F vxfs -m -y /dev/vg01/lvol7
vxfs fsck: sanity check: /dev/vg01/lvol7 needs checking

 

If I do what did previously:

 

fsck -F vxfs -o full -y /dev/vg01/lvol7
file system is larger than device
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...

 

 

Fernando

rariasn
Honored Contributor

Re: disk missing or F.S. corrupted

Hi Fernando:

 

man pvck

 

pvck should only be run on a device whose volume group has not been  activated.

 

# pvck -n /dev/rdsk/c4t0d3

 

verify output and

 

# pvck -y /dev/rdsk/c4t0d3

 

rgs,

rariasn
Honored Contributor
NDO
Super Advisor

Re: disk missing or F.S. corrupted

did you want me to run that comand specifically to c4t0d3 or any other that I suspect has the problem, for example when I do pvdisplay c43t0d5 shows that the disk is free

F.R.
uadmin_1
Occasional Contributor

Re: disk missing or F.S. corrupted

Hi FR,

 

have u ran any lvextend command on that lv ?

if you ran lvextend and doestn't ran fsadm then there is a chance to get this kind of problem.

if above is not the case then try below process

step 1: take backup of /etc/lvmtab
step 2: vgscan -v -p     # see weather it is throwing any action required message
step 3: vgscan -a        #
step 4: check with lvdisplay and vgdisplay
step 5: if anything wrong  with old configuration then replace /etc/lvmtab file with backup file ( Step 1 result file )

 

Regards,
Raj

rariasn
Honored Contributor

Re: disk missing or F.S. corrupted

Hi Fernando:

 

# vgchange -a y vg01

 

Put output from the comand

 

# vgdisplay -v vg01

 

 

rgs,

 

 

NDO
Super Advisor

Re: disk missing or F.S. corrupted

Hi

 

vgdisplay -v vg01
--- Volume groups ---
VG Name                     /dev/vg01
VG Write Access             read/write
VG Status                   available
Max LV                      250
Cur LV                      7
Open LV                     7
Max PV                      16
Cur PV                      9
Act PV                      8
Max PE per PV               63999
VGDA                        16
PE Size (Mbytes)            16
Total PE                    271455
Alloc PE                    213847
Free PE                     57608
Total PVG                   2
Total Spare PVs             0
Total Spare PVs in use      0

   --- Logical volumes ---
   LV Name                     /dev/vg01/lvol1
   LV Status                   available/syncd
   LV Size (Mbytes)            372000
   Current LE                  23250
   Allocated PE                23250
   Used PV                     2

   LV Name                     /dev/vg01/lvol2
   LV Status                   available/syncd
   LV Size (Mbytes)            381952
   Current LE                  23872
   Allocated PE                23872
   Used PV                     3

   LV Name                     /dev/vg01/lvol3
   LV Status                   available/syncd
   LV Size (Mbytes)            372000
   Current LE                  23250
   Allocated PE                23250
   Used PV                     2

   LV Name                     /dev/vg01/lvol4
   LV Status                   available/syncd
   LV Size (Mbytes)            400000
   Current LE                  25000
   Allocated PE                25000
   Used PV                     2

   LV Name                     /dev/vg01/lvol15
   LV Status                   available/syncd
   LV Size (Mbytes)            381952
   Current LE                  23872
   Allocated PE                23872
   Used PV                     4

   LV Name                     /dev/vg01/lvol6
   LV Status                   available/syncd
   LV Size (Mbytes)            921600
   Current LE                  57600
   Allocated PE                57600
   Used PV                     2

   LV Name                     /dev/vg01/lvol7
   LV Status                   available/syncd
   LV Size (Mbytes)            995280
   Current LE                  62205
   Allocated PE                62205
   Used PV                     4


   --- Physical volumes ---
   PV Name                     /dev/dsk/c4t0d1
   PV Name                     /dev/dsk/c9t0d1  Alternate Link
   PV Name                     /dev/dsk/c13t0d1 Alternate Link
   PV Name                     /dev/dsk/c18t0d1 Alternate Link
   PV Status                   available
   Total PE                    63991
   Free PE                     0
   Autoswitch                  On

   PV Name                     /dev/dsk/c4t0d2
   PV Name                     /dev/dsk/c9t0d2  Alternate Link
   PV Name                     /dev/dsk/c13t0d2 Alternate Link
   PV Name                     /dev/dsk/c18t0d2 Alternate Link
   PV Status                   available
   Total PE                    25596
   Free PE                     0
   Autoswitch                  On

   PV Name                     /dev/dsk/c43t0d2
   PV Name                     /dev/dsk/c42t0d2 Alternate Link
   PV Status                   available
   Total PE                    45434
   Free PE                     0
   Autoswitch                  On

   PV Name                     /dev/dsk/c42t0d1
   PV Status                   available
   Total PE                    45434
   Free PE                     0
   Autoswitch                  On

   PV Name                     /dev/dsk/c4t0d3
   PV Name                     /dev/dsk/c9t0d3  Alternate Link
   PV Name                     /dev/dsk/c13t0d3 Alternate Link
   PV Name                     /dev/dsk/c18t0d3 Alternate Link
   PV Status                   available
   Total PE                    28795
   Free PE                     0
   Autoswitch                  On

   PV Name                     /dev/dsk/c4t0d4
   PV Status                   available
   Total PE                    2559
   Free PE                     0
   Autoswitch                  On

   PV Name                     /dev/dsk/c4t0d5
   PV Status                   available
   Total PE                    2047
   Free PE                     9
   Autoswitch                  On

   PV Name                     /dev/dsk/c43t0d5
   PV Status                   available
   Total PE                    57599
   Free PE                     57599
   Autoswitch                  On


   --- Physical volume groups ---
   PVG Name                    PVG0
   PV Name                     /dev/dsk/c4t0d1
   PV Name                     /dev/dsk/c9t0d1
   PV Name                     /dev/dsk/c13t0d1
   PV Name                     /dev/dsk/c18t0d1
   PV Name                     /dev/dsk/c4t0d2
   PV Name                     /dev/dsk/c9t0d2
   PV Name                     /dev/dsk/c13t0d2
   PV Name                     /dev/dsk/c18t0d2
   PV Name                     /dev/dsk/c43t0d5

   PVG Name                    NETAPP
   PV Name                     /dev/dsk/c43t0d2

 

Regards

 

Fernando

NDO
Super Advisor

Re: disk missing or F.S. corrupted

Hi I have run vgscan -p -v and I did not get anything suspicious, apart from the one fact, vg01 will not have some disks that is showing now on vgdisplay -v /dev/vg01:

vgscan -v -p
vgscan: The physical volume "/dev/dsk/c2t1d0s2" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c4t0d1" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c4t0d2" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c4t0d3" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c4t0d4" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c4t0d5" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c9t0d1" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c9t0d2" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c9t0d3" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c13t0d1" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c13t0d2" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c13t0d3" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c18t0d1" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c18t0d2" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c18t0d3" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c42t0d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c42t0d1" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c42t0d2" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c42t0d3" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c43t0d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c43t0d2" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c43t0d3" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c43t0d5" is already recorded in the "/etc/lvmtab" file.
Current path "/dev/dsk/c9t0d1" is an alternate link, skip.
Current path "/dev/dsk/c9t0d2" is an alternate link, skip.
Current path "/dev/dsk/c9t0d3" is an alternate link, skip.
Current path "/dev/dsk/c13t0d1" is an alternate link, skip.
Current path "/dev/dsk/c13t0d2" is an alternate link, skip.
Current path "/dev/dsk/c13t0d3" is an alternate link, skip.
Current path "/dev/dsk/c18t0d1" is an alternate link, skip.
Current path "/dev/dsk/c18t0d2" is an alternate link, skip.
Current path "/dev/dsk/c18t0d3" is an alternate link, skip.
Current path "/dev/dsk/c42t0d0" is an alternate link, skip.
Current path "/dev/dsk/c42t0d2" is an alternate link, skip.
Current path "/dev/dsk/c42t0d3" is an alternate link, skip.
Couldn't stat physical volume "/dev/dsk/c0t0d0":
Invalid argument
Physical Volume "/dev/dsk/c2t0d0" contains no LVM information


/dev/vg00
/dev/dsk/c2t1d0s2
/dev/dsk/c42t0d0
/dev/dsk/c43t0d0



/dev/vg01
/dev/dsk/c4t0d1
/dev/dsk/c4t0d2
/dev/dsk/c4t0d3
/dev/dsk/c4t0d4
/dev/dsk/c4t0d5
/dev/dsk/c6t0d1
/dev/dsk/c6t0d2
/dev/dsk/c6t0d3
/dev/dsk/c6t0d4
/dev/dsk/c6t0d5
/dev/dsk/c9t0d1
/dev/dsk/c9t0d2
/dev/dsk/c9t0d3
/dev/dsk/c9t0d4
/dev/dsk/c9t0d5
/dev/dsk/c11t0d1
/dev/dsk/c11t0d2
/dev/dsk/c11t0d3
/dev/dsk/c11t0d4
/dev/dsk/c11t0d5
/dev/dsk/c13t0d1
/dev/dsk/c13t0d2
/dev/dsk/c13t0d3
/dev/dsk/c13t0d4
/dev/dsk/c13t0d5
/dev/dsk/c15t0d1
/dev/dsk/c15t0d2
/dev/dsk/c15t0d3
/dev/dsk/c15t0d4
/dev/dsk/c15t0d5
/dev/dsk/c18t0d1
/dev/dsk/c18t0d2
/dev/dsk/c18t0d3
/dev/dsk/c18t0d4
/dev/dsk/c18t0d5
/dev/dsk/c20t0d1
/dev/dsk/c20t0d2
/dev/dsk/c20t0d3
/dev/dsk/c20t0d4
/dev/dsk/c20t0d5
/dev/dsk/c42t0d1
/dev/dsk/c42t0d2
/dev/dsk/c42t0d5
/dev/dsk/c43t0d1
/dev/dsk/c43t0d2
/dev/dsk/c43t0d5
/dev/dsk/c22t0d1
/dev/dsk/c22t0d2
/dev/dsk/c22t0d3
/dev/dsk/c22t0d4
/dev/dsk/c22t0d5
/dev/dsk/c24t0d1
/dev/dsk/c24t0d2
/dev/dsk/c24t0d3
/dev/dsk/c24t0d4
/dev/dsk/c24t0d5
/dev/dsk/c27t0d1
/dev/dsk/c27t0d2
/dev/dsk/c27t0d3
/dev/dsk/c27t0d4
/dev/dsk/c27t0d5
/dev/dsk/c29t0d1
/dev/dsk/c29t0d2
/dev/dsk/c29t0d3
/dev/dsk/c29t0d4
/dev/dsk/c29t0d5
/dev/dsk/c31t0d1
/dev/dsk/c31t0d2
/dev/dsk/c31t0d3
/dev/dsk/c31t0d4
/dev/dsk/c31t0d5
/dev/dsk/c33t0d1
/dev/dsk/c33t0d2
/dev/dsk/c33t0d3
/dev/dsk/c33t0d4
/dev/dsk/c33t0d5
/dev/dsk/c36t0d1
/dev/dsk/c36t0d2
/dev/dsk/c36t0d3
/dev/dsk/c36t0d4
/dev/dsk/c36t0d5
/dev/dsk/c38t0d1
/dev/dsk/c38t0d2
/dev/dsk/c38t0d3
/dev/dsk/c38t0d4
/dev/dsk/c38t0d5



/dev/vg02
/dev/dsk/c42t0d3
/dev/dsk/c43t0d3

regards

F.R.