Hello again @phillxnet,
I have changed the parameter’s value as suggested I think…
I have modified the parameter in the file called “osi.py” wich is under “/opt/rockstor/src/rockstor/system”
Now
Is it the rigth procedure? Sorry but I’m not really good…
Anyway this is the result of
“lsblk -P -p -o NAME,MODEL,SERIAL,SIZE,TRAN,VENDOR,HCTL,TYPE,FSTYPE,LABEL,UUID” after reboot:
"
NAME="/dev/sda" MODEL=“LOGICAL_VOLUME” SERIAL=“5001438010043670” SIZE=“465,7G” TRAN=“sas” VENDOR=“HP " HCTL=“0:1:0:0” TYPE=“disk” FSTYPE=”" LABE
L="" UUID=""
NAME="/dev/sda4" MODEL="" SERIAL="" SIZE=“463,7G” TRAN="" VENDOR="" HCTL="" TYPE=“part” FSTYPE=“btrfs” LABEL=“ROOT” UUID=“4ac51b0f-afeb-4946-aad1-975
a2a26c941”
NAME="/dev/sda2" MODEL="" SERIAL="" SIZE=“64M” TRAN="" VENDOR="" HCTL="" TYPE=“part” FSTYPE=“vfat” LABEL=“EFI” UUID=“A48E-EDBF”
NAME="/dev/sda3" MODEL="" SERIAL="" SIZE=“2G” TRAN="" VENDOR="" HCTL="" TYPE=“part” FSTYPE=“swap” LABEL=“SWAP” UUID=“42d2c6da-102d-49f2-948e-817a10e6
1370”
NAME="/dev/sda1" MODEL="" SERIAL="" SIZE=“2M” TRAN="" VENDOR="" HCTL="" TYPE=“part” FSTYPE="" LABEL="" UUID=""
NAME="/dev/sdb" MODEL=“LOGICAL_VOLUME” SERIAL=“5001438010043670” SIZE=“465,7G” TRAN=“sas” VENDOR=“HP " HCTL=“0:1:0:1” TYPE=“disk” FSTYPE=”" LABE
L="" UUID=""
NAME="/dev/sdc" MODEL=“LOGICAL_VOLUME” SERIAL=“5001438010043670” SIZE=“136,7G” TRAN=“sas” VENDOR=“HP " HCTL=“0:1:0:2” TYPE=“disk” FSTYPE=”" LABE
L="" UUID=""
NAME="/dev/sdd" MODEL=“LOGICAL_VOLUME” SERIAL=“5001438010043670” SIZE=“136,7G” TRAN=“sas” VENDOR=“HP " HCTL=“0:1:0:3” TYPE=“disk” FSTYPE=”" LABE
L="" UUID=""
NAME="/dev/sde" MODEL=“LOGICAL_VOLUME” SERIAL=“5001438010043670” SIZE=“136,7G” TRAN=“sas” VENDOR=“HP " HCTL=“0:1:0:4” TYPE=“disk” FSTYPE=”" LABE
L="" UUID=""
NAME="/dev/sr0" MODEL=“DV-28S-W” SERIAL=“10100628181955” SIZE=“1024M” TRAN=“sata” VENDOR=“TEAC " HCTL=“3:0:0:0” TYPE=“rom” FSTYPE=”" LABEL="" UUID
=""
"
This is UDEAVADM info for 2 disks (/dev/sdb and /dev/sda):
/usr/bin/udevadm info --name=/dev/sdb
P: /devices/pci0000:00/0000:00:04.0/0000:03:00.0/host0/target0:1:0/0:1:0:1/block/sdb
N: sdb
L: 0
S: disk/by-path/pci-0000:03:00.0-scsi-0:1:0:1
S: disk/by-id/scsi-3600508b1001ca686d9b47b52e6f088e8
S: disk/by-id/scsi-0HP_LOGICAL_VOLUME_01000000
S: disk/by-id/scsi-SHP_LOGICAL_VOLUME_5001438010043670
S: disk/by-id/wwn-0x600508b1001ca686d9b47b52e6f088e8
E: DEVPATH=/devices/pci0000:00/0000:00:04.0/0000:03:00.0/host0/target0:1:0/0:1:0:1/block/sdb
E: DEVNAME=/dev/sdb
E: DEVTYPE=disk
E: MAJOR=8
E: MINOR=16
E: SUBSYSTEM=block
E: USEC_INITIALIZED=12195066
E: DONT_DEL_PART_NODES=1
E: ID_PATH=pci-0000:03:00.0-scsi-0:1:0:1
E: ID_PATH_TAG=pci-0000_03_00_0-scsi-0_1_0_1
E: SCSI_TPGS=0
E: SCSI_TYPE=disk
E: SCSI_VENDOR=HP
E: SCSI_VENDOR_ENC=HP\x20\x20\x20\x20\x20\x20
E: SCSI_MODEL=LOGICAL_VOLUME
E: SCSI_MODEL_ENC=LOGICAL\x20VOLUME\x20\x20
E: SCSI_REVISION=6.64
E: ID_SCSI=1
E: ID_SCSI_INQUIRY=1
E: SCSI_IDENT_SERIAL=5001438010043670
E: SCSI_IDENT_LUN_NAA_REGEXT=600508b1001ca686d9b47b52e6f088e8
E: SCSI_IDENT_LUN_VENDOR=01000000
E: ID_VENDOR=HP
E: ID_VENDOR_ENC=HP\x20\x20\x20\x20\x20\x20
E: ID_MODEL=LOGICAL_VOLUME
E: ID_MODEL_ENC=LOGICAL\x20VOLUME\x20\x20
E: ID_REVISION=6.64
E: ID_TYPE=disk
E: ID_WWN_WITH_EXTENSION=0x600508b1001ca686d9b47b52e6f088e8
E: ID_WWN=0x600508b1001ca686
E: ID_BUS=scsi
E: ID_SERIAL=3600508b1001ca686d9b47b52e6f088e8
E: ID_SERIAL_SHORT=600508b1001ca686d9b47b52e6f088e8
E: MPATH_SBIN_PATH=/sbin
E: DM_MULTIPATH_DEVICE_PATH=0
E: FC_TARGET_LUN=1
E: COMPAT_SYMLINK_GENERATION=2
E: DEVLINKS=/dev/disk/by-path/pci-0000:03:00.0-scsi-0:1:0:1 /dev/disk/by-id/scsi-3600508b1001ca686d9b47b52e6f088e8 /dev/disk/by-id/scsi-0HP_LOGICAL_V
OLUME_01000000 /dev/disk/by-id/scsi-SHP_LOGICAL_VOLUME_5001438010043670 /dev/disk/by-id/wwn-0x600508b1001ca686d9b47b52e6f088e8
E: TAGS=:systemd:
"
P: /devices/pci0000:00/0000:00:04.0/0000:03:00.0/host0/target0:1:0/0:1:0:0/block/sda
N: sda
L: 0
S: disk/by-id/scsi-0HP_LOGICAL_VOLUME_00000000
S: disk/by-id/scsi-SHP_LOGICAL_VOLUME_5001438010043670
S: disk/by-id/wwn-0x600508b1001c6b17ed447eece1c911e8
S: disk/by-path/pci-0000:03:00.0-scsi-0:1:0:0
S: disk/by-id/scsi-3600508b1001c6b17ed447eece1c911e8
E: DEVPATH=/devices/pci0000:00/0000:00:04.0/0000:03:00.0/host0/target0:1:0/0:1:0:0/block/sda
E: DEVNAME=/dev/sda
E: DEVTYPE=disk
E: MAJOR=8
E: MINOR=0
E: SUBSYSTEM=block
E: USEC_INITIALIZED=11664722
E: DONT_DEL_PART_NODES=1
E: ID_PATH=pci-0000:03:00.0-scsi-0:1:0:0
E: ID_PATH_TAG=pci-0000_03_00_0-scsi-0_1_0_0
E: SCSI_TPGS=0
E: SCSI_TYPE=disk
E: SCSI_VENDOR=HP
E: SCSI_VENDOR_ENC=HP\x20\x20\x20\x20\x20\x20
E: SCSI_MODEL=LOGICAL_VOLUME
E: SCSI_MODEL_ENC=LOGICAL\x20VOLUME\x20\x20
E: SCSI_REVISION=6.64
E: ID_SCSI=1
E: ID_SCSI_INQUIRY=1
E: SCSI_IDENT_SERIAL=5001438010043670
E: SCSI_IDENT_LUN_NAA_REGEXT=600508b1001c6b17ed447eece1c911e8
E: SCSI_IDENT_LUN_VENDOR=00000000
E: ID_VENDOR=HP
E: ID_VENDOR_ENC=HP\x20\x20\x20\x20\x20\x20
E: ID_MODEL=LOGICAL_VOLUME
E: ID_MODEL_ENC=LOGICAL\x20VOLUME\x20\x20
E: ID_REVISION=6.64
E: ID_TYPE=disk
E: ID_WWN_WITH_EXTENSION=0x600508b1001c6b17ed447eece1c911e8
E: ID_WWN=0x600508b1001c6b17
E: ID_BUS=scsi
E: ID_SERIAL=3600508b1001c6b17ed447eece1c911e8
E: ID_SERIAL_SHORT=600508b1001c6b17ed447eece1c911e8
E: MPATH_SBIN_PATH=/sbin
E: DM_MULTIPATH_DEVICE_PATH=0
E: FC_TARGET_LUN=0
E: ID_PART_TABLE_UUID=8153e902-98f9-48d7-a3ac-4fe49680f98e
E: ID_PART_TABLE_TYPE=gpt
E: COMPAT_SYMLINK_GENERATION=2
E: DEVLINKS=/dev/disk/by-id/scsi-0HP_LOGICAL_VOLUME_00000000 /dev/disk/by-id/scsi-SHP_LOGICAL_VOLUME_5001438010043670 /dev/disk/by-id/wwn-0x600508b10
01c6b17ed447eece1c911e8 /dev/disk/by-path/pci-0000:03:00.0-scsi-0:1:0:0 /dev/disk/by-id/scsi-3600508b1001c6b17ed447eece1c911e8
E: TAGS=:systemd:
"
And this is part of Rockstor log (don’t know if could be useful, looks like an insert fail in database for duplicate key):
"
[06/Jun/2022 12:41:22] INFO [storageadmin.views.disk:141] Deleting duplicate or fake (by serial) disk db entry. Serial = (fake-serial-e91e6af7-023f-496f-8344-787001aaa139).
[06/Jun/2022 12:41:22] INFO [storageadmin.views.disk:141] Deleting duplicate or fake (by serial) disk db entry. Serial = (fake-serial-5224c875-af1f-45ab-b582-8117ff90f0ce).
[06/Jun/2022 12:41:22] INFO [storageadmin.views.disk:141] Deleting duplicate or fake (by serial) disk db entry. Serial = (fake-serial-47a4c9d8-a111-403b-b1b0-94cdcf91c2b8).
[06/Jun/2022 12:41:22] INFO [storageadmin.views.disk:141] Deleting duplicate or fake (by serial) disk db entry. Serial = (fake-serial-db4b2484-6172-4c25-acba-c7d226972188).
[06/Jun/2022 12:41:23] ERROR [storageadmin.util:45] Exception: duplicate key value violates unique constraint "storageadmin_disk_name_key"
DETAIL: Key (name)=(scsi-SHP_LOGICAL_VOLUME_5001438010043670) already exists.
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 41, in _handle_exception
yield
File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 504, in post
return self._update_disk_state()
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/decorators.py", line 145, in inner
return func(*args, **kwargs)
File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 426, in _update_disk_state
dob.save()
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 734, in save
force_update=force_update, update_fields=update_fields)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 762, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 846, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 885, in _do_insert
using=using, raw=raw)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 920, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/sql/compiler.py", line 974, in execute_sql
cursor.execute(sql, params)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/utils.py", line 98, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
IntegrityError: duplicate key value violates unique constraint "storageadmin_disk_name_key"
DETAIL: Key (name)=(scsi-SHP_LOGICAL_VOLUME_5001438010043670) already exists.
[06/Jun/2022 12:42:26] INFO [storageadmin.views.disk:141] Deleting duplicate or fake (by serial) disk db entry. Serial = (fake-serial-e91e6af7-023f-496f-8344-787001aaa139).
[06/Jun/2022 12:42:26] INFO [storageadmin.views.disk:141] Deleting duplicate or fake (by serial) disk db entry. Serial = (fake-serial-5224c875-af1f-45ab-b582-8117ff90f0ce).
[06/Jun/2022 12:42:26] INFO [storageadmin.views.disk:141] Deleting duplicate or fake (by serial) disk db entry. Serial = (fake-serial-47a4c9d8-a111-403b-b1b0-94cdcf91c2b8).
[06/Jun/2022 12:42:26] INFO [storageadmin.views.disk:141] Deleting duplicate or fake (by serial) disk db entry. Serial = (fake-serial-db4b2484-6172-4c25-acba-c7d226972188).
[06/Jun/2022 12:42:27] INFO [storageadmin.views.disk:141] Deleting duplicate or fake (by serial) disk db entry. Serial = (fake-serial-e91e6af7-023f-496f-8344-787001aaa139).
[06/Jun/2022 12:42:27] INFO [storageadmin.views.disk:141] Deleting duplicate or fake (by serial) disk db entry. Serial = (fake-serial-5224c875-af1f-45ab-b582-8117ff90f0ce).
[06/Jun/2022 12:42:27] ERROR [storageadmin.util:45] Exception: duplicate key value violates unique constraint "storageadmin_disk_name_key"
DETAIL: Key (name)=(scsi-SHP_LOGICAL_VOLUME_5001438010043670) already exists.
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 41, in _handle_exception
yield
File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 504, in post
return self._update_disk_state()
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/decorators.py", line 145, in inner
return func(*args, **kwargs)
File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 426, in _update_disk_state
dob.save()
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 734, in save
force_update=force_update, update_fields=update_fields)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 762, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 846, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 885, in _do_insert
using=using, raw=raw)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 920, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/sql/compiler.py", line 974, in execute_sql
cursor.execute(sql, params)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/utils.py", line 98, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
IntegrityError: duplicate key value violates unique constraint "storageadmin_disk_name_key"
DETAIL: Key (name)=(scsi-SHP_LOGICAL_VOLUME_5001438010043670) already exists.
[06/Jun/2022 12:42:27] INFO [storageadmin.views.disk:141] Deleting duplicate or fake (by serial) disk db entry. Serial = (fake-serial-47a4c9d8-a111-403b-b1b0-94cdcf91c2b8).
[06/Jun/2022 12:42:27] INFO [storageadmin.views.disk:141] Deleting duplicate or fake (by serial) disk db entry. Serial = (fake-serial-db4b2484-6172-4c25-acba-c7d226972188).
[06/Jun/2022 12:42:28] ERROR [storageadmin.util:45] Exception: duplicate key value violates unique constraint "storageadmin_disk_name_key"
DETAIL: Key (name)=(scsi-SHP_LOGICAL_VOLUME_5001438010043670) already exists.
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 41, in _handle_exception
yield
File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 504, in post
return self._update_disk_state()
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/decorators.py", line 145, in inner
return func(*args, **kwargs)
File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 426, in _update_disk_state
dob.save()
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 734, in save
force_update=force_update, update_fields=update_fields)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 762, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 846, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 885, in _do_insert
using=using, raw=raw)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 920, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/sql/compiler.py", line 974, in execute_sql
cursor.execute(sql, params)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/utils.py", line 98, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
IntegrityError: duplicate key value violates unique constraint "storageadmin_disk_name_key"
DETAIL: Key (name)=(scsi-SHP_LOGICAL_VOLUME_5001438010043670) already exists.
"
Thanks again.