Linux LVM users
 help / color / mirror / Atom feed
From: "ThomasC." <shoktai@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] lvm and fstab
Date: Fri, 30 Jun 2006 09:33:31 +0200	[thread overview]
Message-ID: <44A4D3CB.4060902@gmail.com> (raw)
In-Reply-To: <44A3F773.5040800@conterra.de>

Dieter St�ken wrote:
> ThomasC. wrote:
>> I am using RHEL3.
>> I have been reading the LVM howto and it is very clear but i am missing
>> something anyways.
>> During the setup with DiskDruid i created a Volume group and two logical
>> volumes.
>> One LV for /opt and another one for /stage.
>> After rebooting the OS i don't have any /stage partition.
> 
> initializing LVM is a multi stage process.
> 
> 1. create the volume
> 
> 2. create LVs within the volume.
> 
> 3. format the LVs i.e. with "mke2fs"
> 
> 4. copy data to the LVs
> 
> 5. register the LVs with /etc/fstab to have them
>    available by default after each boot.
> 
> Don't know what "DiskDruid" is, but it seems it did not
> perform steps 4 and 5 automatically. May be you have to
> perform them by hand.
> 
> Todo:
> 
> Verify step 2) by entering "lvs" to get a list of all your
> LVs created. Try to mount one of your LVs manually.
> i.E. try "mount /dev/Volume00/LogVol00 /mnt" (if your
> LV is named "LogVol00", else choose the name the "lvs"
> command told you). If you get an error, you should try to
> format the LV by "mke2fs". Else you may look into /mnt
> if there is already some data (you should find an empty
> lost+found directory).
> 
> If there is no data, you may copy all your /opt to /mnt.
> Use: "cp -av /opt/* /mnt". Now you may umount /mnt.
> You may rename your current /opt into /opt-old and
> create a new empty /opt directory, then try:
> "mount /dev/Volume00/LogVol00 /opt".
> 
> If all looks good, you should add a line to your /etc/fstab
> to get /opt mounted by default. Test the entry by umounting
> your /opt again ("umount /opt") and try a "mount -a", which
> mounts all entries from /etc/fstab. If all works well, you will
> find /opt mounted again without any error messages.
> 
> Now you may try to reboot.
> 
> Same for /stage...
> 
> Tip:
> 
> If your "DiskDruid" named your volumes /dev/Volume00/LogVol00
> this is OK, but a big feature of LVM is, that the LV may have
> expressive names. So it may find it useful to "rename" your 
> /dev/Volume00/LogVol00 into "/dev/Volume00/OPT".
> 
> See: "man lvrename". 
> 
> Dieter
Thanks very much (all) for your valuable help. Dieter thanks very much 
the great explanation.

PS DiskDruid is the disk partitioning manager contained in RedHat 
installation.

      reply	other threads:[~2006-06-30  7:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-29 14:10 [linux-lvm] lvm and fstab ThomasC.
2006-06-29 14:23 ` Cristian Livadaru
2006-06-29 14:30   ` ThomasC.
2006-06-29 14:33     ` Cristian Livadaru
2006-06-29 14:36     ` Brian McCullough
2006-06-29 15:53 ` Dieter Stüken
2006-06-30  7:33   ` ThomasC. [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44A4D3CB.4060902@gmail.com \
    --to=shoktai@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox