LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-30-2009, 04:38 PM   #1
epoh
Member
 
Registered: Jan 2008
Posts: 75

Rep: Reputation: 15
Interesting situation - VM, LVM and missing storage!


RHEL5 - 2.6.18-92.1.6.0.2.el5
Running on an ESX3.5 host as a guest VM.

This server was built in one location on an ESX box and given a 125GB drive. The customer decided to move this server to Europe. It was shutdown and I'm assuming they took a snapshot then imported the snapshot into ESX on their side. The rub is that on the EU side they put the box on a 500GB drive. Of course, the OS and LVM don't know about this extra space.

fdisk sees the drive properly:

[root@server dev]# fdisk -l

Disk /dev/sda: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 19 152586 83 Linux
/dev/sda2 20 529 4096575 82 Linux swap / Solaris
/dev/sda3 530 20233 158272380 8e Linux LVM


But LVM does not:

[root@server dev]# pvdisplay /dev/sda
Failed to read physical volume "/dev/sda"
[root@server dev]# pvdisplay /dev/sda1
No physical volume label read from /dev/sda1
Failed to read physical volume "/dev/sda1"
[root@server dev]# pvdisplay /dev/sda2
No physical volume label read from /dev/sda2
Failed to read physical volume "/dev/sda2"
[root@server dev]# pvdisplay /dev/sda3
/dev/cdrom: open failed: No medium found
--- Physical volume ---
PV Name /dev/sda3
VG Name system
PV Size 150.94 GB / not usable 2.87 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 4830
Free PE 47
Allocated PE 4783
PV UUID QB4Acv-3enL-oiUM-JjRn-0vpc-MLmE-Pj1ROf

I'm not sure some combo of pvscan and lvscan might resolve this? Any help would be appreciated. This is a production DB server, so I don't want to just play around with it testing things.
 
Old 07-30-2009, 04:54 PM   #2
epoh
Member
 
Registered: Jan 2008
Posts: 75

Original Poster
Rep: Reputation: 15
Ok, so looking around it looks like pvresize may work. Does anyone know if this is safe to use while the db is up and running?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New Kubuntu8.1 with extra storage on LVM don_wombat_73 Linux - Software 0 12-08-2008 03:43 PM
problem to access iscsi storage with lvm dougbourne Linux - Server 0 07-21-2008 01:22 PM
Interesting Sound Situation Fedora 7 nomoreniceguy Linux - Newbie 0 01-12-2008 03:25 PM
Interesting Install Situation Bigun Linux - Newbie 3 08-17-2005 02:42 PM
Interesting Situation Bigun Linux - General 5 05-23-2003 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration