Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Not showing all storage spaces with many drives #1394

Closed
jerry1333 opened this issue Sep 10, 2023 · 8 comments
Closed

[Bug] Not showing all storage spaces with many drives #1394

jerry1333 opened this issue Sep 10, 2023 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@jerry1333
Copy link

Not showing all storage spaces with many drives.

To Reproduce
Install 8+ drives and setup all of them

Expected behavior
Show all storage spaces?

Screenshots
image
image

Desktop (please complete the following information):

 - OS: Debian 12
 - Browser: Opera
 - Version: of what? Browser: 101.0.4843.43, CasaOS: 0.4.4.2

System Time

Run timedatectl and share the output

root@casaOS:~# timedatectl 
               Local time: Sun 2023-09-10 21:23:50 CEST
           Universal time: Sun 2023-09-10 19:23:50 UTC
                 RTC time: Sun 2023-09-10 19:23:50
                Time zone: Europe/Warsaw (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Logs

Run following command to collect corresponding logs:
logs are too long for github :<

Additional context

Had some issues with adding drives thru UI but mounting from ssh added all of them fine.

@jerry1333 jerry1333 added the bug Something isn't working label Sep 10, 2023
@LinkLeong LinkLeong self-assigned this Sep 11, 2023
@LinkLeong
Copy link
Collaborator

Can you tell me exactly which partition is not mounted, and what the partition format is?

@jerry1333
Copy link
Author

jerry1333 commented Sep 12, 2023

Almost all drives had issues like partition not found / smth like that while trying to use them.
image

Logs: https://downloads.homenas.eu/logs/casaoslogs.txt
Then I decided to delete partitions (drives where used in truenas vm) and try again - didn't help, same issue.
Next check partition table - was ok, ext4 so tried to mount manually and it worked, it is visible.

after restart drives are not mounted

@LinkLeong
Copy link
Collaborator

This hasn't happened yet, I can explain that you manually mounted it and rebooted it to disappear, which is fine. As for not being able to mount via casaos.

  1. What version of casaos do you have?
  2. Can you run 'lsblk -O -J' and post the json string to me?

@jerry1333
Copy link
Author

jerry1333 commented Sep 13, 2023

  1. CasaOS: 0.4.4.2
  2. There are two DELL Perc controllers (flashed to IT mode) but this should not be an issue since truenas worked fine with them.
{
   "blockdevices": [
      {
         "alignment": 0,
         "disc-aln": 0,
         "dax": false,
         "disc-gran": "0B",
         "disc-max": "0B",
         "disc-zero": false,
         "fsavail": null,
         "fsroots": [
             null
         ],
         "fssize": null,
         "fstype": null,
         "fsused": null,
         "fsuse%": null,
         "fsver": null,
         "group": "disk",
         "hctl": "0:0:0:0",
         "hotplug": false,
         "kname": "sda",
         "label": null,
         "log-sec": 512,
         "maj:min": "8:0",
         "min-io": 512,
         "mode": "brw-rw----",
         "model": "Virtual disk",
         "name": "sda",
         "opt-io": 0,
         "owner": "root",
         "partflags": null,
         "partlabel": null,
         "parttype": null,
         "parttypename": null,
         "partuuid": null,
         "path": "/dev/sda",
         "phy-sec": 512,
         "pkname": null,
         "pttype": "dos",
         "ptuuid": "8154c687",
         "ra": 128,
         "rand": false,
         "rev": "2.0 ",
         "rm": false,
         "ro": false,
         "rota": false,
         "rq-size": 256,
         "sched": "mq-deadline",
         "serial": null,
         "size": "96G",
         "start": null,
         "state": "running",
         "subsystems": "block:scsi:pci",
         "mountpoint": null,
         "mountpoints": [
             null
         ],
         "tran": null,
         "type": "disk",
         "uuid": null,
         "vendor": "VMware  ",
         "wsame": "0B",
         "wwn": null,
         "zoned": "none",
         "zone-sz": "0B",
         "zone-wgran": "0B",
         "zone-app": "0B",
         "zone-nr": 0,
         "zone-omax": 0,
         "zone-amax": 0,
         "children": [
            {
               "alignment": 0,
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": "85.5G",
               "fsroots": [
                   "/"
               ],
               "fssize": "93G",
               "fstype": "ext4",
               "fsused": "2.7G",
               "fsuse%": "3%",
               "fsver": "1.0",
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sda1",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:1",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "name": "sda1",
               "opt-io": 0,
               "owner": "root",
               "partflags": "0x80",
               "partlabel": null,
               "parttype": "0x83",
               "parttypename": "Linux",
               "partuuid": "8154c687-01",
               "path": "/dev/sda1",
               "phy-sec": 512,
               "pkname": "sda",
               "pttype": "dos",
               "ptuuid": "8154c687",
               "ra": 128,
               "rand": false,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": false,
               "rq-size": 256,
               "sched": "mq-deadline",
               "serial": null,
               "size": "95G",
               "start": 2048,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": "/",
               "mountpoints": [
                   "/"
               ],
               "tran": null,
               "type": "part",
               "uuid": "6a069ae9-93c6-44fc-9a3a-5b5a1178ee9a",
               "vendor": null,
               "wsame": "0B",
               "wwn": null,
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            },{
               "alignment": 0,
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": null,
               "fsroots": [
                   null
               ],
               "fssize": null,
               "fstype": null,
               "fsused": null,
               "fsuse%": null,
               "fsver": null,
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sda2",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:2",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "name": "sda2",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "parttype": "0x5",
               "parttypename": "Extended",
               "partuuid": "8154c687-02",
               "path": "/dev/sda2",
               "phy-sec": 512,
               "pkname": "sda",
               "pttype": "dos",
               "ptuuid": "8154c687",
               "ra": 128,
               "rand": false,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": false,
               "rq-size": 256,
               "sched": "mq-deadline",
               "serial": null,
               "size": "1K",
               "start": 199327742,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": null,
               "mountpoints": [
                   null
               ],
               "tran": null,
               "type": "part",
               "uuid": null,
               "vendor": null,
               "wsame": "0B",
               "wwn": null,
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            },{
               "alignment": 0,
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": null,
               "fsroots": [
                   null
               ],
               "fssize": null,
               "fstype": "swap",
               "fsused": null,
               "fsuse%": null,
               "fsver": "1",
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sda5",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:5",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "name": "sda5",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "parttype": "0x82",
               "parttypename": "Linux swap / Solaris",
               "partuuid": "8154c687-05",
               "path": "/dev/sda5",
               "phy-sec": 512,
               "pkname": "sda",
               "pttype": "dos",
               "ptuuid": "8154c687",
               "ra": 128,
               "rand": false,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": false,
               "rq-size": 256,
               "sched": "mq-deadline",
               "serial": null,
               "size": "975M",
               "start": 199327744,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": "[SWAP]",
               "mountpoints": [
                   "[SWAP]"
               ],
               "tran": null,
               "type": "part",
               "uuid": "ac350f93-036a-45a1-ba76-5fa1bc7868ef",
               "vendor": null,
               "wsame": "0B",
               "wwn": null,
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            }
         ]
      },{
         "alignment": 0,
         "disc-aln": 0,
         "dax": false,
         "disc-gran": "0B",
         "disc-max": "0B",
         "disc-zero": false,
         "fsavail": null,
         "fsroots": [
             null
         ],
         "fssize": null,
         "fstype": null,
         "fsused": null,
         "fsuse%": null,
         "fsver": null,
         "group": "disk",
         "hctl": "3:0:0:0",
         "hotplug": false,
         "kname": "sdb",
         "label": null,
         "log-sec": 512,
         "maj:min": "8:16",
         "min-io": 4096,
         "mode": "brw-rw----",
         "model": "WDC WD60EFAX-68SHWN0",
         "name": "sdb",
         "opt-io": 0,
         "owner": "root",
         "partflags": null,
         "partlabel": null,
         "parttype": null,
         "parttypename": null,
         "partuuid": null,
         "path": "/dev/sdb",
         "phy-sec": 4096,
         "pkname": null,
         "pttype": "gpt",
         "ptuuid": "fdcf43ad-78bc-4ecf-aca4-468a183d902f",
         "ra": 128,
         "rand": true,
         "rev": "0A82",
         "rm": false,
         "ro": false,
         "rota": true,
         "rq-size": 256,
         "sched": "mq-deadline",
         "serial": "WD-WX11D39LFT2A",
         "size": "5.5T",
         "start": null,
         "state": "running",
         "subsystems": "block:scsi:pci",
         "mountpoint": null,
         "mountpoints": [
             null
         ],
         "tran": "sas",
         "type": "disk",
         "uuid": null,
         "vendor": "ATA     ",
         "wsame": "0B",
         "wwn": "0x50014ee266795757",
         "zoned": "none",
         "zone-sz": "0B",
         "zone-wgran": "0B",
         "zone-app": "0B",
         "zone-nr": 0,
         "zone-omax": 0,
         "zone-amax": 0,
         "children": [
            {
               "alignment": 3072,
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": null,
               "fsroots": [
                   null
               ],
               "fssize": null,
               "fstype": null,
               "fsused": null,
               "fsuse%": null,
               "fsver": null,
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sdb1",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:17",
               "min-io": 4096,
               "mode": "brw-rw----",
               "model": null,
               "name": "sdb1",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "parttype": null,
               "parttypename": null,
               "partuuid": null,
               "path": "/dev/sdb1",
               "phy-sec": 4096,
               "pkname": "sdb",
               "pttype": "gpt",
               "ptuuid": "fdcf43ad-78bc-4ecf-aca4-468a183d902f",
               "ra": 128,
               "rand": true,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": true,
               "rq-size": 256,
               "sched": "mq-deadline",
               "serial": null,
               "size": "5.5T",
               "start": 34,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": null,
               "mountpoints": [
                   null
               ],
               "tran": null,
               "type": "part",
               "uuid": null,
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x50014ee266795757",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            }
         ]
      },{
         "alignment": 0,
         "disc-aln": 0,
         "dax": false,
         "disc-gran": "0B",
         "disc-max": "0B",
         "disc-zero": false,
         "fsavail": null,
         "fsroots": [
             null
         ],
         "fssize": null,
         "fstype": null,
         "fsused": null,
         "fsuse%": null,
         "fsver": null,
         "group": "disk",
         "hctl": "3:0:1:0",
         "hotplug": false,
         "kname": "sdc",
         "label": null,
         "log-sec": 512,
         "maj:min": "8:32",
         "min-io": 4096,
         "mode": "brw-rw----",
         "model": "WDC WD60EFAX-68SHWN0",
         "name": "sdc",
         "opt-io": 0,
         "owner": "root",
         "partflags": null,
         "partlabel": null,
         "parttype": null,
         "parttypename": null,
         "partuuid": null,
         "path": "/dev/sdc",
         "phy-sec": 4096,
         "pkname": null,
         "pttype": "gpt",
         "ptuuid": "cfbcdcac-d2ff-490c-9d51-c3ac16748c49",
         "ra": 128,
         "rand": true,
         "rev": "0A82",
         "rm": false,
         "ro": false,
         "rota": true,
         "rq-size": 256,
         "sched": "mq-deadline",
         "serial": "WD-WX41D995H1KK",
         "size": "5.5T",
         "start": null,
         "state": "running",
         "subsystems": "block:scsi:pci",
         "mountpoint": null,
         "mountpoints": [
             null
         ],
         "tran": "sas",
         "type": "disk",
         "uuid": null,
         "vendor": "ATA     ",
         "wsame": "0B",
         "wwn": "0x50014ee212082677",
         "zoned": "none",
         "zone-sz": "0B",
         "zone-wgran": "0B",
         "zone-app": "0B",
         "zone-nr": 0,
         "zone-omax": 0,
         "zone-amax": 0,
         "children": [
            {
               "alignment": 3072,
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": null,
               "fsroots": [
                   null
               ],
               "fssize": null,
               "fstype": null,
               "fsused": null,
               "fsuse%": null,
               "fsver": null,
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sdc1",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:33",
               "min-io": 4096,
               "mode": "brw-rw----",
               "model": null,
               "name": "sdc1",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "parttype": null,
               "parttypename": null,
               "partuuid": null,
               "path": "/dev/sdc1",
               "phy-sec": 4096,
               "pkname": "sdc",
               "pttype": "gpt",
               "ptuuid": "cfbcdcac-d2ff-490c-9d51-c3ac16748c49",
               "ra": 128,
               "rand": true,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": true,
               "rq-size": 256,
               "sched": "mq-deadline",
               "serial": null,
               "size": "5.5T",
               "start": 34,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": null,
               "mountpoints": [
                   null
               ],
               "tran": null,
               "type": "part",
               "uuid": null,
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x50014ee212082677",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            }
         ]
      },{
         "alignment": 0,
         "disc-aln": 0,
         "dax": false,
         "disc-gran": "0B",
         "disc-max": "0B",
         "disc-zero": false,
         "fsavail": null,
         "fsroots": [
             null
         ],
         "fssize": null,
         "fstype": null,
         "fsused": null,
         "fsuse%": null,
         "fsver": null,
         "group": "disk",
         "hctl": "3:0:2:0",
         "hotplug": false,
         "kname": "sdd",
         "label": null,
         "log-sec": 512,
         "maj:min": "8:48",
         "min-io": 512,
         "mode": "brw-rw----",
         "model": "WD6002BKTG",
         "name": "sdd",
         "opt-io": 0,
         "owner": "root",
         "partflags": null,
         "partlabel": null,
         "parttype": null,
         "parttypename": null,
         "partuuid": null,
         "path": "/dev/sdd",
         "phy-sec": 512,
         "pkname": null,
         "pttype": "gpt",
         "ptuuid": "51ef300e-7582-4b4d-9267-eb6e21b85441",
         "ra": 128,
         "rand": true,
         "rev": "D1P3",
         "rm": false,
         "ro": false,
         "rota": true,
         "rq-size": 256,
         "sched": "mq-deadline",
         "serial": "WX71E34SUL87",
         "size": "558.9G",
         "start": null,
         "state": "running",
         "subsystems": "block:scsi:pci",
         "mountpoint": null,
         "mountpoints": [
             null
         ],
         "tran": "sas",
         "type": "disk",
         "uuid": null,
         "vendor": "WD      ",
         "wsame": "0B",
         "wwn": "0x50014ee7aaeb1390",
         "zoned": "none",
         "zone-sz": "0B",
         "zone-wgran": "0B",
         "zone-app": "0B",
         "zone-nr": 0,
         "zone-omax": 0,
         "zone-amax": 0,
         "children": [
            {
               "alignment": 0,
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": null,
               "fsroots": [
                   null
               ],
               "fssize": null,
               "fstype": null,
               "fsused": null,
               "fsuse%": null,
               "fsver": null,
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sdd1",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:49",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "name": "sdd1",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "parttype": null,
               "parttypename": null,
               "partuuid": null,
               "path": "/dev/sdd1",
               "phy-sec": 512,
               "pkname": "sdd",
               "pttype": "gpt",
               "ptuuid": "51ef300e-7582-4b4d-9267-eb6e21b85441",
               "ra": 128,
               "rand": true,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": true,
               "rq-size": 256,
               "sched": "mq-deadline",
               "serial": null,
               "size": "558.9G",
               "start": 34,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": null,
               "mountpoints": [
                   null
               ],
               "tran": null,
               "type": "part",
               "uuid": null,
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x50014ee7aaeb1390",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            }
         ]
      },{
         "alignment": 0,
         "disc-aln": 0,
         "dax": false,
         "disc-gran": "0B",
         "disc-max": "0B",
         "disc-zero": false,
         "fsavail": null,
         "fsroots": [
             null
         ],
         "fssize": null,
         "fstype": null,
         "fsused": null,
         "fsuse%": null,
         "fsver": null,
         "group": "disk",
         "hctl": "3:0:3:0",
         "hotplug": false,
         "kname": "sde",
         "label": null,
         "log-sec": 512,
         "maj:min": "8:64",
         "min-io": 512,
         "mode": "brw-rw----",
         "model": "WD6002BKTG",
         "name": "sde",
         "opt-io": 0,
         "owner": "root",
         "partflags": null,
         "partlabel": null,
         "parttype": null,
         "parttypename": null,
         "partuuid": null,
         "path": "/dev/sde",
         "phy-sec": 512,
         "pkname": null,
         "pttype": "gpt",
         "ptuuid": "5e472623-b402-4994-9a1f-cbf97d8391c2",
         "ra": 128,
         "rand": true,
         "rev": "D1P3",
         "rm": false,
         "ro": false,
         "rota": true,
         "rq-size": 256,
         "sched": "mq-deadline",
         "serial": "WX71E34SLY46",
         "size": "558.9G",
         "start": null,
         "state": "running",
         "subsystems": "block:scsi:pci",
         "mountpoint": null,
         "mountpoints": [
             null
         ],
         "tran": "sas",
         "type": "disk",
         "uuid": null,
         "vendor": "WD      ",
         "wsame": "0B",
         "wwn": "0x50014ee7aaeb15f4",
         "zoned": "none",
         "zone-sz": "0B",
         "zone-wgran": "0B",
         "zone-app": "0B",
         "zone-nr": 0,
         "zone-omax": 0,
         "zone-amax": 0,
         "children": [
            {
               "alignment": 0,
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": null,
               "fsroots": [
                   null
               ],
               "fssize": null,
               "fstype": null,
               "fsused": null,
               "fsuse%": null,
               "fsver": null,
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sde1",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:65",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "name": "sde1",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "parttype": null,
               "parttypename": null,
               "partuuid": null,
               "path": "/dev/sde1",
               "phy-sec": 512,
               "pkname": "sde",
               "pttype": "gpt",
               "ptuuid": "5e472623-b402-4994-9a1f-cbf97d8391c2",
               "ra": 128,
               "rand": true,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": true,
               "rq-size": 256,
               "sched": "mq-deadline",
               "serial": null,
               "size": "558.9G",
               "start": 34,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": null,
               "mountpoints": [
                   null
               ],
               "tran": null,
               "type": "part",
               "uuid": null,
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x50014ee7aaeb15f4",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            }
         ]
      },{
         "alignment": 0,
         "disc-aln": 0,
         "dax": false,
         "disc-gran": "0B",
         "disc-max": "0B",
         "disc-zero": false,
         "fsavail": null,
         "fsroots": [
             null
         ],
         "fssize": null,
         "fstype": null,
         "fsused": null,
         "fsuse%": null,
         "fsver": null,
         "group": "disk",
         "hctl": "3:0:4:0",
         "hotplug": false,
         "kname": "sdf",
         "label": null,
         "log-sec": 512,
         "maj:min": "8:80",
         "min-io": 512,
         "mode": "brw-rw----",
         "model": "WD6002BKTG",
         "name": "sdf",
         "opt-io": 0,
         "owner": "root",
         "partflags": null,
         "partlabel": null,
         "parttype": null,
         "parttypename": null,
         "partuuid": null,
         "path": "/dev/sdf",
         "phy-sec": 512,
         "pkname": null,
         "pttype": "gpt",
         "ptuuid": "7fc28b15-c2da-4ce2-a57f-92b85617dcab",
         "ra": 128,
         "rand": true,
         "rev": "D1P3",
         "rm": false,
         "ro": false,
         "rota": true,
         "rq-size": 256,
         "sched": "mq-deadline",
         "serial": "WX71E34SLP53",
         "size": "558.9G",
         "start": null,
         "state": "running",
         "subsystems": "block:scsi:pci",
         "mountpoint": null,
         "mountpoints": [
             null
         ],
         "tran": "sas",
         "type": "disk",
         "uuid": null,
         "vendor": "WD      ",
         "wsame": "0B",
         "wwn": "0x50014ee700407334",
         "zoned": "none",
         "zone-sz": "0B",
         "zone-wgran": "0B",
         "zone-app": "0B",
         "zone-nr": 0,
         "zone-omax": 0,
         "zone-amax": 0,
         "children": [
            {
               "alignment": 0,
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": null,
               "fsroots": [
                   null
               ],
               "fssize": null,
               "fstype": null,
               "fsused": null,
               "fsuse%": null,
               "fsver": null,
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sdf1",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:81",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "name": "sdf1",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "parttype": null,
               "parttypename": null,
               "partuuid": null,
               "path": "/dev/sdf1",
               "phy-sec": 512,
               "pkname": "sdf",
               "pttype": "gpt",
               "ptuuid": "7fc28b15-c2da-4ce2-a57f-92b85617dcab",
               "ra": 128,
               "rand": true,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": true,
               "rq-size": 256,
               "sched": "mq-deadline",
               "serial": null,
               "size": "558.9G",
               "start": 34,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": null,
               "mountpoints": [
                   null
               ],
               "tran": null,
               "type": "part",
               "uuid": null,
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x50014ee700407334",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            }
         ]
      },{
         "alignment": 0,
         "disc-aln": 0,
         "dax": false,
         "disc-gran": "0B",
         "disc-max": "0B",
         "disc-zero": false,
         "fsavail": null,
         "fsroots": [
             null
         ],
         "fssize": null,
         "fstype": null,
         "fsused": null,
         "fsuse%": null,
         "fsver": null,
         "group": "disk",
         "hctl": "3:0:5:0",
         "hotplug": false,
         "kname": "sdg",
         "label": null,
         "log-sec": 512,
         "maj:min": "8:96",
         "min-io": 512,
         "mode": "brw-rw----",
         "model": "ST600MM0006",
         "name": "sdg",
         "opt-io": 0,
         "owner": "root",
         "partflags": null,
         "partlabel": null,
         "parttype": null,
         "parttypename": null,
         "partuuid": null,
         "path": "/dev/sdg",
         "phy-sec": 512,
         "pkname": null,
         "pttype": "gpt",
         "ptuuid": "be9dd28c-a6a5-4013-b984-1a8983034d90",
         "ra": 128,
         "rand": true,
         "rev": "LS0C",
         "rm": false,
         "ro": false,
         "rota": true,
         "rq-size": 256,
         "sched": "mq-deadline",
         "serial": "S0M2EA39",
         "size": "558.9G",
         "start": null,
         "state": "running",
         "subsystems": "block:scsi:pci",
         "mountpoint": null,
         "mountpoints": [
             null
         ],
         "tran": "sas",
         "type": "disk",
         "uuid": null,
         "vendor": "SEAGATE ",
         "wsame": "0B",
         "wwn": "0x5000c5007256132f",
         "zoned": "none",
         "zone-sz": "0B",
         "zone-wgran": "0B",
         "zone-app": "0B",
         "zone-nr": 0,
         "zone-omax": 0,
         "zone-amax": 0,
         "children": [
            {
               "alignment": 0,
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": null,
               "fsroots": [
                   null
               ],
               "fssize": null,
               "fstype": null,
               "fsused": null,
               "fsuse%": null,
               "fsver": null,
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sdg1",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:97",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "name": "sdg1",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "parttype": null,
               "parttypename": null,
               "partuuid": null,
               "path": "/dev/sdg1",
               "phy-sec": 512,
               "pkname": "sdg",
               "pttype": "gpt",
               "ptuuid": "be9dd28c-a6a5-4013-b984-1a8983034d90",
               "ra": 128,
               "rand": true,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": true,
               "rq-size": 256,
               "sched": "mq-deadline",
               "serial": null,
               "size": "558.9G",
               "start": 34,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": null,
               "mountpoints": [
                   null
               ],
               "tran": null,
               "type": "part",
               "uuid": null,
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x5000c5007256132f",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            }
         ]
      },{
         "alignment": 0,
         "disc-aln": 0,
         "dax": false,
         "disc-gran": "0B",
         "disc-max": "0B",
         "disc-zero": false,
         "fsavail": null,
         "fsroots": [
             null
         ],
         "fssize": null,
         "fstype": null,
         "fsused": null,
         "fsuse%": null,
         "fsver": null,
         "group": "disk",
         "hctl": "34:0:0:0",
         "hotplug": false,
         "kname": "sdh",
         "label": null,
         "log-sec": 512,
         "maj:min": "8:112",
         "min-io": 4096,
         "mode": "brw-rw----",
         "model": "CT250MX500SSD1",
         "name": "sdh",
         "opt-io": 0,
         "owner": "root",
         "partflags": null,
         "partlabel": null,
         "parttype": null,
         "parttypename": null,
         "partuuid": null,
         "path": "/dev/sdh",
         "phy-sec": 4096,
         "pkname": null,
         "pttype": "gpt",
         "ptuuid": "9e032d02-7897-4ddd-bd3e-a5bda940ed52",
         "ra": 128,
         "rand": false,
         "rev": "023 ",
         "rm": false,
         "ro": false,
         "rota": false,
         "rq-size": 256,
         "sched": "mq-deadline",
         "serial": "2103E4E78D61",
         "size": "232.9G",
         "start": null,
         "state": "running",
         "subsystems": "block:scsi:pci",
         "mountpoint": null,
         "mountpoints": [
             null
         ],
         "tran": "sas",
         "type": "disk",
         "uuid": null,
         "vendor": "ATA     ",
         "wsame": "0B",
         "wwn": "0x500a0751e4e78d61",
         "zoned": "none",
         "zone-sz": "0B",
         "zone-wgran": "0B",
         "zone-app": "0B",
         "zone-nr": 0,
         "zone-omax": 0,
         "zone-amax": 0,
         "children": [
            {
               "alignment": 3072,
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": null,
               "fsroots": [
                   null
               ],
               "fssize": null,
               "fstype": null,
               "fsused": null,
               "fsuse%": null,
               "fsver": null,
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sdh1",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:113",
               "min-io": 4096,
               "mode": "brw-rw----",
               "model": null,
               "name": "sdh1",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "parttype": null,
               "parttypename": null,
               "partuuid": null,
               "path": "/dev/sdh1",
               "phy-sec": 4096,
               "pkname": "sdh",
               "pttype": "gpt",
               "ptuuid": "9e032d02-7897-4ddd-bd3e-a5bda940ed52",
               "ra": 128,
               "rand": false,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": false,
               "rq-size": 256,
               "sched": "mq-deadline",
               "serial": null,
               "size": "232.9G",
               "start": 34,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": null,
               "mountpoints": [
                   null
               ],
               "tran": null,
               "type": "part",
               "uuid": null,
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x500a0751e4e78d61",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            }
         ]
      },{
         "alignment": 0,
         "disc-aln": 0,
         "dax": false,
         "disc-gran": "512B",
         "disc-max": "2G",
         "disc-zero": false,
         "fsavail": null,
         "fsroots": [
             null
         ],
         "fssize": null,
         "fstype": null,
         "fsused": null,
         "fsuse%": null,
         "fsver": null,
         "group": "disk",
         "hctl": "34:0:1:0",
         "hotplug": false,
         "kname": "sdi",
         "label": null,
         "log-sec": 512,
         "maj:min": "8:128",
         "min-io": 512,
         "mode": "brw-rw----",
         "model": "Samsung SSD 870 EVO 250GB",
         "name": "sdi",
         "opt-io": 0,
         "owner": "root",
         "partflags": null,
         "partlabel": null,
         "parttype": null,
         "parttypename": null,
         "partuuid": null,
         "path": "/dev/sdi",
         "phy-sec": 512,
         "pkname": null,
         "pttype": "gpt",
         "ptuuid": "b14d6070-a9de-4f50-b7cd-fbba420c00e0",
         "ra": 128,
         "rand": false,
         "rev": "1B6Q",
         "rm": false,
         "ro": false,
         "rota": false,
         "rq-size": 256,
         "sched": "mq-deadline",
         "serial": "S61WNJ0NC38247A",
         "size": "232.9G",
         "start": null,
         "state": "running",
         "subsystems": "block:scsi:pci",
         "mountpoint": null,
         "mountpoints": [
             null
         ],
         "tran": "sas",
         "type": "disk",
         "uuid": null,
         "vendor": "ATA     ",
         "wsame": "0B",
         "wwn": "0x5002538f30c55b06",
         "zoned": "none",
         "zone-sz": "0B",
         "zone-wgran": "0B",
         "zone-app": "0B",
         "zone-nr": 0,
         "zone-omax": 0,
         "zone-amax": 0,
         "children": [
            {
               "alignment": 0,
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "512B",
               "disc-max": "2G",
               "disc-zero": false,
               "fsavail": "225.8G",
               "fsroots": [
                   "/"
               ],
               "fssize": "228.2G",
               "fstype": "ext4",
               "fsused": "28K",
               "fsuse%": "0%",
               "fsver": "1.0",
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sdi1",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:129",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "name": "sdi1",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": "primary",
               "parttype": "0fc63daf-8483-4772-8e79-3d69d8477de4",
               "parttypename": "Linux filesystem",
               "partuuid": "a6533d4b-ad05-42a9-a580-8e53cc517b65",
               "path": "/dev/sdi1",
               "phy-sec": 512,
               "pkname": "sdi",
               "pttype": "gpt",
               "ptuuid": "b14d6070-a9de-4f50-b7cd-fbba420c00e0",
               "ra": 128,
               "rand": false,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": false,
               "rq-size": 256,
               "sched": "mq-deadline",
               "serial": null,
               "size": "232.9G",
               "start": 34,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": "/mnt/Storage1_sdh1",
               "mountpoints": [
                   "/mnt/Storage1_sdh1"
               ],
               "tran": null,
               "type": "part",
               "uuid": "d28d9a07-70e0-4a04-aef0-9b3dff8304e5",
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x5002538f30c55b06",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            }
         ]
      },{
         "alignment": 0,
         "disc-aln": 0,
         "dax": false,
         "disc-gran": "0B",
         "disc-max": "0B",
         "disc-zero": false,
         "fsavail": null,
         "fsroots": [
             null
         ],
         "fssize": null,
         "fstype": null,
         "fsused": null,
         "fsuse%": null,
         "fsver": null,
         "group": "cdrom",
         "hctl": "4:0:0:0",
         "hotplug": true,
         "kname": "sr0",
         "label": null,
         "log-sec": 512,
         "maj:min": "11:0",
         "min-io": 512,
         "mode": "brw-rw----",
         "model": "VMware Virtual SATA CDRW Drive",
         "name": "sr0",
         "opt-io": 0,
         "owner": "root",
         "partflags": null,
         "partlabel": null,
         "parttype": null,
         "parttypename": null,
         "partuuid": null,
         "path": "/dev/sr0",
         "phy-sec": 512,
         "pkname": null,
         "pttype": null,
         "ptuuid": null,
         "ra": 128,
         "rand": false,
         "rev": "1.00",
         "rm": true,
         "ro": false,
         "rota": true,
         "rq-size": 64,
         "sched": "mq-deadline",
         "serial": "00000000000000000001",
         "size": "1024M",
         "start": null,
         "state": "running",
         "subsystems": "block:scsi:pci",
         "mountpoint": null,
         "mountpoints": [
             null
         ],
         "tran": "sata",
         "type": "rom",
         "uuid": null,
         "vendor": "NECVMWar",
         "wsame": "0B",
         "wwn": null,
         "zoned": "none",
         "zone-sz": "0B",
         "zone-wgran": "0B",
         "zone-app": "0B",
         "zone-nr": 0,
         "zone-omax": 0,
         "zone-amax": 0
      }
   ]
}

@LinkLeong
Copy link
Collaborator

image
After data tracing, it was found that some partitions of your disk were not formatted or did not show the fstype. If you have formatted it and confirmed that it is usable, can you tell us what partition it is?The current logic of casaos is to mount the partitions according to their format.

@jerry1333
Copy link
Author

jerry1333 commented Sep 19, 2023

So i did some testing again:

root@casaOS:~# fdisk /dev/sdb

Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help): p
Disk /dev/sdb: 5.46 TiB, 6001175126016 bytes, 11721045168 sectors
Disk model: WDC WD60EFAX-68S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: EC97AE1F-CCDA-4794-A95D-9675A5CD4E63

Device     Start         End     Sectors  Size Type
/dev/sdb1     34 11721045134 11721045101  5.5T Linux filesystem

Partition 1 does not start on physical sector boundary.

Command (m for help): q

root@casaOS:~# 

Output from parted:

root@casaOS:~# parted /dev/sdb
GNU Parted 3.5
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print list                                                       
Model: ATA WDC WD60EFAX-68S (scsi)
Disk /dev/sdb: 6001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  6001GB  6001GB  ext4         primary

mount:

root@casaOS:~# mount /dev/sdb1 /mnt/Storage1_sdb1
mount: /mnt/Storage1_sdb1: more filesystems detected on /dev/sdb1; use -t <type> or wipefs(8).
root@casaOS:~# mount -t ext4 /dev/sdb1 /mnt/Storage1_sdb1
root@casaOS:~# 

After manual mount:
image
And i can upload files and so on.

root@casaOS:~# ls -ahl /mnt/Storage1_sdb1/test/
total 92K
drwxr-xr-x 2 root root 4.0K Sep 19 22:41 .
drwxr-xr-x 5 root root 4.0K Sep 19 22:40 ..
-rw-r--r-- 1 root root  84K Sep 19 22:38 5cde82ee31e8e.jpg

As last thing i could figure out i did wipefs:

root@casaOS:~# wipefs /dev/sdb1
DEVICE OFFSET        TYPE       UUID                                 LABEL
sdb1   0x438         ext4       80797446-fcdb-4fcc-8ef9-e21b13eaf80a 
sdb1   0x57541e3fc00 zfs_member                                      
sdb1   0x57541e3ec00 zfs_member                                      
sdb1   0x57541e3dc00 zfs_member                                      
sdb1   0x57541e3cc00 zfs_member                                      
sdb1   0x57541e3bc00 zfs_member                                      

root@casaOS:~# wipefs --all /dev/sdb1
/dev/sdb1: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef
/dev/sdb1: 8 bytes were erased at offset 0x57541e3fc00 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb1: 8 bytes were erased at offset 0x57541e3ec00 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb1: 8 bytes were erased at offset 0x57541e3dc00 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb1: 8 bytes were erased at offset 0x57541e3cc00 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb1: 8 bytes were erased at offset 0x57541e3bc00 (zfs_member): 0c b1 ba 00 00 00 00 00

And now it works! I can create storage from UI and it survived restart :)
image
Looks like some leftovers from truenas filesystem survived all my tinkering.

@jerry1333
Copy link
Author

Also can you make this whole window scrollable like this or smt like that?
image

@jerrykuku
Copy link
Contributor

Ok, let's make it scrollable.

@LinkLeong LinkLeong removed their assignment Oct 6, 2023
@github-project-automation github-project-automation bot moved this to Need Triage (QA+PM) in CasaOS Issues Nov 2, 2023
zhanghengxin added a commit to IceWhaleTech/CasaOS-UI that referenced this issue Nov 2, 2023
zhanghengxin added a commit to IceWhaleTech/CasaOS-UI that referenced this issue Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants