Discussion:
[DRBD-user] How do I get out of "delete a volume while it is mounted" state ?
T.J. Yang
8 years ago
Permalink
I have alpha,bravo and charlie setup in my DRBD9 learning environment.

I purposely try to delete a 1G web volume while it is mounted as
/mnt/drbd/drbd100 directory.

Now I am in DRBD9 pending action state that I don't know how to get out of.


[***@alpha system]# drbdmanage list-volumes
+-------------------------------------------------------------------------+
| Name | Vol ID | Size | Minor | | State |
|-------------------------------------------------------------------------|
| web | 0 | 953.67 MiB | 100 | | pending actions: remove |
+-------------------------------------------------------------------------+
[***@alpha system]#

See R1 below for more details

R1:
https://docs.google.com/document/d/1VYQMksQlPPqB0KiM0RAK5M9qaRYECv5YhaE8uUfKISY/edit#heading=h.xgcsc7ocsap0
--
T.J. Yang
T.J. Yang
8 years ago
Permalink
I find out the answer ;)
On alpha node, run "drbdmanage delete-volume web 0" again, after
/mnt/drbd/drbd100 got umounted.
...
--
T.J. Yang
Roland Kammerer
8 years ago
Permalink
Post by T.J. Yang
I find out the answer ;)
On alpha node, run "drbdmanage delete-volume web 0" again, after
/mnt/drbd/drbd100 got umounted.
Yes, that is a possibility. "resume-all" would also have helped. In
general drbdmanage tries to make a resource available (creating LVs,
writing drbd meta data, res file, deploying it to nodes in the
cluster,...) but then it is the responsibility of the next higher level
to use it. Eg., it does not mkfs, mount/umount a resource. That's admin
or cluster manager territory.

Regards, rck

Continue reading on narkive: