Super Block bad fix--actually bad redo

Source: Internet
Author: User

Today to the virtual machine on the/sirsi file system expansion, see where the VG is free pp (300G or more)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/58/wKiom1VG7OKQn0K6AAMDmXBfXNQ510.jpg "title=" 1.png " alt= "Wkiom1vg7okqn0k6aamdmxbfxnq510.jpg"/>

But:


unicorn:/#chfs-A Size=+300g/sirsi
chfs:0506-945 the/dev/fslv00 JFS2 filesystem superblock is corrupted.
unicorn:/#fsck-P/sirsi


The current volume is:/dev/fslv00
File system is currently mounted.
Unable to read primary superblock.
Unable to read either superblock.



according to degree Niang:http://www.loveunix.net/thread-58908-1-1.html

Try, but it's still not working.

unicorn:/#dd count=1 bs=4k skip=31 seek=1 if=/dev/fslv00 of=/dev/fslv00
DD: 0511-051 the read failed.
: A system call received a parameter it is not valid.
0+0 records in.
0+0 records out.
unicorn:/#fsck/dev/fslv00



The current volume are:/dev/fslv00
File system is currently mounted.
Unable to read primary superblock.
Unable to read either superblock.

There is no way, anyway, the data is useless to delete lv, but somehow Fsopen Failed:there is a request to a device or address That does not ex ist.

After some toss, finally Varyoff Datavg and EXPORTVG all error, but can not VARYONVG, because the VG under the LV is all activities can not umount, and before VARYOFFVG before this can not umount lv, in short, is a dead cycle, Had to restart Aix.


After reboot, the/sirsi file system is Umount, and all LV are off state.

unicorn:/#df-G
Filesystem GB blocks free%used iused%iused mounted on
/DEV/HD4 19.50 6.29 68% 5042 1%/
/DEV/HD2 10.00 8.56 15% 32847 2%/usr
/dev/hd9var 9.75 9.49 3% 4386 1%/var
/DEV/HD3 5.00 4.99 1% 1%/tmp
/DEV/HD1 0.25 0.25 1% 1%/Home
/proc-----/proc
/dev/hd10opt 0.25 0.15 42% 2232 7%/opt

unicorn:/#lsvg-L DATAVG

DATAVG:

LV NAME TYPE LPs PPs PVs LV State MOUNT Point

loglv00 Jfs2log 1 1 1 closed/syncd N/A

fslv00 JFS2 18608 18608 2 Closed/syncd/sirsi

FSLV01 JFS2 306 306 1 closed/syncd/fslv00


Then I closed the VG and export it


unicorn:/#varyoffvg Datavg

unicorn:/#exportvg Datavg

unicorn:/#


After VARYONVG obviously should not be able to varyon, and to the inside any FS, LV.
unicorn:/#varyonvg Datavg
0516-008 VARYONVG:LVM system call returned an unknown
Error code (3).
unicorn:/#rmfs/sirsi
rmfs:0506-915 No record Matching/sirsi was found In/etc/filesystems.
unicorn:/#rmlv/DEV/FSLV01
Warning, all data contained on logical VOLUME/DEV/FSLV01 would be destroyed.
Rmlv:do wish to continue? Y (es) n (o)? Y
0516-306 getlvodm:unable to Find/dev/fslv01 in the Device
Configuration Database.
0516-912 rmlv:unable to remove logical volume/dev/fslv01.

unicorn:/#rmlv/dev/fslv00
Warning, all data contained on logical volume/dev/fslv00 would be destroyed.
Rmlv:do wish to continue? Y (es) n (o)? Yes
0516-306 getlvodm:unable to find/dev/fslv00 in the Device
Configuration Database.
0516-912 rmlv:unable to remove logical volume/dev/fslv00.


At this point, lsvg can see that Datavg is gone.
unicorn:/#lsvg
Rootvg


At this time to observe the PV, are none, you can do a new VG.

unicorn:/#savebase
unicorn:/#lspv
Hdisk0 00cb2ee577b260d8 ROOTVG Active
Hdisk1 00cb2ee5d8a4af69 ROOTVG Active
Hdisk2 00cb2ee53b98536b None
HDISK3 00cb2ee5ca400c87 None


————————————————————————————————————————————————————————————————

Start re-building VG

————————————————————————————————————————————————————————————————


1, due to prevent before the Pvid re-odm in no refresh

Therefore, I

unicorn:/# chdev-l Hdisk2-a pv=clear

Hdisk2 changed

unicorn:/# chdev-l Hdisk3-a pv=clear

HDISK3 changed

unicorn:/#


2. New Pvid for two disks

unicorn:/#chdev-L hdisk3-a Pv=yes
HDISK3 changed
unicorn:/#chdev-L hdisk2-a Pv=yes
Hdisk2 changed
unicorn:/#


3. New VG, but reported that the two PV in the VG occupied, before the datavg I have cleared the wool still occupy a yarn? Checked a bit by which VG occupy, but get a bunch of heavenly book??

unicorn:/#mkvg-y datavg hdisk2 hdisk3
0516-1398 mkvg:the Physical Volume Hdisk2, appears to belong to
Another volume group. Use the force option to add this physical volume
to a volume group.
0516-1398 mkvg:the Physical Volume Hdisk3, appears to belong to
Another volume group. Use the force option to add this physical volume
to a volume group.
0516-862 mkvg:unable to create volume group.


unicorn:/#lqueryvg-P Hdisk2
512
24
19482
3
2
3
0
32512
4
1
1
0
0
38397
128
0
0
0
0
0
16128


艹, did the datavg that were previously deleted still haunt?

unicorn:/#reducevg-D datavg hdisk2
0516-306 getlvodm:unable to find volume group Datavg in the Device
Configuration Database.
0516-882 reducevg:unable to reduce volume group.
unicorn:/#man LQUERYVG
Manual entry for LQUERYVG no found or not installed.


I don't care, I'm on force, okay? Don't ask me what the consequences are.

unicorn:/#mkvg-F-y datavg hdisk2 hdisk3

Datavg

unicorn:/#lsvg

Rootvg

Datavg

unicorn:/#lsvg Datavg

VOLUME Group:datavg VG Identifier:00cb2ee500004c000000014d1cf537ea

VG state:active PP size:512 megabyte (s)

VG permission:read/write Total pps:1198 (613376 megabytes)

MAX lvs:256 free pps:1198 (613376 megabytes)

lvs:0 used pps:0 (0 megabytes)

OPEN lvs:0 quorum:2 (Enabled)

Total Pvs:2 VG Descriptors:3

STALE pvs:0 STALE pps:0

ACTIVE pvs:2 AUTO On:yes

MAX PPs per vg:32512

Max PPs per pv:1016 MAX pvs:32

LTG size (Dynamic): kilobyte (s) AUTO Sync:no

Hot Spare:no BB policy:relocatable

unicorn:/#


Beauty, go in.

unicorn:/#lsvg-P DATAVG
DATAVG:
Pv_name PV State Total pps free PPS free distribution
Hdisk2 Active 399 399 80..80..79..80..80
HDISK3 Active 799 799 160..160..159..160..160


Creating a file system

unicorn:/#crfs-v jfs2-g datavg-m/sirsi-a size=550g-a agblksize=2048-a logname=inline
File system created successfully.
576118228 kilobytes total disk space.
New File System size is 1153433600



Mount, and modify the boot auto mount

#mount/sirsi

#vi/etc/filesystems


Omit front *******

/sirsi:
dev =/dev/fslv00
VFS = JFS2
Log = INLINE
mount = Automatic
Account = False


o ~ ~ to drink the chicken soup ~


Unicorn:/etc #df-G

Filesystem GB blocks free%used iused%iused mounted on

/DEV/HD4 19.50 6.29 68% 5036 1%/

/DEV/HD2 10.00 8.56 15% 32847 2%/usr

/dev/hd9var 9.75 9.49 3% 4385 1%/var

/DEV/HD3 5.00 4.99 1% 1%/tmp

/DEV/HD1 0.25 0.25 1% 1%/Home

/proc-----/proc

/dev/hd10opt 0.25 0.15 42% 2232 7%/opt

/dev/fslv00 550.00 549.29 1% 4 1%/sirsi


This article from the "8420107" blog, reproduced please contact the author!

Super Block bad fix--actually bad redo

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.