From: Alexander Skwar <alexanders.mailinglists+nospam@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] mounting a filesystem on LVM2
Date: Tue, 5 Oct 2010 08:32:31 +0200 [thread overview]
Message-ID: <AANLkTina=tBEY2aCtSo3AsjOiMAqxWxobDFserPCV-HM@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimSuJmsruAbN5K+s8=DcrcVqB6BAbcyFhdTauF+@mail.gmail.com>
hi.
You seem to be confused about the steps that are required for
"getting a directory to store stuff" on Linux. Let me give you a
basic workflow:
In old fashioned partition setup:
a) Get a storage device (hard disk, SSD, FC, iSCSI, ...)
-> Result: Device "file" like /dev/sda
b) Split the storage device into chunks of wanted size ("partitions")
using tools like fdisk, cfdisk, parted === REQUIRED TO BE DONE!
-> Result: Device "files" like /dev/sda1, /dev/sda3, /dev/sda15
f) On those partitions, create a filesystem (eg. mkfs.ext3) or swap (mkswap)
g) Mount
In LVM, you'd do:
a) Get a storage device (hard disk, SSD, FC, iSCSI, ...)
-> Result: Device "file" like /dev/sda
b) Split the storage device into chunks of wanted size ("partitions")
using tools like fdisk, cfdisk, parted === COMPLETELY OPTIONAL!
-> Result: Device "files" like /dev/sda1, /dev/sda3, /dev/sda15
c) "Declare" the "storage spot" (/dev/sda, /dev/sda3, ...) as physical
volumes (pv) using pvcreate
d) Create a volume group (vg), using this/these pv(s)
e) On a vg, create logical volumes (lv) using lvcreate
f) On these/this lv, create a filesystem (eg. mkfs.ext3) or swap (mkswap)
g) mount
Steps a), f) and g) are identical in old fashioned way and LVM. Step
b) is required in partitioning way and optional in LVM setup.
It's also identical, that you only create ONE (1) filesystem on any
ONE (1) partition or lv. You do *NOT* create two or more filesystems
on one partition/lv (it's doable, but *EXTREMELY* unusual).
But that's also outlined in the LVM howto... Chapter 11.
http://tldp.org/HOWTO/LVM-HOWTO/commontask.html
You really should read it...
Alexander
2010/10/5 Tapas Mishra <mightydreams@gmail.com>:
> On Tue, Oct 5, 2010 at 9:01 AM, Ray Morris <support@bettercgi.com> wrote:
>>
>> partitions, just like any other block device.
>> Preferably use parted as opposed to fdisk, as
>> fdisk can support only up to 2 TB.
>
> You mean to say within the LVM if I use parted that way I will be able
> to create two different filesystems existing together.
> Until now what ever I came across internet is mkfs.ext3 and mkswapfs but
> they work on two different LVM and will convert those LVM into ext3
> and swap respectively.
> I want to break one LVM into 2 one of which I want to populate with a
> root filesystem
> and another with swap.
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
--
Alexander
--
↯ Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/ ↯
↯ Chat (Jabber/Google Talk) ↣ a.skwar@gmail.com , AIM: alexws77 ↯
next prev parent reply other threads:[~2010-10-05 6:33 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-04 8:02 [linux-lvm] mounting a filesystem on LVM2 Tapas Mishra
2010-10-04 14:46 ` Phillip Susi
2010-10-04 15:06 ` Tapas Mishra
2010-10-04 15:32 ` Tapas Mishra
2010-10-04 15:37 ` Ray Morris
2010-10-04 16:37 ` Alexander Skwar
2010-10-04 17:33 ` Tapas Mishra
2010-10-04 18:30 ` Alexander Skwar
2010-10-04 19:08 ` Tapas Mishra
2010-10-04 19:10 ` Tapas Mishra
2010-10-04 19:20 ` Tapas Mishra
2010-10-04 19:57 ` Alexander Skwar
2010-10-05 2:40 ` Tapas Mishra
2010-10-05 3:31 ` Ray Morris
2010-10-05 5:33 ` Tapas Mishra
2010-10-05 6:32 ` Alexander Skwar [this message]
2010-10-05 15:41 ` K. Richard Pixley
2010-10-05 15:55 ` Tapas Mishra
2010-10-05 15:56 ` Tapas Mishra
2010-10-05 14:40 ` Stuart D. Gathman
2010-10-05 6:24 ` Stuart D. Gathman
2010-10-05 7:30 ` Tapas Mishra
2010-10-05 14:25 ` Stuart D. Gathman
2010-10-05 15:53 ` Tapas Mishra
2010-10-05 6:33 ` Stuart D. Gathman
2010-10-04 20:03 ` Phillip Susi
2010-10-05 2:30 ` Tapas Mishra
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='AANLkTina=tBEY2aCtSo3AsjOiMAqxWxobDFserPCV-HM@mail.gmail.com' \
--to=alexanders.mailinglists+nospam@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;
as well as URLs for NNTP newsgroup(s).