LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-10-2008, 11:52 PM   #1
thechic
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Rep: Reputation: 0
"pvresize" an existing PV after it's been resized on a SAN?


This is in Red Hat 4 Update 4 btw. Can you extend a SAN LUN (HP EVA) from to a blade (which is allocated as 250gb PV as /dev/sda1) in size to, say 160gb, and then extend the /dev/sda1 PV (which has data on it) without blowing away the data and/or without unmounting?

The easier solution would be to add a new LUN as a different PV (say, /dev/sdb1) and add that to the VG and then the LV, but I'd like to know if the other solution is possible? Or when the LUN has been resized, should we just create a new PV with a new LVM partition as /dev/sda2 and use that?

The man page for "pvresize" says it allows you to resize a PV that's already allocated in a VG (and mounted too?) & has active LVs allocated on it. However later on, the man pages says to run "pvresize /dev/sda1" which will "Expand the PV on /dev/sda1 after enlarging the partition with fdisk". Now if the LUN has been increased on the SAN level, and I rescan the LUNs ("hp_rescan" for HP devices) and see the new 160gb size when running "fdisk -l /dev/sda1", is that the same as "...enlarging the partition with fdisk" (which is what "man pvresize" says has to be done before running "pvresize")? If it is, then after that I know I can extend the LV after extending the VG (have done that before with mounted filesystems using LVM). But all the allocated cylinders are taken by the /dev/sda1 LVM partition according to "fdisk -l /dev/sda1" output. That fdisk output says it's 160gb in size but it along with the /dev/sda1 partition were 150gb to begin with. See below:


Disk /dev/sda: 161.0 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 19581 1
57284351 8e Linux LVM
 
  


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
connect debian etch to IBM SAN, meaning of "SNS scan failed" ? vmm_sys Linux - Enterprise 4 08-29-2007 04:37 AM
mplayer unable to locate the existing file "drv4.so.6.0" nissen Linux - Software 3 06-27-2007 01:31 AM
"Edit" existing post loses newlines on Konqueror wapcaplet LQ Suggestions & Feedback 1 12-04-2005 12:44 PM
"Refer To" option to point questioners to existing discussion/material sboddy LQ Suggestions & Feedback 6 12-01-2005 02:14 AM
Dual boot "merge" from existing 98 & existing Linux atsmith Linux - Newbie 4 07-13-2003 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:59 AM.

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