Debugging Usage Problems

本文档提供了MogileFS中常见问题的解决方案,特别是针对无法存储文件的问题进行了详细的检查步骤,包括权限验证、磁盘空间确认及时间同步等方面。

coofucoo: because china government block this tech site, i access it very slow. So i copy the content from offical wiki to make me and you conveniently.

Debugging Common Problems With Using MogileFS

Unable to store files

  1. Does the user mogstored is running as have permission to write to files on var/mogdata/devN * ?
  2. Does that user own the /var/mogdata/devN directory?
  3. Is there at least min_free_space free on the device? (Default: 100MB)
  4. Are all machines using accurate time? In particular, trackers and databases should have time that's in sync, otherwise devices will not be considered writable because the device report from the monitor in the database (which uses the database's time), will be older than tracker's localtime - max_disk_age .
[root@iZgmsn2rycs3miZ ~]# yum --help usage: yum [options] COMMAND List of Main Commands: alias List or create command aliases autoremove remove all unneeded packages that were originally installed as dependencies check check for problems in the packagedb check-update check for available package upgrades clean remove cached data deplist [deprecated, use repoquery --deplist] List package's dependencies and what packages provide them distro-sync synchronize installed packages to the latest available versions downgrade Downgrade a package group display, or use, the groups information help display a helpful usage message history display, or use, the transaction history info display details about a package or group of packages install install a package or packages on your system list list a package or groups of packages makecache generate the metadata cache mark mark or unmark installed packages as installed by user. module Interact with Modules. provides find what package provides the given value reinstall reinstall a package remove remove a package or packages from your system repolist display the configured software repositories repoquery search for packages matching keyword repository-packages run commands on top of all packages in given repository search search package details for the given string shell run an interactive YUM shell swap run an interactive YUM mod for remove and install one spec updateinfo display advisories about packages upgrade upgrade a package or packages on your system upgrade-minimal upgrade, but only 'newest' package match which fixes a problem that affects your system List of Plugin Commands: builddep Install build dependencies for package or spec file changelog Show changelog data of packages config-manager manage yum configuration options and repositories copr Interact with Copr repositories. debug-dump dump information about installed rpm packages to file debug-restore restore packages recorded in debug-dump file debuginfo-install install debuginfo packages download Download package to current directory groups-manager create and edit groups metadata file needs-restarting determine updated binaries that need restarting offline-distrosync Prepare offline distrosync of the system offline-upgrade Prepare offline upgrade of the system playground Interact with Playground repository. repoclosure Display a list of unresolved dependencies for repositories repodiff List differences between two sets of repositories repograph Output a full package dependency graph in dot format repomanage Manage a directory of rpm packages reposync download all packages from remote repo system-upgrade Prepare system for upgrade to a new release General YUM options: -c [config file], --config [config file] config file location -q, --quiet quiet operation -v, --verbose verbose operation --version show YUM version and exit --installroot [path] set install root --nodocs do not install documentations --noplugins disable all plugins --enableplugin [plugin] enable plugins by name --disableplugin [plugin] disable plugins by name --releasever RELEASEVER override the value of $releasever in config and repo files --setopt SETOPTS set arbitrary config and repo options --skip-broken resolve depsolve problems by skipping packages -h, --help, --help-cmd show command help --allowerasing allow erasing of installed packages to resolve dependencies -b, --best try the best available package versions in transactions. --nobest do not limit the transaction to the best candidate -C, --cacheonly run entirely from system cache, don't update cache -R [minutes], --randomwait [minutes] maximum command wait time -d [debug level], --debuglevel [debug level] debugging output level --debugsolver dumps detailed solving results into files --showduplicates show duplicates, in repos, in list/search commands -e ERRORLEVEL, --errorlevel ERRORLEVEL error output level --obsoletes enables yum's obsoletes processing logic for upgrade or display capabilities that the package obsoletes for info, list and repoquery --rpmverbosity [debug level name] debugging output level for rpm -y, --assumeyes automatically answer yes for all questions --assumeno automatically answer no for all questions --enablerepo [repo] Enable additional repositories. List option. Supports globs, can be specified multiple times. --disablerepo [repo] Disable repositories. List option. Supports globs, can be specified multiple times. --repo [repo], --repoid [repo] enable just specific repositories by an id or a glob, can be specified multiple times --enable enable repos with config-manager command (automatically saves) --disable disable repos with config-manager command (automatically saves) -x [package], --exclude [package], --excludepkgs [package] exclude packages by name or glob --disableexcludes [repo], --disableexcludepkgs [repo] disable excludepkgs --repofrompath [repo,path] label and path to an additional repository to use (same path as in a baseurl), can be specified multiple times. --noautoremove disable removal of dependencies that are no longer used --nogpgcheck disable gpg signature checking (if RPM policy allows) --color COLOR control whether color is used --refresh set metadata as expired before running the command -4 resolve to IPv4 addresses only -6 resolve to IPv6 addresses only --destdir DESTDIR, --downloaddir DESTDIR set directory to copy packages to --downloadonly only download packages --comment COMMENT add a comment to transaction --bugfix Include bugfix relevant packages, in updates --enhancement Include enhancement relevant packages, in updates --newpackage Include newpackage relevant packages, in updates --security Include security relevant packages, in updates --advisory ADVISORY, --advisories ADVISORY Include packages needed to fix the given advisory, in updates --bz BUGZILLA, --bzs BUGZILLA Include packages needed to fix the given BZ, in updates --cve CVES, --cves CVES Include packages needed to fix the given CVE, in updates --sec-severity {Critical,Important,Moderate,Low}, --secseverity {Critical,Important,Moderate,Low} Include security relevant packages matching the severity, in updates --forcearch ARCH Force the use of an architecture [root@iZgmsn2rycs3miZ ~]#
10-14
yum命令的形式一般为:yum [options] [command] [package ...],其中[options]是可选的,[command]为所要进行的操作,[package ...]是操作的对象[^1]。 ### 选项说明 - `-h`:提供帮助信息。 - `-y`:在安装过程提示选择时全部回答"yes";在使用基本语法时,对所有提问都回答"Yes" [^1][^3]。 - `-q`:不显示安装的过程 [^1]。 ### 常用命令及功能 - `install`:安装RPM软件包 [^3]。 - `update`:更新RPM软件包 [^3]。 - `check-update`:检查是否有可用的更新RPM软件包 [^3]。 - `remove`:删除指定的RPM软件包 [^3]。 - `list`:显示软件包信息 [^3]。 - `clean`:清理yum过期的缓存 [^3]。 - `deplist`:显示yum软件包的所有依赖关系 [^3]。 - `yumdownloader <package-name> --resolve --enablerepo=[repo]`:下载rpm包,`--resolve`表示依赖包也会被下载,`--enablerepo=<repository>`可指定yum源,若不知可以省去此参数 [^5]。 ### 编辑配置文件 yum的一切信息都存储在`/etc/yum.repos.d`目录下的配置文件中。若要创建新的yum仓库配置文件,可在`/etc/yum.repos.d/local.repo`文件中添加本地仓库信息,包括仓库的ID、名称、基础URL(指向rpm包目录)以及是否启用GPG检查等 [^2][^4]。 ### 安装yum及其依赖 当需要从本地仓库安装yum包,若yum尚未安装或配置不正确,可使用rpm命令直接安装rpm包:`rpm -ivh /opt/yum-rpms/*.rpm --nodeps --force` [^2]。 ### 编辑相关配置文件 编辑`/etc/yum/pluginconf.d/fastestmirror.conf`文件示例如下: ```plaintext [main] enabled=1 verbose=0 always_print_best_host = true socket_timeout=3 ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值