LINBIT / drbdtop

CLI management tool for DRBD. Like top, but for DRBD resources.
GNU General Public License v2.0
48 stars 14 forks source link

Feature request: sort by name #12

Open elonen opened 6 years ago

elonen commented 6 years ago

For resource lists such as that Proxmox creates...

│  vm-101-disk-1         | Primary   | ✓     | ✗ (13)     | ✓           | ✗ (13)  | ✓                                                                                            │
│  vm-114-disk-1         | Secondary | ✓     | ✗ (12)     | ✓           | ✗ (12)  | ✓                                                                                            │
│  vm-118-disk-1         | Primary   | ✓     | ✗ (12)     | ✓           | ✗ (12)  | ✓                                                                                            │
│  vm-107-disk-1         | Secondary | ✓     | ✗ (11)     | ✓           | ✗ (11)  | ✓                                                                                            │
│  vm-119-disk-1         | Primary   | ✓     | ✗ (11)     | ✓           | ✗ (11)  | ✓                                                                                            │
│  vm-108-disk-1         | Secondary | ✓     | ✗ (11)     | ✓           | ✗ (11)  | ✓                                                                                            │
│  vm-117-disk-1         | Secondary | ✓     | ✗ (11)     | ✓           | ✗ (11)  | ✓                                                                                            │
│  vm-110-disk-1         | Secondary | ✓     | ✗ (10)     | ✓           | ✗ (10)  | ✓                                                                                            │
│  vm-104-disk-1         | Secondary | ✓     | ✗ (3)      | ✗ (4)       | ✗ (7)   | ✓                                                                                            │
│  vm-122-disk-1         | Secondary | ✗ (1) | ✗ (2)      | ✓           | ✗ (3)   | ✓                                                                                            │
│  vm-112-disk-1         | Secondary | ✗ (1) | ✗ (2)      | ✓           | ✗ (3)   | ✓                                                                                            │
│  vm-101-disk-2         | Primary   | ✓     | ✓          | ✓           | ✓       | ✓                                                                                            │
│  vm-116-disk-1         | Secondary | ✓     | ✓          | ✓           | ✓       | ✓                                                                                            │
│  vm-111-disk-1         | Secondary | ✓     | ✓          | ✓           | ✓       | ✓                                                                                            │
│  vm-100-disk-2         | Secondary | ✓     | ✓          | ✓           | ✓       | ✓                                                                                            │
│  vm-100-disk-1         | Secondary | ✓     | ✓          | ✓           | ✓       | ✓                                                                                            │
│  vm-103-disk-1         | Secondary | ✓     | ✓          | ✓           | ✓       | ✓                                                                                            │
│  vm-105-disk-1         | Secondary | ✓     | ✓          | ✓           | ✓       | ✓                                                                                            │
│  vm-126-disk-1         | Secondary | ✓     | ✓          | ✓           | ✓       | ✓                                                                                            │
│  vm-106-disk-1         | Secondary | ✓     | ✓          | ✓           | ✓       | ✓                                                                                            │
│  vm-109-disk-1         | Secondary | ✓     | ✓          | ✓           | ✓       | ✓                                                                                            │
│  vm-113-disk-1         | Secondary | ✓     | ✓          | ✓           | ✓       | ✓                                                                                            │
│  vm-115-disk-1         | Secondary | ✓     | ✓          | ✓           | ✓       | ✓                                                                                            │
│  vm-120-disk-1         | Secondary | ✓     | ✓          | ✓           | ✓       | ✓                                                                                            │
│  vm-121-disk-2         | Primary   | ✓     | ✓          | ✓           | ✓       | ✓

...having a key to sort by resource name would be useful. It's currently pretty difficult to spot a certain number from the list when, for example, checking which nodes the resource is synced with.

(As a side note, find command doesn't always help either. For example, in the list above, searching for "101" only higlights vm-101-disk-1, but there is also a vm-101-disk-2 lower on the list.)

psmadmin commented 2 years ago

Very much agree. We're trying to manage 100+ drbd resources on the same server and finding what we need is tough without sorting.