[DRBD-user] Some question about linstor
yang zhenyu
cdyangzhenyu at gmail.com
Sat Feb 24 08:16:43 CET 2018
Hi,Robert
Now I use lvm storage pool to test. But there are still some problems. Is
there any problem with my operation?
[root at node-4 proto]# linstor list-node
╭────────────────────────────────────────╮
┊ Node ┊ NodeType ┊ IPs ┊ State ┊
╞┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╡
┊ node-1 ┊ COMBINED ┊ 10.10.0.72 ┊ ok ┊
┊ node-4 ┊ COMBINED ┊ 10.10.0.75 ┊ ok ┊
╰────────────────────────────────────────╯
[root at node-4 proto]# linstor list-resource
╭─────────────────────────────────────────────────╮
┊ ResourceName ┊ Node ┊ Port ┊ Device ┊ State ┊
╞┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╡
┊ rstdfn ┊ node-1 ┊ 7000 ┊ drbdpool ┊ ok ┊
┊ rstdfn ┊ node-4 ┊ 7000 ┊ drbdpool ┊ ok ┊
╰─────────────────────────────────────────────────╯
[root at node-4 proto]# linstor list-storage-pool
╭─────────────────────────────────────────────────────────────────────╮
┊ StoragePool ┊ Node ┊ Driver ┊ DriverDevice ┊ SupportsSnapshots ┊
╞┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╡
┊ lvm ┊ node-1 ┊ LvmDriver ┊ drbdpool ┊ false ┊
┊ lvm ┊ node-4 ┊ LvmDriver ┊ drbdpool ┊ false ┊
╰─────────────────────────────────────────────────────────────────────╯
[root at node-4 proto]# vgdisplay
--- Volume group ---
VG Name drbdpool
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size <30.00 GiB
PE Size 4.00 MiB
Total PE 7679
Alloc PE / Size 0 / 0
Free PE / Size 7679 / <30.00 GiB
VG UUID QpdD46-Q4dh-qS7e-pSsX-JLos-gEJr-MX96EU
When I create volume, some error in log:
[root at node-4 proto]# linstor list-volume
╭──────────────────────────────────────────────────────╮
┊ Node ┊ Resource ┊ VolumeNr ┊ MinorNr ┊ State ┊
╞┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╡
┊ node-1 ┊ rstdfn ┊ 0 ┊ 1000 ┊ not present ┊
┊ node-1 ┊ rstdfn ┊ 1 ┊ 1001 ┊ not present ┊
┊ node-4 ┊ rstdfn ┊ 0 ┊ 1000 ┊ not present ┊
┊ node-4 ┊ rstdfn ┊ 1 ┊ 1001 ┊ not present ┊
╰──────────────────────────────────────────────────────╯
Feb 24 15:09:16 node-4 Satellite: [MainWorkerPool_0009] ERROR
LINSTOR/Satellite - Missing required namespace for backing storage [Report
number A910AC3-000001]
[root at node-4 linstor-server]# vi logs/ErrorReport-A910AC3-000001.log
ERROR REPORT A910AC3-000001
============================================================
Application: LINBIT® LINSTOR
Module: Satellite
Version: 0.1.1
Build ID: b257fa2de27a92ee33a1d5a81f6da30ddca950e7
Build time: Wed Feb 14 12:49:01 UTC 2018
Error time: 2018-02-24 15:09:16
============================================================
Reported error:
===============
Category: Error
Class name: ImplementationError
Class canonical name: com.linbit.ImplementationError
Generated at: Method 'reconfigureStorageDriver',
Source file 'StorPoolData.java', Line #304
Error message: Missing required namespace for backing
storage
Call backtrace:
Method Native Class:Line number
reconfigureStorageDriver N
com.linbit.linstor.StorPoolData:304
getVolumeStorageDriver N
com.linbit.linstor.core.DrbdDeviceHandler:510
evaluateStorageVolume N
com.linbit.linstor.core.DrbdDeviceHandler:589
createResource N
com.linbit.linstor.core.DrbdDeviceHandler:756
dispatchResource N
com.linbit.linstor.core.DrbdDeviceHandler:176
run N
com.linbit.linstor.core.DeviceManagerImpl$DeviceHandlerInvocation:904
run N
com.linbit.WorkerPool$WorkerThread:179
END OF ERROR REPORT.
2018-02-23 18:15 GMT+08:00 Robert Altnoeder <robert.altnoeder at linbit.com>:
> On 02/23/2018 10:55 AM, yang zhenyu wrote:
> >
> > [root at node-1 linstor-server]# zfs list
> > NAME USED AVAIL REFER MOUNTPOINT
> > linstorpool 384K 1.76T 96K /linstorpool
> >
> > Then I create a storage-pool, I don't understand the args
> > 'driver_device' means what?
> > Is a zfs zvol name? or zvol device name? like zd0...
>
> The driver_device is the name of a zpool that will be used to create
> storage in.
>
> However, the ZFS driver does not yet work properly, and it will probably
> only be fixed a few weeks from now because other higher priority
> development tasks are scheduled before fixing it.
> It might work to some extent if a dummy volume is created in the zpool
> before trying to use the zpool with LINSTOR.
>
> > [root at node-1 linstor-server]# linstor create-resource -s zfs -d rstdfn
> > node-1
> > [root at node-1 linstor-server]# linstor create-resource -s zfs -d rstdfn
> > node-4
> > [root at node-1 linstor-server]# linstor list-resource
> > ╭─────────────────────────────────────────────────╮
> > ┊ ResourceName ┊ Node ┊ Port ┊ Device ┊ State ┊
> > ╞┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╡
> > ┊ rstdfn ┊ node-1 ┊ 7000 ┊ DISKLESS ┊ ok ┊
> > ┊ rstdfn ┊ node-4 ┊ 7000 ┊ DISKLESS ┊ ok ┊
> > ╰─────────────────────────────────────────────────╯
> >
> > Why this Device is DISKLESS?
>
> Because you set it to diskless by using the '-d' option on the
> create-resource command.
>
> > [root at node-1 linstor-server]# linstor create-volume-definition -d 2
> > rstdfn 30G
>
> -d (aka deploy) is a leftover from drbdmanage that is not implemented
> and does not belong in creation of volume definitions, this will be
> removed in future versions.
> (actually, the entire user interface will probably change significantly
> in future versions)
>
> > I do not know where is the problem. Is it network communication
> > problems? But I `telnet node-4 3366` is no problem.
>
> Information about most errors that occur can be found in LINSTOR's error
> reports in its "logs" directory.
>
> best regards,
> --
> Robert Altnoeder
> +43 1 817 82 92 0
> robert.altnoeder at linbit.com
>
> LINBIT | Keeping The Digital World Running
> DRBD - Corosync - Pacemaker
> f / t / in / g+
>
> DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20180224/ecc306d2/attachment.htm>
More information about the drbd-user
mailing list