SCIENTIFIC-LINUX-USERS Archives

May 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
David Sommerseth <[log in to unmask]>
Reply To:
Date:
Wed, 7 May 2014 13:43:38 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (138 lines)
On 07/05/14 09:13, Mahmood Naderan wrote:
> No it is not shared via NFS (do we have to first share it?)
> Problem is, there is no free slot for disks in our machine (say N1).
> However another node (say N2 which is running scientific linux
> independently) has free slots. So I added the physical disks to N2. the
> disk has been formatted and it has a mount point on N2.
> 
> Now I want to add N2:/dev/sdb to N1:/dev/tigerfiler1/tigervolume
> Can you please guide step by step?

<DISCLAIMER>
Not testet, but this is the theory behind it.  I take not responsibility
in potential data loss.
</DISCLAIMER>

I have no idea how N2:/dev/sdb differs from N1:/dev/sdb.  You need
access to a device file with your new harddrive.  I'm using /dev/sde
here in the example, to cover the LVM basics:

# Make the new drive a LVM physical volume
pvcreate /dev/sde

# Extend the tigerfiler1 volume group with the new drive
vgextend tigerfiler1 /dev/sde

Now you can use

fsadm resize -l /dev/tigerfiler1/tigervolume $NEWSIZE

That's the LVM theory.

What is confusing here is: "So I added the physical disks to N2. the
disk has been formatted and it has a mount point on N2." ... You cannot
use mountpoints for LVM physical volumes.  If you need to do this over a
network, you need to configure iSCSI, which will give you another
/dev/sdX device when properly setup.  This /dev/sdX device can then be
used as an LVM physical volume.

If considering iSCSI (you need tgtd on the iSCSI "server" (target) and
iscsi-utils on the "client" (initiator)), I would strongly recommend
using a separate network interface for the iSCSI traffic - preferably
back-to-back, to not get too bad network performance.

--
kind regards,

David Sommerseth



> ------------------------------------------------------------------------
> 
>     *From: *"Mahmood Naderan" <[log in to unmask]>
>     *To: *[log in to unmask]
>     *Sent: *Wednesday, May 7, 2014 1:12:41 AM
>     *Subject: *Add a remote disk to LVM
> 
> 
> 
>     Hello,
>     Is it possible to add a network drive to existing LVM? I have
>     created a group and have added three local drives. Now I want to add
>     a remote disk from another node. The remote node has an additional
>     hard drive and is mounted to /arch (remote node)
> 
>     Is that possible? How? All examples I see are trying to add extra
>     local drives and not remote drives.
> 
>     Here are some info
> 
>     # vgdisplay
>       --- Volume group ---
>       VG Name               tigerfiler1
>       System ID
>       Format                lvm2
>       Metadata Areas        3
>       Metadata Sequence No  2
>       VG Access             read/write
>       VG Status             resizable
>       MAX LV                0
>       Cur LV                1
>       Open LV               1
>       Max PV                0
>       Cur PV                3
>       Act PV                3
>       VG Size               2.73 TiB
>       PE Size               4.00 MiB
>       Total PE              715401
>       Alloc PE / Size       715401 / 2.73 TiB
>       Free  PE / Size       0 / 0
>       VG UUID               8Ef8Vj-bDc7-H4ia-D3X4-cDpY-kE9Z-njc8lj
> 
> 
> 
>     pvdisplay
>       --- Physical volume ---
>       PV Name               /dev/sdb
>       VG Name               tigerfiler1
>       PV Size               931.51 GiB / not usable 1.71 MiB
>       Allocatable           yes (but full)
>       PE Size               4.00 MiB
>       Total PE              238467
>       Free PE               0
>       Allocated PE          238467
>       PV UUID               FmC77z-9UaR-FhYa-ONHZ-EazF-5Hm2-8zmUuj
> 
>       --- Physical volume ---
>       PV Name               /dev/sdc
>       VG Name               tigerfiler1
>       PV Size               931.51 GiB / not usable 1.71 MiB
>       Allocatable           yes (but full)
>       PE Size               4.00 MiB
>       Total PE              238467
>       Free PE               0
>       Allocated PE          238467
>       PV UUID               1jBQUn-gkkD-37I3-R3nL-KeHA-Hn2A-4zgNcR
> 
>       --- Physical volume ---
>       PV Name               /dev/sdd
>       VG Name               tigerfiler1
>       PV Size               931.51 GiB / not usable 1.71 MiB
>       Allocatable           yes (but full)
>       PE Size               4.00 MiB
>       Total PE              238467
>       Free PE               0
>       Allocated PE          238467
>       PV UUID               mxi8jW-O868-iPse-IfY7-ag3m-R3vZ-gS3Jdx
>      
> 
>      
>      
>     Regards,
>     Mahmood
> 
> 
> 
> 

ATOM RSS1 RSS2