as a file that contains the password for the FSvim /etc/fstab/dev/mapper/hiddenData /mnt/hiddenData ext4 defaults 0 0 To avoid being prompted for a password you can create a key, save it in a file and use this key to open the device:vim /etc/keytype anything in therechmod 400 /etc/key cryptsetup luksAddKey /dev/vda5 /etc/key cryptsetup luksDump /dev/vda5vim /etc/crypttabhiddenData /dev/sda2 /etc/key------------------iSCSIdoc under: /usr/share/doc/iscsi*/README# yum install -y iscsi-initiator-utils# iscsiadm -m discovery -t st -p 192.168.56.101192.168.56.101:3260,1 iqn.2006-01.com.openfiler:tsn.cc35969be1c0Login in the target# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.cc35969be1c0 -p 192.168.56.101 -lLogging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.cc35969be1c0, portal: 192.168.56.101,3260] (multiple)Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.cc35969be1c0, portal: 192.168.56.101,3260] successful.take a look in /var/log/messages and see what block devices appear OR run# find /sys/devices/platform/host* -name "block*"/sys/devices/platform/host4/session1/target4:0:0/4:0:0:0/block# ls /sys/devices/platform/host4/session1/target4\:0\:0/4\:0\:0\:0/block/sdcservice iscsi status will also show you, in the very bottom line, what devices iscsi is attached to.Make it persistent after reboots:vim /etc/fstab/dev/sdc1 /mnt/openfiler ext4 _netdev 0 0Cleaning the DBs:Removing known portals:[root@zeus ~]# iscsiadm -m discoverydb192.168.56.102:3260 via sendtargets192.168.56.101:3260 via sendtargets[root@zeus ~]# iscsiadm -m discovery -o delete -p 192.168.56.102[root@zeus ~]# iscsiadm -m discovery -o delete -p 192.168.56.101[root@zeus ~]# iscsiadm -m discovery[root@zeus ~]#----------------------------------After managing partitions you should reload the partition table partprobe used to be a good choice but seems to be deprecated right now. partx ou kpartx seems to be the new options.partx -a /dev/sda will add new partitions to the system. double check running cat /proc/partitionspartx -d /dev/sda will remove all inactive partitions from the system.Please use fdisk -cu.. these switches will disable DOS-compatible mode and show sectors instead of cylinders-------LVMCreating PVs[root@zeus ~]# fdisk -l /dev/sdcDisk /dev/sdc: 1073 MB, 1073741824 bytes34 heads, 61 sectors/track, 1011 cylindersUnits = cylinders of 2074 * 512 = 1061888 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x0000dfdc Device Boot Start End Blocks Id System/dev/sdc1 1 95 98484+ 8e Linux LVM/dev/sdc2 96 426 343247 83 Linux[root@zeus ~]# pvcreate /dev/sdc1 Physical volume "/dev/sdc1" successfully created[root@zeus ~]# pvcreate /dev/sdc2 Physical volume "/dev/sdc2" successfully created[root@zeus ~]#The man page for pvcreate says a partition should be type 8e but it does not complain about /dev/sdc2 though. let's move on..Creating a VG[root@zeus ~]# vgcreate mp3 /dev/sdc1 Volume group "mp3" successfully created[root@zeus ~]# vgdisplay -v mp3 Using volume group(s) on command line Finding volume group "mp3" --- Volume group --- VG Name mp3 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 1 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 92.00 MiB PE Size 4.00 MiB Total PE 23 Alloc PE / Size 0 / 0 Free PE / Size 23 / 92.00 MiB VG UUID tc1JKq-TBBw-zYax-51ET-2A5t-hK0t-wsWXTO --- Physical volumes --- PV Name /dev/sdc1 PV UUID XUKAwo-eZRI-Gq12-7oUb-4w8w-25rN-t64cBI PV Status allocatable Total PE / Free PE 23 / 23Note that -v switch brings up the PV that are part of the VG.Creating LVs[root@zeus ~]# lvcreate -L 50M mp3 -n rock_and_roll Rounding up size to full physical extent 52.00 MiB Logical volume "rock_and_roll" created[root@zeus ~]# lvcreate -L 10M mp3 -n soul Rounding up size to full physical extent 12.00 MiB Logical