- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LVM issue
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2010 05:33 AM
тАО04-04-2010 05:33 AM
I did one disk replacement activity sucessfully. This disk was in vg vgospcm. two lvols (/bto, /home) points we residing on this disk
kz004099:root[/]# vgcfgrestore -n /dev/vg02 /dev/rdsk/c0t4d0
Volume Group configuration has been restored to /dev/rdsk/c0t4d0
kz004099:root[/]# vgchange -a y /dev/vg02
Activated volume group
Volume group "/dev/vg02" has been successfully changed.
but after disk replacement when I tried to mount /bto and /home I got following errors
kz004099:root[/dev/vg02]# mount /home
vxfs mount: /dev/vg02/lvol21 is not a vxfs file system.
kz004099:root[/dev/vg02]# mount /dev/vg02/lvol22 /bto
/dev/vg02/lvol22: unrecognized file system
kz004099:root[/dev/vg02]# mount /dev/vg02/lvol21 /home
/dev/vg02/lvol21: unrecognized file system
kz004099:root[/dev/vg02]# mount /dev/vg02/lvol22 /bto
/dev/vg02/lvol22: unrecognized file system
Then I ran fsck on both the lvols. Despite this /home and /bto not get mounted.
====================================
kz004099:root[/]# fsck -F vxfs -o full /dev/vg02/lvol21
invalid super-block
search for auxiliary super-block? (ynq)y
alternate super-block not found
vxfs fsck: cannot initialize aggregate
kz004099:root[/dev/vg02]# fsck -F vxfs -o full /dev/vg02/lvol22
invalid super-block
search for auxiliary super-block? (ynq)y
alternate super-block not found
vxfs fsck: cannot initialize aggregate
kz004099:root[/]# cd /dev/vg02
kz004099:root[/dev/vg02]# ls -lrt
total 0
crw-r----- 1 root sys 64 0x020016 Apr 20 1999 rlvol22
crw-r----- 1 root sys 64 0x020000 Apr 20 1999 group
crw-r----- 1 root sys 64 0x020015 Apr 20 1999 rlvol21
brw-r----- 1 root sys 64 0x020015 Dec 3 2006 lvol21
brw-r----- 1 root sys 64 0x020016 Dec 3 2006 lvol22
Plz Suggest on this
rahul
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2010 06:41 AM
тАО04-04-2010 06:41 AM
Re: LVM issue
It would appear there is no filesystem on your lgoical volume.
newfs -F vxfs /dev/vg02/rlvol22
will lay down a new file system if there are no other problems.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2010 06:42 AM
тАО04-04-2010 06:42 AM
Solution"......This disk was in vg vgospcm. "
What is vgospcm ? and you are restoring vg02 conf.
Coming to the issue...
Hope your lvols are not mirrored.
You need to create filesystems on the lvols , then mount it and restore the data.
#newfs /dev/vg02/rlvol21
#newfs /dev/vg02/rlvol22
#mount /home
#mount /bto
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2010 07:36 AM
тАО04-04-2010 07:36 AM
Re: LVM issue
The info provided by you all is very useful for me. This mean all the time when a unmirrored disk get replaced. we need to cerate file systems for lvols residing on that particular disk. m i going in right direction experts?
rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2010 07:48 AM
тАО04-04-2010 07:48 AM
Re: LVM issue
> This mean all the time when a unmirrored disk get replaced. we need to cerate file systems for lvols residing on that particular disk
Yes, correct. Your 'vgcfgrestore' adds the LVM metadata structures to the replaced disk but that's as far as it goes. The 'newfs' creates the filesystem metatdata within the logical volume. You must then restore any data you want from a backup.
Having mirrored logical volumes protects you from having to restore data from a backup. You 'vgcfgrestore' and then simply 'lvextend' your good mirror to the new disk. No 'newfs' is required nor should be done in this case.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2010 07:10 PM
тАО04-04-2010 07:10 PM
Re: LVM issue
vgcfgrestore only restore the LVM header. If you dont have a mirrored copy, your data is gone. You need to restore data from backup.