Proper way of doing a reboot of ISCSI server

C

coffe

Guest
Hi,
Due to some problems with my new storage server , i lost all my ISCSI/LVM host then storage server have been rebooted,
So Whats the proper way of shutting down the storage so proxmox servers will be able to connect again ?

a lvscan on storage shows the lv s.

//Coffe
 
*bump* as i dont like to redo all problems with my ISCSI server every time.
is it as simple as selecting disable om first LVM then ISCSI ?
 
Well my issue is identical.

I have 2 Proxmox servers, 1 ISCSI storage for backups.

I had the mount path in fstab, and as soon as i rebooted the master (which has the iscsi attached as well, along with the fstab line) it didn't boot properly, as he couldnt find the line i inserted in fstab.

had to remove, reboot, and then go to Proxmox GUI, storage, click on the iscsi setting i had there, then go for command line, "fdisk -l" (detected), and do the mounting.

I also saw a message "no iscsi records found", you having the same issue?
 
I use the recommend way of runnint LVM on top of iscsi , so proxmox it self handles it.
But by stopping all servers using it, then disable LVM then ISCSI , and reboot seems to work.

Will do more testing.

/C
 
When you setup LVM it only allows content as Virtual Disks

I use the iscsi storage only for backups.

that being, i need to have vz backups or so, setting.

You get me here?

Cheers
 
personnaly I'll do :
after having unmounted all iSCSI disks...

Code:
# vgs => to see the VG names on you iSCSI
# vgchange -an nameoftheVG => to disable the LV's and VG
# lsscsi (if you don't have it : # aptitude install lsscsi)

you'll see the disks :

Code:
neptune2:~# lsscsi
[0:0:8:0]    enclosu DP       BACKPLANE        1.05  -       
[0:2:0:0]    disk    DELL     PERC 5/i         1.03  /dev/sda
[1:0:0:0]    cd/dvd  HL-DT-ST DVD-ROM GDR-T10N 1.02  /dev/sr0
[3:0:0:0]    disk    DataCore SANmelody        DCS   /dev/sdb
[3:0:0:1]    disk    DataCore SANmelody        DCS   /dev/sde
[4:0:0:0]    disk    DataCore SANmelody        DCS   /dev/sdc
[4:0:0:1]    disk    DataCore SANmelody        DCS   /dev/sdd

now you need to remove the iSCSI disks :
Code:
# scsiadd -r 4 0 0 1 (of example)

check the tartget you're connected to :
Code:
neptune2:~# iscsiadm -m session
tcp: [1] 10.10.0.1:3260,1 iqn.2000-08.com.datacore:andromede1-applications


disconnect from iSCSI target :
Code:
# iscsiadm -m node -T iqnofyourtarget

you may now stop your iSCSI target ;)

I hope it helps :)
 
When you setup LVM it only allows content as Virtual Disks

I use the iscsi storage only for backups.

that being, i need to have vz backups or so, setting.

You get me here?

Cheers
Yes.
Tnx alot :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!