{"id":30690,"date":"2019-10-31T21:36:54","date_gmt":"2019-10-31T18:36:54","guid":{"rendered":"https:\/\/prohoster.info\/blog\/spasenie-razdela-v-debian-kogda-poshlo-chto-to-ne-tak\/"},"modified":"2019-10-31T21:36:54","modified_gmt":"2019-10-31T18:36:54","slug":"spasenie-razdela-v-debian-kogda-poshlo-chto-to-ne-tak","status":"publish","type":"post","link":"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/spasenie-razdela-v-debian-kogda-poshlo-chto-to-ne-tak","title":{"rendered":"Recuperaci\u00f3n de secci\u00f3n en Debian cuando algo sali\u00f3 mal","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Buenas tardes, estimados <br \/>\nEra jueves por la tarde y uno de nuestros administradores deb\u00eda cambiar el tama\u00f1o del disco en una de las m\u00e1quinas virtuales KVM. Parec\u00eda una tarea trivial, pero podr\u00eda llevar a la p\u00e9rdida de datos por completo\u2026 Y as\u00ed\u2026 toda la historia est\u00e1 debajo del corte.<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\nComo ya dije, por la tarde del jueves (parece que no hab\u00eda lluvia), uno de nuestros administradores decidi\u00f3 realizar una tarea que se hab\u00eda pospuesto desde hace tiempo y aumentar el tama\u00f1o del sistema de archivos dentro de la m\u00e1quina virtual. <a class=\"wpil_keyword_link\" href=\"https:\/\/prohoster.info\/es\/vps\/abuzoustojchivye-vps\/\"   title=\"KVM\" data-wpil-keyword-link=\"linked\"  data-wpil-monitor-id=\"4366\">KVM<\/a>.<\/p>\n<p>Previamente ya hab\u00eda aumentado el tama\u00f1o del disco de 14 GB a 60 GB y el administrador solo necesitaba aumentar el tama\u00f1o del sistema de archivos dentro de la m\u00e1quina virtual.<\/p>\n<p>Alrededor de la medianoche, el administrador env\u00eda un mensaje preguntando si la partici\u00f3n debe ser extendida o primaria\u2026 En respuesta, le escrib\u00ed que deb\u00eda hacerlo como estaba antes en la propia m\u00e1quina virtual. <\/p>\n<p>El tiempo pasaba\u2026 y el administrador env\u00eda un mensaje diciendo que le aparecieron errores indicando que no pod\u00eda ampliar la partici\u00f3n\u2026 y dej\u00f3 de montarse\u2026 ya eran las 2 de la ma\u00f1ana.<\/p>\n<p>Le escrib\u00ed que no hiciera nada m\u00e1s y que dejara la m\u00e1quina virtual en paz, y yo mismo fui a hacer una copia de la imagen del disco VM, nombr\u00e1ndola vmname_bad.<\/p>\n<p>Todo se complicaba a\u00fan m\u00e1s, ya que el administrador no hizo un snapshot ni copi\u00f3 el esquema antes de sus acciones\u2026 Con esta informaci\u00f3n, se podr\u00eda haber revertido y probado de nuevo.<\/p>\n<p>Por la ma\u00f1ana, con la mente fresca, levanto la m\u00e1quina virtual con el mismo OS (Debian 9) y conecto el disco. A trav\u00e9s de fdisk veo que este disco ya ha sido ampliado a 60 GB y la partici\u00f3n\u2026 que est\u00e1 un poco da\u00f1ada. <\/p>\n<p>Intento, a partir de las capturas de pantalla que proporcion\u00f3 el administrador, encontrar el esquema anterior, pero desafortunadamente en vano. Intento ajustar los valores a trav\u00e9s de fdisk, pero lamentablemente todos los intentos fallaron.<\/p>\n<p>Como fdisk no puede ayudarme\u2026 invoco la ayuda de parted. Cargamos parted \u2014 elimino la antigua partici\u00f3n rm 2 y sabiendo los valores aproximados del esquema, hago un rescue \u2014 indico el valor inicial y final donde podr\u00eda estar la partici\u00f3n. Un breve momento y parted encuentra la partici\u00f3n y ofrece ingresar la informaci\u00f3n en el sistema \u2014 acept\u00e9 y sal\u00ed de parted.<\/p>\n<p>Monto la partici\u00f3n \u2014 todo OK. Los archivos est\u00e1n en su lugar, todo bien, pero el tama\u00f1o sigue siendo el antiguo de 14 GB. Desmont\u00e9 \/dev\/sdd1 y hago resize2fs \/dev\/sdd1, luego e2fsck \/dev\/sdd1 y monto nuevamente y veo la partici\u00f3n expandida con todos los archivos y funcionando. <\/p>\n<p>Todo termin\u00f3 bien tanto para m\u00ed como para el administrador.<br \/>\n<br \/>Fuente: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/446252\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u0414\u0435\u043b\u043e \u0431\u044b\u043b\u043e \u0432\u0435\u0447\u0435\u0440\u043e\u043c \u0432 \u0447\u0435\u0442\u0432\u0435\u0440\u0433 \u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u0430\u0434\u043c\u0438\u043d\u043e\u0432, \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0434\u0438\u0441\u043a\u0430 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a KVM. \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b \u0441\u043e\u0432\u0441\u0435\u043c \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430, \u043d\u043e \u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043f\u043e\u0442\u0435\u0440\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043e\u043e\u0431\u0449\u0435\u2026 \u0418 \u0442\u0430\u043a\u2026 \u0432\u0441\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0443\u0436\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u0441\u043a\u0430\u0437\u0430\u043b \u2014 \u0432\u0435\u0447\u0435\u0440\u043e\u043c \u0432 \u0447\u0435\u0442\u0432\u0435\u0440\u0433 (\u0434\u043e\u0436\u0434\u0438\u043a\u0430 \u0432\u0440\u043e\u0434\u0435 \u043a\u0430\u043a [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-30690","post","type-post","status-publish","format-standard","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u0414\u0435\u043b\u043e \u0431\u044b\u043b\u043e \u0432\u0435\u0447\u0435\u0440\u043e\u043c \u0432 \u0447\u0435\u0442\u0432\u0435\u0440\u0433 \u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u0430\u0434\u043c\u0438\u043d\u043e\u0432, \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0434\u0438\u0441\u043a\u0430 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a KVM.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/spasenie-razdela-v-debian-kogda-poshlo-chto-to-ne-tak\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"es_ES\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0421\u043f\u0430\u0441\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0432 Debian, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0448\u043b\u043e, \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0442\u0430\u043a | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u0414\u0435\u043b\u043e \u0431\u044b\u043b\u043e \u0432\u0435\u0447\u0435\u0440\u043e\u043c \u0432 \u0447\u0435\u0442\u0432\u0435\u0440\u0433 \u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u0430\u0434\u043c\u0438\u043d\u043e\u0432, \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0434\u0438\u0441\u043a\u0430 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a KVM.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/spasenie-razdela-v-debian-kogda-poshlo-chto-to-ne-tak\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T18:36:54+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T18:36:54+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Recuperaci\u00f3n de partici\u00f3n en Debian cuando algo sali\u00f3 mal | ProHoster","description":"Buenas tardes, estimados. Era la noche del jueves y uno de nuestros administradores deb\u00eda hacer un cambio en el tama\u00f1o del disco de una de las virtualizaciones KVM.","canonical_url":"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/spasenie-razdela-v-debian-kogda-poshlo-chto-to-ne-tak","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"es_ES","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0421\u043f\u0430\u0441\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0432 Debian, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0448\u043b\u043e, \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0442\u0430\u043a | ProHoster","og:description":"\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u0414\u0435\u043b\u043e \u0431\u044b\u043b\u043e \u0432\u0435\u0447\u0435\u0440\u043e\u043c \u0432 \u0447\u0435\u0442\u0432\u0435\u0440\u0433 \u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u0430\u0434\u043c\u0438\u043d\u043e\u0432, \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0434\u0438\u0441\u043a\u0430 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a KVM.","og:url":"https:\/\/prohoster.info\/es\/blog\/administrirovanie\/spasenie-razdela-v-debian-kogda-poshlo-chto-to-ne-tak","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T18:36:54+00:00","article:modified_time":"2019-10-31T18:36:54+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"30690","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-21 02:30:20","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 03:30:52","updated":"2026-01-21 02:30:20","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/posts\/30690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/comments?post=30690"}],"version-history":[{"count":1,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/posts\/30690\/revisions"}],"predecessor-version":[{"id":164241,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/posts\/30690\/revisions\/164241"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/media?parent=30690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/categories?post=30690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/es\/wp-json\/wp\/v2\/tags?post=30690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}