NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Network very very slow... was iSCSI and jumbo frames
RVP a écrit :
> On Sun, 7 Feb 2021, BERTRAND Joël wrote:
>
> 1. Can you provide more info. on what /opt is used for?
> For example,
> a) You mentioned diskless workstations.
> Are you exporting /opt to any of them via NFS/SMB?
Nope. /opt is only used by bacula daemon.
> b) Does bacula backup that dir.?
No. bacula only backup /home and /srv.
> c) Does squid do anything there?
Squid is used for proxy as my DSL connection is very poor.
> 2. Please run these commands as root and post output:
> fstat -f /opt/some_existing_file
legendre# fstat -f Full-0024
USER CMD PID FD MOUNT INUM MODE SZ|DV R/W
root fstat 22591 wd /opt 114683904 drwxrwxr-x 6144 r
root sh 28130 wd /opt 114683904 drwxrwxr-x 6144 r
legendre#
> pstat -v
legendre# pstat -v
...
*** MOUNT ffs /dev/dk5 on /opt (log,local)
ADDR TYP VFLAG USE HOLD TAG NPAGE FILEID IFLAG RDEV|SZ
ffffd45932b63428 dir R 1 1 1 0 2 - 512
ffffd4577b884580 dir 3 1 1 0 114683904 - 6144
ffffd45873469818 dir 1 0 1 0 697238784 - 512
ffffd457232f36d0 reg 1 0 1 0 114683928 - 53687079457
legendre#
> pstat -f
What do you want in pstat -f output ?
> 3. These config. files (redact any sensitive data if needed).
> euclide:
> /etc/config/iscsi/sbin/iscsid.c
I suppose you want iscsi_trgt.conf
[iSCSIPortal]
targetIQNPrefix = iqn.2004-04.com.qnap:ts-431p2:iscsi.
bServiceEnable = TRUE
servicePort = 3260
initiatorBitmap00 = 00000001
log = TRUE
logFlags = 1
bSupportMultiACL = 1
targetBitmap00 = 00000001
LUNBitmap00 = 00000001
[init0Info]
initiatorIndex = 0
initiatorIQN = iqn.2004-04.com.qnap:all:iscsi.default.ffffff
initiatorAlias = Default Policy
initiatorTargetBitmap00 = 00000001
initiatorLUNBitmap00 = 00000001
[InitiatorKey]
iqn.2004-04.com.qnap:all:iscsi.default.ffffff = 0
[target0Info]
targetIndex = 0
targetName = euclide
targetIQN = iqn.2004-04.com.qnap:ts-431p2:iscsi.euclide.3b96e9
targetAlias = euclide
bTargetDataDigest = FALSE
bTargetHeaderDigest = FALSE
targetStatus = 0
targetInitBitmap00 = 00000001
bTargetClusterEnable = TRUE
targetLUNNumBitmap00 = 00000001
targetLUNBitmap00 = 00000001
[TargetKey]
target_iqn.2004-04.com.qnap:ts-431p2:iscsi.euclide.3b96e9 = 0
[target0Init0Info]
targetIndex = 0
initiatorIndex = 0
bCHAPEnable = FALSE
bMutualCHAPEnable = FALSE
CHAPUserName =
CHAPPasswd =
mutualCHAPUserName =
mutualCHAPPasswd =
[LUN0Info]
LUNIndex = 0
LUNName = euclide_0
LUNPath = /dev/mapper/cachedev288
LUNMetaPath = /dev/mapper/cachedev288
LUNLVMPath = vg1-lv288
LUNSectorSize = 512
LUNCapacity = 11244416
LUNFileCount = 1
LUNThinAllocate = FALSE
LUNThreshold = -1
LUNStatus = 2
LUNBackupStatus = 0
LUNBackupPid = -1
LUNBackupJob = -1
LUNBaseType = 0
LUNInitBitmap00 = 00000001
bEnableVolumeBase = TRUE
NAANaming = qnap
bRemoving = FALSE
VSUPEnable = 0
FUAEnable = 0
LUNTargetBitmap00 = 00000001
LUNSerialNum = 46b168c9-a55f-4257-a884-2a8f2ccba65c
LUNNAA = 6e843b646b168c9da55fd4257da884d2
[LUNKey]
LUN_euclide_0 = 0
[LUN0Init0Info]
LUNIndex = 0
initiatorIndex = 0
initiatorLUNNumber = -1
accessMode = 1
[LUN0Target0Info]
LUNIndex = 0
targetIndex = 0
LUNNumber = 0
LUNEnable = TRUE
> legendre:
> /usr/pkg/etc/bacula/bacula-fd.conf
> /usr/pkg/etc/bacula/bacula-dir.conf
> /usr/pkg/etc/bacula/bacula-sd.conf
Please note than even with dd (and with bacula stopped, througput
doesn't exceed 10 MB/s between NetBSD initiator anq qNAP target).
legendre# cat bacula-dir.conf
Director { # define myself
Name = legendre.systella.fr-dir
Description = "Bacula's director running on legendre.systella.fr"
DIRport = 9101
QueryFile = "/usr/pkg/libexec/bacula/query.sql"
WorkingDirectory = "/var/spool/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 20
Password = ...
Messages = Daemon
}
JobDefs {
Name = "DefaultJob"
Client = legendre.systella.fr-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Messages = Standard
Full Backup Pool = Full-Pool
Incremental Backup Pool = Inc-Pool
Differential Backup Pool = Diff-Pool
Pool = Default
Spool Data = no
SpoolAttributes = yes
Priority = 10
Write Bootstrap = "/opt/bacula/%c.bsr"
Storage = File1
}
Job {
Name = "NightlySave"
Type = Backup
FileSet = "Full Set"
JobDefs = "DefaultJob"
}
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Type = Backup
Level = Full
FileSet = "Catalog"
Schedule = "WeeklyCycleAfterBackup"
RunBeforeJob = "/usr/pkg/libexec/bacula/make_catalog_backup.pl MyCatalog"
RunAfterJob = "/usr/pkg/libexec/bacula/delete_catalog_backup"
Write Bootstrap = "/opt/bacula/%n.bsr"
Priority = 11
Full Backup Pool = Catalog
Pool = Catalog
}
Job {
Name = "Restore"
Type = Restore
Where = /opt/bacula-restores
JobDefs = "DefaultJob"
Enabled = no
}
Storage {
Name = File1
Address = legendre
SDPort = 9103
Password = ...
Device = FileStorage1
Media Type = File
}
# List of files to be backed up
FileSet {
Name = "Full Set"
Include {
Options {
compression = LZO
signature = MD5
}
File = /home
File = /etc
File = /usr/pkg/etc
File = /srv
File = /var/backups
}
Exclude {
File = "*/.cache"
}
}
# When to do the backups
Schedule {
Name = "WeeklyCycle"
Run = Full 1st sun at 23:05
Run = Differential 2nd-5th sun at 23:05
Run = Incremental mon-sat at 23:05
}
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 23:10
}
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = "/var/spool/bacula/bacula.sql"
}
}
Client {
Name = legendre.systella.fr-fd
Address = legendre
FDPort = 9102
Catalog = MyCatalog
Password = ...
File Retention = 60 days # 60 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Catalog {
Name = MyCatalog
dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
}
Messages {
Name = Standard
mailcommand = "/usr/pkg/sbin/bsmtp -h legendre.systella.fr:587 -f
\"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/pkg/sbin/bsmtp -h legendre.systella.fr:587 -f
\"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
mail = root%legendre.systella.fr@localhost = all, !skipped
operator = root%legendre.systella.fr@localhost = mount
console = all, !skipped, !saved
append = "/var/log/bacula/bacula.log" = all, !skipped
catalog = all
}
Messages {
Name = Daemon
mailcommand = "/usr/pkg/sbin/bsmtp -h legendre.systella.fr:587 -f
\"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/var/log/bacula.log" = all, !skipped
}
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle
Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Maximum Volume Bytes = 50G # Limit Volume size to something
reasonable
Maximum Volumes = 250 # Limit number of Volumes in Pool
}
Pool {
Name = Catalog
Pool Type = Backup
Recycle = yes # automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 2 months
Maximum Volume Jobs = 1
Label Format = Catalog-
Maximum Volume Bytes = 10G
Maximum Volumes = 200
}
Pool {
Name = Full-Pool
Pool Type = Backup
Recycle = yes # automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 2 months
Maximum Volume Jobs = 1
Label Format = Full-
Maximum Volume Bytes = 50G
Maximum Volumes = 200
}
Pool {
Name = Inc-Pool
Pool Type = Backup
Recycle = yes # automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 10 days
Maximum Volume Jobs = 6
Label Format = Inc-
Maximum Volume Bytes = 50G
Maximum Volumes = 50
}
Pool {
Name = Diff-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 40 days
Maximum Volume Jobs = 1
Label Format = Diff-
Maximum Volume Bytes = 50G
Maximum Volumes = 50
}
# Scratch pool definition
Pool {
Name = Scratch
Pool Type = Backup
}
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = legendre.systella.fr-mon
Password = ...
CommandACL = status, .status
}
legendre# cat bacula-sd.conf
Storage { # definition of myself
Name = legendre.systella.fr-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/spool/bacula"
Pid Directory = "/var/run"
Plugin Directory = "/usr/pkg/lib"
Maximum Concurrent Jobs = 20
}
Director {
Name = legendre.systella.fr-dir
Password = ...
}
Director {
Name = legendre.systella.fr-mon
Password = ...
Monitor = yes
}
Device {
Name = FileStorage1
Media Type = File
Archive Device = /opt/bacula
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 5
}
Messages {
Name = Standard
director = legendre.systella.fr-dir = all
}
legendre# cat bacula-fd.conf
Director {
Name = legendre.systella.fr-dir
Password = ...
}
Director {
Name = legendre.systella.fr-mon
Password = ...
Monitor = yes
}
#
# "Global" File daemon configuration specifications
#
FileDaemon { # this is me
Name = legendre.systella.fr-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/spool/bacula
Pid Directory = /var/run
Maximum Concurrent Jobs = 20
Plugin Directory = /usr/pkg/lib
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
director = legendre.systella.fr-dir = all, !skipped, !restored
}
I can open for you ssh access on legendre if you want.
Best regards,
JKB
Home |
Main Index |
Thread Index |
Old Index