Hi all,
I been trying to recover a volume group of single PV.
vgcfgrestore output
fdisk output
The disk which holds LVM metadata and data
Code:
[root@tkdb ~]# fdisk /dev/sdj
The number of cylinders for this disk is set to 1435.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdj: 11.8 GB, 11811160064 bytes
255 heads, 63 sectors/track, 1435 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdj1 1 1435 11526606 83 Linux
Command (m for help): q
pvcreate output
Code:
[root@tkdb ~]# pvcreate -u a3onP5-RdbR-fdgq-sDkS-ZtFs-83Q5-kFJj43 --restorefile /etc/lvm/backup/vgoraData /dev/sdj
Couldn't find device with uuid 'a3onP5-RdbR-fdgq-sDkS-ZtFs-83Q5-kFJj43'.
Device /dev/sdj not found (or ignored by filtering).
pvcreate with verbose output
Code:
[root@tkdb ~]# pvcreate -vv -u a3onP5-RdbR-fdgq-sDkS-ZtFs-83Q5-kFJj43 --restorefile /etc/lvm/backup/vgoraData /dev/sdj
Setting global/locking_type to 1
File-based locking selected.
Setting global/locking_dir to /var/lock/lvm
/dev/ramdisk: size is 32768 sectors
/dev/ramdisk: size is 32768 sectors
/dev/ramdisk: No label detected
/dev/sda: size is 16777216 sectors
/dev/md0: size is 0 sectors
/dev/root: size is 10223616 sectors
/dev/root: size is 10223616 sectors
/dev/root: No label detected
/dev/ram: size is 32768 sectors
/dev/ram: size is 32768 sectors
/dev/ram: No label detected
/dev/sda1: size is 208782 sectors
/dev/sda1: size is 208782 sectors
/dev/sda1: No label detected
/dev/vg00/lv_home: size is 2097152 sectors
/dev/vg00/lv_home: size is 2097152 sectors
/dev/vg00/lv_home: No label detected
/dev/ram2: size is 32768 sectors
/dev/ram2: size is 32768 sectors
/dev/ram2: No label detected
/dev/sda2: size is 2104515 sectors
/dev/sda2: size is 2104515 sectors
/dev/sda2: No label detected
/dev/vg00/lv_var: size is 2097152 sectors
/dev/vg00/lv_var: size is 2097152 sectors
/dev/vg00/lv_var: No label detected
/dev/ram3: size is 32768 sectors
/dev/ram3: size is 32768 sectors
/dev/ram3: No label detected
/dev/sda3: size is 14458500 sectors
/dev/sda3: size is 14458500 sectors
/dev/sda3: lvm2 label detected
/dev/vgSLab/lv-oraHome: size is 14671872 sectors
/dev/vgSLab/lv-oraHome: size is 14671872 sectors
/dev/vgSLab/lv-oraHome: No label detected
/dev/ram4: size is 32768 sectors
/dev/ram4: size is 32768 sectors
/dev/ram4: No label detected
/dev/vgSLab/lv-oraDB: size is 48226304 sectors
/dev/vgSLab/lv-oraDB: size is 48226304 sectors
/dev/vgSLab/lv-oraDB: No label detected
/dev/ram5: size is 32768 sectors
/dev/ram5: size is 32768 sectors
/dev/ram5: No label detected
/dev/vgSLabUAT/lv-oraUAT: size is 33529856 sectors
/dev/vgSLabUAT/lv-oraUAT: size is 33529856 sectors
/dev/vgSLabUAT/lv-oraUAT: No label detected
/dev/ram6: size is 32768 sectors
/dev/ram6: size is 32768 sectors
/dev/ram6: No label detected
/dev/ram7: size is 32768 sectors
/dev/ram7: size is 32768 sectors
/dev/ram7: No label detected
/dev/ram8: size is 32768 sectors
/dev/ram8: size is 32768 sectors
/dev/ram8: No label detected
/dev/ram9: size is 32768 sectors
/dev/ram9: size is 32768 sectors
/dev/ram9: No label detected
/dev/ram10: size is 32768 sectors
/dev/ram10: size is 32768 sectors
/dev/ram10: No label detected
/dev/ram11: size is 32768 sectors
/dev/ram11: size is 32768 sectors
/dev/ram11: No label detected
/dev/ram12: size is 32768 sectors
/dev/ram12: size is 32768 sectors
/dev/ram12: No label detected
/dev/ram13: size is 32768 sectors
/dev/ram13: size is 32768 sectors
/dev/ram13: No label detected
/dev/ram14: size is 32768 sectors
/dev/ram14: size is 32768 sectors
/dev/ram14: No label detected
/dev/ram15: size is 32768 sectors
/dev/ram15: size is 32768 sectors
/dev/ram15: No label detected
/dev/sdb: size is 20971520 sectors
/dev/sdb1: size is 20964762 sectors
/dev/sdb1: size is 20964762 sectors
/dev/sdb1: No label detected
/dev/sdc: size is 104857600 sectors
/dev/sdc1: size is 104856192 sectors
/dev/sdc1: size is 104856192 sectors
/dev/sdc1: No label detected
/dev/sdd: size is 16777216 sectors
/dev/sdd1: size is 16771797 sectors
/dev/sdd1: size is 16771797 sectors
/dev/sdd1: No label detected
/dev/sde: size is 125829120 sectors
/dev/sde1: size is 125829119 sectors
/dev/sde1: size is 125829119 sectors
/dev/sde1: No label detected
/dev/sdf: size is 25165824 sectors
/dev/sdf1: size is 25157727 sectors
/dev/sdf1: size is 25157727 sectors
/dev/sdf1: lvm2 label detected
/dev/sdg: size is 50331648 sectors
/dev/sdg1: size is 50331582 sectors
/dev/sdg1: size is 50331582 sectors
/dev/sdg1: lvm2 label detected
/dev/sdh: size is 8388608 sectors
/dev/sdh1: size is 8385867 sectors
/dev/sdh1: size is 8385867 sectors
/dev/sdh1: lvm2 label detected
/dev/sdi: size is 12582912 sectors
/dev/sdi1: size is 12578832 sectors
/dev/sdi1: size is 12578832 sectors
/dev/sdi1: lvm2 label detected
/dev/sdj: size is 23068672 sectors
/dev/sdj1: size is 23053212 sectors
/dev/sdj1: size is 23053212 sectors
/dev/sdj1: No label detected
/dev/ramdisk: No label detected
/dev/root: No label detected
/dev/ram: No label detected
/dev/sda1: No label detected
/dev/vg00/lv_home: No label detected
/dev/ram2: No label detected
/dev/sda2: No label detected
/dev/vg00/lv_var: No label detected
/dev/ram3: No label detected
/dev/vgSLab/lv-oraHome: No label detected
/dev/ram4: No label detected
/dev/vgSLab/lv-oraDB: No label detected
/dev/ram5: No label detected
/dev/vgSLabUAT/lv-oraUAT: No label detected
/dev/ram6: No label detected
/dev/ram7: No label detected
/dev/ram8: No label detected
/dev/ram9: No label detected
/dev/ram10: No label detected
/dev/ram11: No label detected
/dev/ram12: No label detected
/dev/ram13: No label detected
/dev/ram14: No label detected
/dev/ram15: No label detected
/dev/sdb1: No label detected
/dev/sdc1: No label detected
/dev/sdd1: No label detected
/dev/sde1: No label detected
/dev/sdj1: No label detected
Couldn't find device with uuid 'a3onP5-RdbR-fdgq-sDkS-ZtFs-83Q5-kFJj43'.
metadata/pvmetadatasize not found in config: defaulting to 255
metadata/pvmetadatacopies not found in config: defaulting to 1
/dev/ramdisk: No label detected
/dev/root: No label detected
/dev/ram: No label detected
/dev/sda1: No label detected
/dev/vg00/lv_home: No label detected
/dev/ram2: No label detected
/dev/sda2: No label detected
/dev/vg00/lv_var: No label detected
/dev/ram3: No label detected
/dev/vgSLab/lv-oraHome: No label detected
/dev/ram4: No label detected
/dev/vgSLab/lv-oraDB: No label detected
/dev/ram5: No label detected
/dev/vgSLabUAT/lv-oraUAT: No label detected
/dev/ram6: No label detected
/dev/ram7: No label detected
/dev/ram8: No label detected
/dev/ram9: No label detected
/dev/ram10: No label detected
/dev/ram11: No label detected
/dev/ram12: No label detected
/dev/ram13: No label detected
/dev/ram14: No label detected
/dev/ram15: No label detected
/dev/sdb1: No label detected
/dev/sdc1: No label detected
/dev/sdd1: No label detected
/dev/sde1: No label detected
/dev/sdj1: No label detected
Locking /var/lock/lvm/P_orphans WB
Unlocking /var/lock/lvm/P_orphans
Wiping cache of LVM-capable devices
Wiping internal VG cache
Locking /var/lock/lvm/P_orphans WB
/dev/sdj: size is 23068672 sectors
Device /dev/sdj not found (or ignored by filtering).
Unlocking /var/lock/lvm/P_orphans
Hi guys,
I have been Linux for quite a while yet, but am only getting into the LVM world just now, so I do want to ask a pretty basic question (I believe for someone with experience with it) I have a physical volume of /dev/sdc1 which contains a volume group call backup that contains 2 logical... (0 Replies)
Hey peeps,
Here is somethin u might find interestin....
Is it possible to recover data from a partition which used to be an ext3 file sytem with some nice forgotten backups, which now is an lvm partion containg root partition of another OS. :)
I couldn't create any mess better than this, can... (2 Replies)
Hello,
I would really appreciate help on recovering some data.
I have a RAID1 array under /dev/md0 composed of devices /dev/sdb and /dev/sdc. I had lvm on the raid with 3 lv, the last of which was a snapshot partition.
My / is on /dev/sda. Recently, I reinstalled the system (Debian lenny)... (7 Replies)
Hi All,
I created an lvm filesystem with a name with dash in the middle, like xxx-yyy (note, that it's only one dash).
I was able to create it smoothly with this instructions.
lvcreate -L 1G uservg -n xxx-yyy
ls /dev/uservg/xxx-yyy (check)
mkfs.ext3 /dev/uservg/xxx-yyy
mount... (1 Reply)
Hi,
I'm new to HP-UX.
I have LVM on /var with 92Gig. I would like to reduce it to create another LVM for Oracle client with 800 meg or so. How to do it. I'm running 11.iv3
Thanks (4 Replies)
i have os 5.1 and i do mirror with hdisk0 and hdisk1 on rootvg
at the end i get error in mail that:
At least one partition mirror is broken please call sysadmin
hd5 boot 1 2 2 closed/stale N/A
the other fs seems ok and sync
what to do about the hd5??? (4 Replies)
Hi,
I have extended the logical drive on my SMART ARRAY on a BL460 C class blade from 72G to 300G (disk upgrade RAID0+1).
It went fine and the new larger disks have now sync'ed up.
I now need to create additional disk space on my linux OS (RH) via LVM but I am unable to see the additional... (9 Replies)
Hi ,
I have 500 GB hard drive in my office server, previous employee installed fedora in to it, with 50 GB / and 120 GB (/opt/backup 15GB, /opt/test 5GB so on) . i have 180 GB free space left , so I have created LVM in 180 GB and moved all data from 120 GB to 180 .
Now i need to create lvm in... (1 Reply)
Hi
I am new on your forum, because I need some help.
I have a server with debian and proxmox 2.
The HardDisk is broken.
I am in rescue mode, and I can't mount LVM partition to recover my backups.
What I've already done :
# fdisk -l
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255... (0 Replies)