Results 1 to 10 of 10
-
01-12-2014, 10:25 PM #1Aspiring Evangelist
- Join Date
- Apr 2013
- Location
- Boston, MA
- Posts
- 400
Lost LVM Volume Group. What's the procedure to recover it?
After a reboot, the volume group on my server completely disappeared.
Code:[root@dal01 log]# vgdisplay No volume groups found [root@dal01 /]# lvdisplay No volume groups found [root@dal01 log]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 97G 72G 21G 78% / tmpfs 12G 0 12G 0% /dev/shm [root@dal01 log]# fdisk -l WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sda: 4000.0 GB, 3999977701376 bytes 255 heads, 63 sectors/track, 486302 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sda1 1 267350 2147483647+ ee GPT [root@dal01 log]#
vgcfgrestore says this:
Code:[root@dal01 backup]# vgcfgrestore vg_dal01 Couldn't find device with uuid EUBjbv-JVpH-6QLv-yAxX-dopZ-CDHg-BOcpXa. Cannot restore Volume Group vg_dal01 with 1 PVs marked as missing. Restore failed.
Code:[root@dal01 backup]# cat /etc/lvm/backup/vg_dal01 # Generated by LVM2 version 2.02.100(2)-RHEL6 (2013-10-23): Wed Dec 11 01:56:09 2013 contents = "Text Format Volume Group" version = 1 description = "Created *after* executing 'lvcreate -n kvm109_img_4 --size 5120m vg_dal01'" creation_host = "myserver" # Linux myserver 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 creation_time = 1386744969 # Wed Dec 11 01:56:09 2013 vg_dal01 { id = "hahYN8-jcKS-sSVi-RAcp-lOSh-0Mfl-gerfKs" seqno = 21 format = "lvm2" # informational status = ["RESIZEABLE", "READ", "WRITE"] flags = [] extent_size = 65536 # 32 Megabytes max_lv = 0 max_pv = 0 metadata_copies = 0 physical_volumes { pv0 { id = "EUBjbv-JVpH-6QLv-yAxX-dopZ-CDHg-BOcpXa" device = "/dev/sda3" # Hint only status = ["ALLOCATABLE"] flags = [] dev_size = 7573082112 # 3.52649 Terabytes pe_start = 2048 pe_count = 115556 # 3.52649 Terabytes } } logical_volumes { kvm102_img { id = "dzpPcD-Dw31-fYDV-8OTv-YuX4-HWK1-mWnKR8" status = ["READ", "WRITE", "VISIBLE"] flags = [] creation_host = "myserver" creation_time = 1384023518 # 2013-11-09 13:58:38 -0500 segment_count = 1 segment1 { start_extent = 0 extent_count = 3200 # 100 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 0 ] } } kvm108_img { id = "odqzve-SWLr-pKsH-4Qj4-lflF-mFBn-6l6Lu3" status = ["READ", "WRITE", "VISIBLE"] flags = [] creation_host = "myserver" creation_time = 1384086241 # 2013-11-10 07:24:01 -0500 segment_count = 1 segment1 { start_extent = 0 extent_count = 6400 # 200 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 3200 ] } } kvm109_img { id = "RBTo23-NOq2-rcI1-slnN-jYeM-rHZu-IYzR4T" status = ["READ", "WRITE", "VISIBLE"] flags = [] creation_host = "myserver" creation_time = 1384122997 # 2013-11-10 17:36:37 -0500 segment_count = 1 segment1 { start_extent = 0 extent_count = 320 # 10 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 9600 ] } } kvm110_img { id = "op2Hez-UiDs-Nm6M-OuI6-1uaJ-cc9H-jJDH4q" status = ["READ", "WRITE", "VISIBLE"] flags = [] creation_host = "myserver" creation_time = 1385452338 # 2013-11-26 02:52:18 -0500 segment_count = 1 segment1 { start_extent = 0 extent_count = 27200 # 850 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 9920 ] } } kvm110_img_3 { id = "Zsm1Yj-QrZH-okcf-KhF6-ic1M-tNpF-jrA3Sh" status = ["READ", "WRITE", "VISIBLE"] flags = [] creation_host = "myserver" creation_time = 1386744381 # 2013-12-11 01:46:21 -0500 segment_count = 1 segment1 { start_extent = 0 extent_count = 12800 # 400 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 37120 ] } } kvm109_img_4 { id = "w98qm2-0pK0-xjW4-1lyj-UNP0-xc1F-FeeSVK" status = ["READ", "WRITE", "VISIBLE"] flags = [] creation_host = "myserver" creation_time = 1386744969 # 2013-12-11 01:56:09 -0500 segment_count = 1 segment1 { start_extent = 0 extent_count = 160 # 5 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 49920 ] } } } }
I found this link: http://www.centos.org/docs/5/html/Cl...tarecover.html but I'm not sure it is the way to go.
Anybody care to help, please?
-
02-12-2014, 03:23 PM #2
Restoring the backup should work, I had a staff member wipe the drive with nulls one time and it worked fine for me
Last edited by Postbox; 02-13-2014 at 07:36 AM. Reason: At poster's request
█► AllWorldIT ~ ISP / Hosting Provider / Government / Carrier Solutions
█► HostOnARope ~ 24/7 Support ● Shared Hosting ● Reseller Hosting ● VPS Servers
█► www.hostonarope.com | AllWorldIT Online Product Range | visit AllWorldIT.com
█► Official Proxmox Partner ~ UK/USA/ZA ● Support & SLA's Available
-
02-12-2014, 04:52 PM #3Web Hosting Master
- Join Date
- Dec 2005
- Posts
- 3,110
As long as you've not written over it, you can do a vgcfgrestore from the most recent file in /etc/lvm/archive.
If all you've done is a reboot though you shouldnt need to do this, it could just be the volume group is inactive.
What happens if you do pvscan and vgscan?
-
02-12-2014, 07:20 PM #4
Last edited by Postbox; 02-13-2014 at 07:37 AM.
IOFLOOD.com -- We Love Servers
Phoenix, AZ Dedicated Servers in under an hour
★ Ryzen 9: 7950x3D ★ Dual E5-2680v4 Xeon ★
Contact Us: sales@ioflood.com ★
-
02-12-2014, 07:20 PM #5IOFLOOD.com -- We Love Servers
Phoenix, AZ Dedicated Servers in under an hour
★ Ryzen 9: 7950x3D ★ Dual E5-2680v4 Xeon ★
Contact Us: sales@ioflood.com ★
-
02-13-2014, 01:52 AM #6
Last edited by Postbox; 02-13-2014 at 07:37 AM.
█► AllWorldIT ~ ISP / Hosting Provider / Government / Carrier Solutions
█► HostOnARope ~ 24/7 Support ● Shared Hosting ● Reseller Hosting ● VPS Servers
█► www.hostonarope.com | AllWorldIT Online Product Range | visit AllWorldIT.com
█► Official Proxmox Partner ~ UK/USA/ZA ● Support & SLA's Available
-
02-13-2014, 07:38 AM #7
-
02-14-2014, 03:37 AM #8WHT Addict
- Join Date
- Jul 2008
- Location
- Dallas, TX
- Posts
- 107
If you have the ability to clone the drive to a spare that may be a good idea so you can try some suggestions online without having to worry about data loss.
Ryan G. - Limestone Networks - Network Engineer
Cloud, Dedicated, & Enterprise Hosting - Premium Network - Passionate Support
Resell Dedicated Servers - @LimestoneInc - 877.586.0555 x1
-
02-18-2014, 12:30 PM #9Aspiring Evangelist
- Join Date
- Apr 2013
- Location
- Boston, MA
- Posts
- 400
-
02-18-2014, 12:32 PM #10WHT Addict
- Join Date
- Jul 2008
- Location
- Dallas, TX
- Posts
- 107
Ryan G. - Limestone Networks - Network Engineer
Cloud, Dedicated, & Enterprise Hosting - Premium Network - Passionate Support
Resell Dedicated Servers - @LimestoneInc - 877.586.0555 x1
Similar Threads
-
How to resize root Volume Group
By aqoz in forum Hosting Security and TechnologyReplies: 3Last Post: 10-30-2012, 09:42 AM -
can't recover LVM volume: Please specify a *single* volume group to restore
By SoftDux in forum Dedicated ServerReplies: 1Last Post: 08-04-2011, 11:34 AM -
Lost power in middle of recovery procedure... now I'm screwed.....
By Frosty in forum Computers and PeripheralsReplies: 1Last Post: 12-25-2007, 02:09 PM -
possible to recover a lost password?
By briansol in forum Hosting Security and TechnologyReplies: 4Last Post: 01-02-2007, 05:58 AM -
1and1.com -- How can I recover a lost customer id?
By sofakng in forum Web HostingReplies: 38Last Post: 11-22-2003, 07:49 AM