31 May 2013 @ 2:39 PM 

My server is dead now and I have 2 HDD drives with LVM on them. So I’ve decided to add these drives into another server, so I’ll be able to get data.
So what I’m going to do?
1. You need to add your drives into your server, and reboot it (if you have hot-swap HDDs, no reboot is required).

2. Your system should find those HDDs, check yourself:
fdisk -l
There should be few drives to be sure you see your new drives you can compare serials on the HDD side and via:
hdparm -i /dev/sd* or
hdparm -i /dev/hd* or
hdparm -i /dev/your_drive_name (usually its sda hda, anyway correct name you can see in result of fdisk -l)

3. Now you need to check, if your system can see your LVM Volume Groups:
vgscan
vgdisplay

Example of my one:
— Volume group —
VG Name vgdisk4
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 931,51 GB
PE Size 4,00 MB
Total PE 238466
Alloc PE / Size 238080 / 930,00 GB
Free PE / Size 386 / 1,51 GB
VG UUID 1yehuY-dAfQ-Ki2r-reMY-P33U-vlJg-Jyug7u

More »

Posted By: lvlind
Last Edit: 06 Oct 2016 @ 03:54 PM

EmailPermalinkComments Off on LVM HDD migration
Tags
Tags: , ,
Categories: Uncategorized

 Last 50 Posts
Change Theme...
  • Users » 1
  • Posts/Pages » 35
  • Comments » 0
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About



    No Child Pages.

Need Help?



    No Child Pages.

Check your IP



    No Child Pages.