我有一块 8TB 和两块 4TB 磁盘。我想知道我是否能够使用 8+4+4 磁盘创建 8TB raid?
我尝试过这个sudo mkfs.btrfs -f -m raid1 -d raid1 /dev/sdc1 /dev/sdd1 /dev/cdb1
但是这只能创建 4TB 的磁盘阵列。
从我的角度来看,从技术上来说,应该可以从两个 4TB 磁盘创建 8TB 条带,然后创建 8TB 镜像。这可以用btrfs
工具实现吗?
我有一块 8TB 和两块 4TB 磁盘。我想知道我是否能够使用 8+4+4 磁盘创建 8TB raid?
我尝试过这个sudo mkfs.btrfs -f -m raid1 -d raid1 /dev/sdc1 /dev/sdd1 /dev/cdb1
但是这只能创建 4TB 的磁盘阵列。
从我的角度来看,从技术上来说,应该可以从两个 4TB 磁盘创建 8TB 条带,然后创建 8TB 镜像。这可以用btrfs
工具实现吗?
我为我的 git log 命令添加了别名:
$ alias gl
alias gl='gn -c git log -w -b -p --ignore-blank-lines --full-history'
$ alias gn
alias gn='git-number'
命令的 -n 标志
git-number
运行子命令,就像sh -c
那样。
我注意到一件奇怪的事。当我跑步时:
gl -- lib/X.pm
它的工作原理如下:
gn -c "git log -w -b -p --ignore-blank-lines --full-history" -- lib/X.pm
但我希望这样(不是字符串末尾的引号):
gn -c "git log -w -b -p --ignore-blank-lines --full-history -- lib/X.pm"
以下是命令的完整历史记录:
$ gl -- lib/X.pm
fatal: ambiguous argument 'lib/X.pm': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
$ gn -c "git log -w -b -p --ignore-blank-lines --full-history" -- lib/X.pm
fatal: ambiguous argument 'lib/X.pm': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
$ gn -c "git log -w -b -p --ignore-blank-lines --full-history -- lib/X.pm"
commit 9ce3e165f284d55503eff9b627ef3723854c53bb
...other expected output
如何强制alias
将别名选项和新选项放在一起?