You are not logged in.

#1 2016-10-13 14:13:05

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

3 block devices set for 1 container

Hi, I'd like to know if the output I get from lsblk after decrypting container sec is normal.
This happens with a local disk and NAS, output = the same.
All my containers are created with tcplay.
It don't matter if I use a script or single tcplay commands with THIS specific container.

relevant lsblk and dmsetup info output

loop0             7:0    0  100G  0 loop  
└─sec.1   254:0    0  100G  0 crypt 
  └─sec.0 254:1    0  100G  0 crypt 
    └─sec 254:2    0  100G  0 crypt /mnt/sec
Name:              sec.1
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      254, 0
Number of targets: 1
UUID: CRYPT-TCPLAY-2bf38e29-171a-4e13-9e3d-bbaa9a2291db

Name:              sec.0
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      254, 1
Number of targets: 1
UUID: CRYPT-TCPLAY-24312c9a-82ab-461b-b36a-171eb7a70f83

Name:              sec
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      254, 2
Number of targets: 1
UUID: CRYPT-TCPLAY-b00802b4-0b6e-4f09-8206-eba89ecc97f4

I have a second container, sec1, which is the same as sec

loop0             7:0    0  100G  0 loop  
└─sec1   254:0    0  100G  0  /mnt/sec1
Name:              sec1
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      254, 0
Number of targets: 1
UUID: CRYPT-TCPLAY-32c65d8c-3d91-48e8-aac6-60bbdcb6ed63

edit:the commands I used

losetup /dev/loop0 sec
tcplay -m sec -d /dev/loop0
mount -o nodev,nosuid /dev/mapper/sec /mnt/sec

umount /mnt/sec
dmsetup remove sec
losetup -d /dev/loop0

As you can see, there a 3 block devices set to open the initial container 'sec', and 1 on 'sec1'
After unmounting,1 block device is removed, which is the way it should be, but, 2 block devices are not being removed.
I am able to get the problem out of the way, but, I guess this not how it's supposed to be.
My question is, how could this have happened?

Last edited by qinohe (2016-10-13 15:49:05)

Offline

Board footer

Powered by FluxBB