1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

最近気がついたAIXの謎ソート

Posted at

なぜこの並びなのか?

lsvgコマンドの出力

$ lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       1       1    closed/syncd  N/A
hd6                 paging     64      64      1    open/syncd    N/A
hd8                 jfs2log    1       1       1    open/syncd    N/A
hd4                 jfs2       7       7       1    open/syncd    /
以下略

なんでLV NAMEなりマウントポイントでソートしてくれないのかずーっと不思議だったけどついに理由がわかった。

# ls -l /dev/ | grep 10,|sort -n -t6
brw-rw----    1 root     system       10,  1 Feb 08 13:10 hd5
brw-rw----    1 root     system       10,  2 Nov 21 2017  hd6
brw-rw----    1 root     system       10,  3 Nov 21 2017  hd8
brw-rw----    1 root     system       10,  4 Nov 21 2017  hd4
以下略

マイナー番号順で並んでた。

これがわかったところで何に有用なのかは全く思い当たらない。
ただのトリビア。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?