iSCSI problem in PVE 1.4

  • Thread starter Thread starter TiagoRF
  • Start date Start date
T

TiagoRF

Guest
Hello,

In PVE 1.4 I experienced a problem with a ISCSI storage.

We've added in "Storage" both the ISCSI targets, everything was working properly until the first reboot of the master.

Apparently it didn't find any iscsi record to load, and the mounts failed obviously.

Am I missing some configuration parameter?

Everytime it reboots, it fails to get the config from the storage.

Cheers
 
Use iSCSI LUN for LVM base

This is a two step procedure and can be fully configured via the web interface.
First, add the iSCSI target.

  • Click 'Add iSCSI Target' on the Storage list
  • As storage name use whatever you want but take care, this name cannot be changed later.
  • Give the 'Portal' IP address or servername and scan for unused targets
  • disable 'use LUNs direcly'
  • Click save
Second, add LVM group on this target.

  • Click 'Add LVM Group' on the Storage list
  • As storage name use whatever you want but take care, this name cannot be changed later.
  • For 'Base Storage', use the drop down menu to select the previously defined iSCSI target.
  • For 'Base Volume' select a LUN
  • For 'Volume Group Name' give a unique name (this name cannot be changed later).
  • Enable shared use (recommended)
  • Click save

That was basically all I did, except that I went to command line to format the new hard drives in ext3, setup the mounts etc.
 
actually, forget about the second part, im using lun's directly.
But when I reboot, the machine says it cant find any iscsi records, as soon as i enter proxmox gui and click them, they become available for mounting.

any idea how to work around this? perhaps configuring iscsid.conf by hand?
 
actually, forget about the second part, im using lun's directly.
But when I reboot, the machine says it cant find any iscsi records, as soon as i enter proxmox gui and click them, they become available for mounting.

Yes, that is the behaviour - we only connect to the iscsi storage when we use it. Whats the problem with that?
 
Dietmar,

Imagine the following scenario:

You have 2 proxmox servers, obviously 1 master and 1 node, iscsi storage attached for backups, a mount on fstab on the node, and a mount on the master.

Everytime you reboot the master, it hangs on the boot because he can't find the mount we provided on fstab, by obviously not having any iscsi records.

I understand your point, but that can't happen on a production environment, and you know that as well.

Im just asking if there's any solution, otherwise I have a workaround for the scenario as well

Thanks

PS: from pve 1.4 to 1.5, the difference is quite staggering, wwwwwwwwwwwwwway better!!
 
Everytime you reboot the master, it hangs on the boot because he can't find the mount we provided on fstab, by obviously not having any iscsi records.

I guess you need to change the startup mode in /etc/iscsi/nodes/*/default

by default we use:

node.startup = manual

you should change that to:

node.startup = automatic

Does that help?