{"id":18363438,"url":"https://github.com/stuttgart-things/manage-filesystem","last_synced_at":"2026-03-03T18:04:01.608Z","repository":{"id":163506855,"uuid":"610805721","full_name":"stuttgart-things/manage-filesystem","owner":"stuttgart-things","description":"manage LVM and resize Linux FS  - handle repartitioning with filesystem resizing support","archived":false,"fork":false,"pushed_at":"2024-12-17T06:17:40.000Z","size":69,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-10T10:55:42.599Z","etag":null,"topics":["ansible","filesystem","linux","lvm","role","stuttgart-things"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stuttgart-things.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-07T14:17:39.000Z","updated_at":"2024-06-07T04:53:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"43135f0e-ff8e-4f29-9c14-4740de343770","html_url":"https://github.com/stuttgart-things/manage-filesystem","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/stuttgart-things/manage-filesystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fmanage-filesystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fmanage-filesystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fmanage-filesystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fmanage-filesystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuttgart-things","download_url":"https://codeload.github.com/stuttgart-things/manage-filesystem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fmanage-filesystem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30054014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T17:46:22.538Z","status":"ssl_error","status_checked_at":"2026-03-03T17:46:22.036Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","filesystem","linux","lvm","role","stuttgart-things"],"created_at":"2024-11-05T23:06:30.611Z","updated_at":"2026-03-03T18:04:01.534Z","avatar_url":"https://github.com/stuttgart-things.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# stuttgart-things/manage-filesystem\n\nhandle repartitioning (LVM) with filesystem resizing support. For example, you can simply expand the LVM after enlarging the vhd. \nThe role automatically detects the LVM on the system. The partitions and the device id are also recognized automatically.\n\n**Note: You can easy check your partition number via fdisk or parted**\n\n**Note: The enlargement of the file system is automatically calculated from the new free space**\n\n**Note: This role requires become yes**\n\n\u003cdetails\u003e\u003csummary\u003eREQUIREMENTS AND DEPENDENCIES\u003c/summary\u003e\n\nServer and client:\n- Ubuntu 24.04\n- Ubuntu 22.04\n- Rocky 9\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eVARIABLES\u003c/summary\u003e\n\n1. requiered vars:\n    - lvm_home_sizing: 10%\n    - lvm_root_sizing: 60%\n    - lvm_var_sizing: 30%\n\n2. defaults: You don't need to change or add this variables.(Unless you want to overwrite it with other values)\n    - part_sizing: 100%                 #Size claimed from the vhd by LVM\n    - lv_home_name: home\n    - lv_var_name: var\n    - lv_root_name: root\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eROLE INSTALLATION\u003c/summary\u003e\n\n```bash\ncat \u003c\u003cEOF \u003e /tmp/requirements.yaml\n- src: https://github.com/stuttgart-things/manage-filesystem.git\n  version: 2024.05.15\n  scm: git\nEOF\n\nansible-galaxy install -r /tmp/requirements.yaml --force\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eEXAMPLE INVENTORY\u003c/summary\u003e\n\n```bash\ncat \u003c\u003cEOF \u003e inventory\n[appserver]\n1.2.3.4 ansible_user=sthings\nEOF\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eEXAMPLE PLAYBOOK\u003c/summary\u003e\n\n```yaml\ncat \u003c\u003cEOF \u003e manage-filesystem.yaml\n---\n- hosts: \"{{ target_host | default('all') }}\"\n  gather_facts: true\n  become: true\n  vars:\n    lvm_home_sizing: 10%\n    lvm_root_sizing: 60%\n    lvm_var_sizing: 30%\n\n  roles:\n    - manage-filesystem\nEOF\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eEXAMPLE EXECUTION\u003c/summary\u003e\n\n```bash\nansible-playbook -i inventory manage-filesystem.yaml -vv \n```\n\n\u003c/details\u003e\n\n\n## License\n\u003cdetails\u003e\u003csummary\u003eLICENSE\u003c/summary\u003e\n\nCopyright 2020 patrick hermann.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\u003c/details\u003e\n\nRole history\n----------------\n| date  | who | changelog |\n|---|---|---|\n|2024-05-14  | Andre Ebert | Added Ansible-lint and Yamllint with skip rules and testing\n|2020-29-09  | Marcel Zapf | Added logic to autodetect part id, device and vg name\n|2020-16-09  | Marcel Zapf | Added logic to check partition is too small\n|2020-10-08  | Marcel Zapf | First Release\n\nAuthor Information\n------------------\n\n```yaml\nAndre Ebert (andre.ebert@sva.de); 05/2024\n\nMarcel Zapf; 08/2020; Stuttgart-Things\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fmanage-filesystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuttgart-things%2Fmanage-filesystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fmanage-filesystem/lists"}