I have Centos on my physical drive. new volume created like commands below:
dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=50G
losetup /dev/loop3 cinder-volumes
fdisk /dev/loop3
n
p
1
ENTER
ENTER
t
8e
w
pvcreate /dev/loop3
All things goes right and I was happy.
but after reboot, this volume missed.
whats is the problem?
thanks

You can associate the
/dev/loop3withcinder-volumesfiles as using/etc/rc.d/rc.localconf.CentOS 6 or less
CentOS 7
After modifying, you set the execution flag to
/etc/rc.d/rc.localAnd more checks your OS rc-local.service as following,
or
If the state is disable, you can be enable the rc-local service, but the state is static is not any more conf.
Updated: Adding restore steps based on hypothesis that refer from questions.
★★★In advance, I defined that these steps are just written as the provision of information, I won't be not responsible for data-loss caused by these steps.★★★
Prepare the other server having same specifications as possible as you can.
backup the data (here is
cinder-volumesfile) with dd or cp commandscheck the backup file whether same original data with
md5sumcommand.the backup data transfer to the new server for testing.
test command;
losetup /dev/loop3 /path/to/cinder-volumesandblkidcommand for check UUID whether same with the original loop3 device.More tests was always conducted on the new server, not production or important environments.
the loop3 or loopN device is virtual device for using the non-block device as of block device. It is just mapping interfaces. The loop3 device is disappeared but if
cinder-volumesis clear, no problem.I hope you it's helpful.