linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Understanding if a disk is partioned with LVM or not
@ 2009-09-10  6:19 pent 5971
  2009-09-10  6:35 ` Luca Berra
  0 siblings, 1 reply; 5+ messages in thread
From: pent 5971 @ 2009-09-10  6:19 UTC (permalink / raw)
  To: linux-lvm

Hi,
Im new to this LVM stuff and still couldnt read and understand enough.
But i have a RHEL 5x box (which i didnt installed) and we have
phsically added a new disk which i have to create a file system to be
able to use it.  df -h command gives normal /var /data / partions, but
id like ask how can i understand if the first disk/sytem is created
with LVM , and if so (any other box can be so in the future) what is
best way to add the disk and crete the file system?

Regards

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Understanding if a disk is partioned with LVM or not
  2009-09-10  6:19 [linux-lvm] Understanding if a disk is partioned with LVM or not pent 5971
@ 2009-09-10  6:35 ` Luca Berra
  2009-09-10  8:35   ` pent 5971
  0 siblings, 1 reply; 5+ messages in thread
From: Luca Berra @ 2009-09-10  6:35 UTC (permalink / raw)
  To: linux-lvm

On Thu, Sep 10, 2009 at 09:19:29AM +0300, pent 5971 wrote:
>Hi,
>Im new to this LVM stuff and still couldnt read and understand enough.
>But i have a RHEL 5x box (which i didnt installed) and we have

rhel uses lvm by default
>phsically added a new disk which i have to create a file system to be
>able to use it.  df -h command gives normal /var /data / partions, but
first column of df output is the device, if it looks like /dev/sd?? or
/dev/hd?? it is a normal partition
if it looks like /dev/mapper/xxxxx-yyyy or /dev/xxxxx/yyyy it is
probably an lvm
also the commands vgs, lvs, and pvs help, i.e.
root@Moskowskaya # vgs
   VG   #PV #LV #SN Attr  VSize   VFree
   vg00   1   7   0 wz--n 232.81G 10.81G
root@Moskowskaya # pvs
   PV         VG   Fmt  Attr PSize   PFree
   /dev/sda   vg00 lvm2 a-   232.81G 10.81G


>id like ask how can i understand if the first disk/sytem is created
>with LVM , and if so (any other box can be so in the future) what is
>best way to add the disk and crete the file system?
woah, well, the simple answer is: there is no best way, you have to
evaluate the pros and cons yourself.

you could add the new disk to the existing volume group, which would
give you the advantage of using avaliable space as a single pool and
being able to create/extend existing logical volumes/filesystems using
both disks. with the disadvantage of being more painful to recover in
case one of the disks fails.
you could create a new volume group using the new disk, or create a
partition if you are more confortable, or even use the whole device for
the new filesystem.

L.

-- 
Luca Berra -- bluca@comedia.it
         Communication Media & Services S.r.l.
  /"\
  \ /     ASCII RIBBON CAMPAIGN
   X        AGAINST HTML MAIL
  / \

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Understanding if a disk is partioned with LVM or not
  2009-09-10  6:35 ` Luca Berra
@ 2009-09-10  8:35   ` pent 5971
  2009-09-11 13:39     ` André Gillibert
  0 siblings, 1 reply; 5+ messages in thread
From: pent 5971 @ 2009-09-10  8:35 UTC (permalink / raw)
  To: LVM general discussion and development

Hi,
Luca thanks for your answer . the disk seems to be regular one. So for
the new added disk
i have followed the
http://jamesthornton.com/redhat/linux/7.3/Reference-Guide/s1-filesystem-ext3-create.html
 and rebooted the server (edited the fstab ). But the disk doesnt seem
to be
mounted . So what can be the problem?

Regards

2009/9/10, Luca Berra <bluca@comedia.it>:
> On Thu, Sep 10, 2009 at 09:19:29AM +0300, pent 5971 wrote:
>>Hi,
>>Im new to this LVM stuff and still couldnt read and understand enough.
>>But i have a RHEL 5x box (which i didnt installed) and we have
>
> rhel uses lvm by default
>>phsically added a new disk which i have to create a file system to be
>>able to use it.  df -h command gives normal /var /data / partions, but
> first column of df output is the device, if it looks like /dev/sd?? or
> /dev/hd?? it is a normal partition
> if it looks like /dev/mapper/xxxxx-yyyy or /dev/xxxxx/yyyy it is
> probably an lvm
> also the commands vgs, lvs, and pvs help, i.e.
> root@Moskowskaya # vgs
>    VG   #PV #LV #SN Attr  VSize   VFree
>    vg00   1   7   0 wz--n 232.81G 10.81G
> root@Moskowskaya # pvs
>    PV         VG   Fmt  Attr PSize   PFree
>    /dev/sda   vg00 lvm2 a-   232.81G 10.81G
>
>
>>id like ask how can i understand if the first disk/sytem is created
>>with LVM , and if so (any other box can be so in the future) what is
>>best way to add the disk and crete the file system?
> woah, well, the simple answer is: there is no best way, you have to
> evaluate the pros and cons yourself.
>
> you could add the new disk to the existing volume group, which would
> give you the advantage of using avaliable space as a single pool and
> being able to create/extend existing logical volumes/filesystems using
> both disks. with the disadvantage of being more painful to recover in
> case one of the disks fails.
> you could create a new volume group using the new disk, or create a
> partition if you are more confortable, or even use the whole device for
> the new filesystem.
>
> L.
>
> --
> Luca Berra -- bluca@comedia.it
>          Communication Media & Services S.r.l.
>   /"\
>   \ /     ASCII RIBBON CAMPAIGN
>    X        AGAINST HTML MAIL
>   / \
>
> _______________________________________________
> 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/
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Understanding if a disk is partioned with LVM or not
  2009-09-10  8:35   ` pent 5971
@ 2009-09-11 13:39     ` André Gillibert
  2009-09-11 19:00       ` pent 5971
  0 siblings, 1 reply; 5+ messages in thread
From: André Gillibert @ 2009-09-11 13:39 UTC (permalink / raw)
  To: linux-lvm

pent 5971 <pent5971@gmail.com> wrote:
> Hi,
> Luca thanks for your answer . the disk seems to be regular one. So for
> the new added disk
> i have followed the
> http://jamesthornton.com/redhat/linux/7.3/Reference-Guide/s1-filesystem-ext3-create.html
>  and rebooted the server (edited the fstab ). But the disk doesnt seem
> to be
> mounted . So what can be the problem?
> 
1) Check that the relevant partitions exist. Assuming your disk is /dev/sdb, partitions may be /dev/sdb1 /dev/sdb2, etc.
2) Try to mount them manually.
Your boot script may not automatically mount all partitions. In that case:
$ mount /mount/point
should work.
Or, maybe there's an issue with label detection.
In that case, specify the partition.
$ mount -t ext3 /dev/sdb1 /mount/point

-- 
André Gillibert

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Understanding if a disk is partioned with LVM or not
  2009-09-11 13:39     ` André Gillibert
@ 2009-09-11 19:00       ` pent 5971
  0 siblings, 0 replies; 5+ messages in thread
From: pent 5971 @ 2009-09-11 19:00 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]

No no no, its funny i just needed the folder /xyz with mkdir which ill mount
the new disk :-)

2009/9/11 André Gillibert <rcvxdg@gmail.com>

> pent 5971 <pent5971@gmail.com> wrote:
> > Hi,
> > Luca thanks for your answer . the disk seems to be regular one. So for
> > the new added disk
> > i have followed the
> >
> http://jamesthornton.com/redhat/linux/7.3/Reference-Guide/s1-filesystem-ext3-create.html
> >  and rebooted the server (edited the fstab ). But the disk doesnt seem
> > to be
> > mounted . So what can be the problem?
> >
> 1) Check that the relevant partitions exist. Assuming your disk is
> /dev/sdb, partitions may be /dev/sdb1 /dev/sdb2, etc.
> 2) Try to mount them manually.
> Your boot script may not automatically mount all partitions. In that case:
> $ mount /mount/point
> should work.
> Or, maybe there's an issue with label detection.
> In that case, specify the partition.
> $ mount -t ext3 /dev/sdb1 /mount/point
>
> --
> André Gillibert
>
>
>
> _______________________________________________
> 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/
>

[-- Attachment #2: Type: text/html, Size: 2001 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-09-11 19:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-10  6:19 [linux-lvm] Understanding if a disk is partioned with LVM or not pent 5971
2009-09-10  6:35 ` Luca Berra
2009-09-10  8:35   ` pent 5971
2009-09-11 13:39     ` André Gillibert
2009-09-11 19:00       ` pent 5971

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).