22.01.2014 15:01, Dmitry Lysenko пишет: > Good day. > > Some time ago i change pg_num like this http://www.sebastien-han.fr/blog/2013/03/12/ceph-change-pg-number-on-the-fly/: > > ceph osd pool create one-new 500 > rados cppool one one-new > ceph osd pool delete one > ceph osd pool rename one-new one > > Before changes: > ceph osd lspools > 0 data,1 metadata,2 rbd,5 one, > > After changes: > 0 data,1 metadata,2 rbd,6 one, > > But after that i got an error: > rbd --pool one ls -l > 2014-01-22 15:03:49.965040 7f022a7cb760 -1 librbd: error looking up name for pool id 5: (2) No such file or directory > 2014-01-22 15:03:49.965100 7f022a7cb760 -1 librbd: error opening parent snapshot: (2) No such file or directory > 2014-01-22 15:03:49.982534 7f022a7cb760 -1 librbd: error looking up name for pool id 5: (2) No such file or directory > 2014-01-22 15:03:49.982557 7f022a7cb760 -1 librbd: error opening parent snapshot: (2) No such file or directory > NAME SIZE PARENT FMT PROT LOCK > one-104 20480M 2 > one-41 11264M 2 > one-86 8192M 2 > one-93 10000M 2 > one-93@130-0 10000M 2 yes > one-95 10000M 2 > one-95@142-0 10000M 2 yes > one-95-150-0 10000M 2 > one-96 10000M 2 > > rbd --pool one cp one-93-130-0 one-93-130+ > 2014-01-22 15:12:41.111368 7fd95d892760 -1 librbd: error looking up name for pool id 5: (2) No such file or directory > 2014-01-22 15:12:41.111404 7fd95d892760 -1 librbd: error opening parent snapshot: (2) No such file or directory > rbd: error opening image one-93-130-0: (2) No such file or directory > > and so on... > > May be snapshots referenced to old pool with id=5? > How to fix this? > > Thank you. > I'm sorry. Problem with clones, not snapshots. Images 'one-93-130-0' and 'one-95-142-0' are cloned from snapshots 'one-93@130-0' and 'one-95@142-0' respectively before my pool operations. "rbd --pool one ls" one-104 one-41 one-86 one-93 one-93-130-0 one-95 one-95-142-0 one-95-150-0 one-96 "rbd --pool one ls -l" 2014-01-22 16:46:46.258741 7f828c274760 -1 librbd: error looking up name for pool id 5: (2) No such file or directory 2014-01-22 16:46:46.258796 7f828c274760 -1 librbd: error opening parent snapshot: (2) No such file or directory 2014-01-22 16:46:46.275289 7f828c274760 -1 librbd: error looking up name for pool id 5: (2) No such file or directory 2014-01-22 16:46:46.275302 7f828c274760 -1 librbd: error opening parent snapshot: (2) No such file or directory NAME SIZE PARENT FMT PROT LOCK one-104 20480M 2 one-41 11264M 2 one-86 8192M 2 one-93 10000M 2 one-93@130-0 10000M 2 yes one-95 10000M 2 one-95@142-0 10000M 2 yes one-95-150-0 10000M 2 one-96 10000M 2 Commands "rbd --pool one children one-93@130-0" and "rbd --pool one children one-95@142-0" have empty output. "rbd --pool one info one-95@142-0" rbd image 'one-95': size 10000 MB in 2501 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.469166b8b4567 format: 2 features: layering protected: True "rbd --pool one info one-95-142-0" 2014-01-22 16:36:50.186227 7f58b5ef8760 -1 librbd: error looking up name for pool id 5: (2) No such file or directory 2014-01-22 16:36:50.186260 7f58b5ef8760 -1 librbd: error opening parent snapshot: (2) No such file or directory rbd: error opening image one-95-142-0: (2) No such file or directory "rbd --pool one info one-93@130-0" rbd image 'one-93': size 10000 MB in 2501 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.429f26b8b4567 format: 2 features: layering protected: True "rbd --pool one info one-93-130-0" 2014-01-22 16:41:36.163318 7fbee0b1c760 -1 librbd: error looking up name for pool id 5: (2) No such file or directory 2014-01-22 16:41:36.163352 7fbee0b1c760 -1 librbd: error opening parent snapshot: (2) No such file or directory rbd: error opening image one-93-130-0: (2) No such file or directory I created temporary clone from one-93@130-0: rbd --pool one clone one-93@130-0 one/one-93-temp and run command: rbd --pool one info one/one-93-temp rbd image 'one-93-temp': size 10000 MB in 2501 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.776d06b8b4567 format: 2 features: layering parent: one/one-93@130-0 overlap: 10000 MB rbd --pool one children one-93@130-0 one/one-93-temp Newly created clone is ok, but old clones are lost... _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com