Hi mark

I was looking to just move/grow the one mount point only, short term I will 
create specific mount points with a new Mod 9 behind it, the next install I 
will go LVM from the start.

Thanks

Regards
Gerard Ceruti 
may the 'z' be with you


-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Mark Perry
Sent: 08 July 2008 04:08 PM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Convert existing mount point to LVM

Ceruti, Gerard G wrote:
> Hi All
>
> Our current disk layout has specific mount points with MOD 9's behind ,
> we now need more space on one specific mount point,
>
> Is it possible to turn this mount point into a LVM configuration without
> moving the data off ?.
>
> Looking at the doco , the current plan would be to move all the data off
> the mount point, delete it then recreate it as LVM and then copy all the
> data back ?.
>

You email is a little confusing?
If I replace all of the occurrences of "mount point(s)" with
"filesystem(s)" is makes a little more sense.

You mention MOD-9s, so its fair to assume that you have a filesystem
that has now reached 6.8GB and is maxed out.

So you need to create at least 2 new PVs each of 1 by 3390-9. Add those
PVs to a new VG. Create an LV of > 6.8GB in the new VG.

Remember to add any new DASD device numbers to your zipl.conf (make a
backup first) and run zipl.

Now you have a choice. Create a new filsystem in the LV and play various
filesystem copy methods using "cp" or "tar", or directly copy the whole
filesystem using "dd".

For "dd", first unmount the existing filesystem. (or at least remount it
RO using "mount -oremount,ro /dev/dasdx1".)
(It would probably be a good idea to run e2fsck on it at this point.)
Use "dd" to copy the /dev/dasdx1 to /dev/vgname/lvname.
"dd if=/dev/dasdx1 of=/dev/vgname/lvname"

Then run resize2fs on /dev/vgname/lvname to grow your filsystem into the
new and larger LV.
(Again running e2fsck on the new LV would be a good idea)

Remember to update your /etc/fstab (make a backup first) with the new LV
/dev/vgname/lvname in place of your old filesystem /dev/dasdx1.
"mount /dev/vgname/lvname" should now mount it in place of the old
filsystem.

If the new filesystem verifies OK - you be the judge of that. Then you
can recycle the old MOD-9. If there are problems then use the backup
copy of your /etc/fstab to remount the old filesystem.

There are many ways to skin a cat, the above is but one of them ;-)
mark

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

_____________________________________________________________________________________________________________________________________

Standard Bank email Disclaimer and confidentiality note

This e-mail, its attachments and any rights attaching hereto are, unless the 
content clearly indicates otherwise, the property of 
Standard Bank Group Limited and its subsidiaries. It is confidential, private 
and intended for only the addressee. 

Should you not be the addressee and receive this e-mail by mistake, kindly 
notify the sender, and delete this e-mail immediately.
Do not disclose or use it in any way. Views and opinions expressed in this 
e-mail are those of the sender unless clearly stated as 
those of Standard Bank Group. 

Standard Bank Group accepts no liability for any loss or damages howsoever 
incurred, or suffered, resulting, or arising, 
from the use of this email or its attachments. 

Standard Bank Group does not warrant the integrity of this e-mail nor that it 
is free of errors, viruses, interception or interference. 

Licensed divisions of the Standard Bank Group are authorised financial services 
providers in terms of the Financial Advisory and 
Intermediary Services Act, No 37 of 2002 (FAIS).

For information about the Standard Bank Group visit our website 
http://www.standardbank.com
________________________________________________________________________________________________________________________________________

Reply via email to