Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Volume expansion

Volume expansion

2006-06-08       - By Collins, Kevin [MindWorks]

 Back
Reply:     1     2     3     4     5     6     7  

No, you can't add a disk to a volume group without a pvcreate, which
will cause data loss.

-- --Original Message-- --
From: taroon-list-bounces@(protected)
[mailto:taroon-list-bounces@(protected)] On Behalf Of nathan r. hruby
Sent: Thursday, June 08, 2006 10:51 AM
To: Discussion of Red Hat Enterprise Linux 3 (Taroon)
Subject: Re: Volume expansion

On Thu, 8 Jun 2006, Ed Wilts wrote:

> I'll admit to not having done much with LVM and now I need to know
it...
> I've got a 400GB disk (/dev/sde1) mounted on /foo.  I want to double
> the volume size without creating a new volume and moving the existing
> data over.  I can't just move some directories to the new volume - it
> has to be one big volume when I'm done.  Any suggestions on how best
to
> do this with LVM in RHEL 3?  This is a SAN-based volume and it's
> possible that I can grab another 400GB on the same frame and grow the
> LUN if that makes it easier.

This ought to work (having not tested it, YMMV)
- grow_lun_from_san()
- vgextend $vg /dev/sde1
- vgdisplay and grab the number of total PE's
- lvextend -l $total_pe /dev/vg/lv
- umount /volume
- fsck -f /dev/vg/lv
- resize2fs -p /dev/vg/lv
- mount /volume

It may be that you can't vgextend a device already in a VG.  If that's
the
case, you can either

- make the remaining space on the LUN another partition and add it into
  the volume group instead (pvcreate /dev/sde2 ; vgextend $vg
/dev/sde2)

- make another lun and add it similar to the above, though the above
make
  for one nice shiny LUN, which might me easier

- Make an 800GB LUN, add it to the VG and then pvmove the data from one
  LUN to the other, then extend the lv and filesystem, and drop the
older
  small LUN our of the VG.

HTH,

-n

--
-- ---- ---- ---- ---- ---- ---- ---- -----
nathan hruby <nhruby@(protected)>
uga enterprise information technology services
core services  support
-- ---- ---- ---- ---- ---- ---- ---- -----
"In 1972 a crack commando unit was sent to
 prison by a military court for a crime they
 didn't commit...."

--
Taroon-list mailing list
Taroon-list@(protected)
https://www.redhat.com/mailman/listinfo/taroon-list



--
Taroon-list mailing list
Taroon-list@(protected)
https://www.redhat.com/mailman/listinfo/taroon-list