-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
117 lines (99 loc) · 4.17 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>LVM Config Creator</title>
<link rel="stylesheet" href="assets/css/styles.css" />
<link rel="icon" href="assets/images/settings-120.png" type="image/png" sizes="120x120"/>
</head>
<body>
<header>
<h1>LVM Config Creator</h1>
</header>
<main>
<!-- Tab Navigation -->
<div class="tab">
<button class="tablinks" id="createTab" onclick="openTab(event, 'Create')">Create LVM</button>
<button class="tablinks" id="resizeTab" onclick="openTab(event, 'Resize')">Resize LVM</button>
</div>
<!-- Shared Form -->
<section class="form-container" id="shared-form">
<label for="disk">Disk</label>
<input type="text" id="disk" placeholder="e.g., /dev/mapper/ME4084_www_data" />
<label for="vg">Volume Group</label>
<input type="text" id="vg" placeholder="e.g., ME4084_www_data" />
<label for="lv">Logical Volume</label>
<input type="text" id="lv" placeholder="e.g., Vol1" />
<div id="mount-point-group">
<label for="mount-point">Mount Point</label>
<input type="text" id="mount-point" placeholder="e.g., /mnt/www_data" />
</div>
<button id="generate-button">Generate Commands</button>
</section>
<!-- Create Output -->
<div id="Create" class="tabcontent">
<section id="commands-section" class="output-section">
<h2>Generated Commands</h2>
<pre id="commands-output"></pre>
</section>
<section id="fstab-section" class="output-section">
<h2>Fstab Entry</h2>
<pre id="fstab-output"></pre>
</section>
<section id="verify-section" class="output-section">
<h2>Verification Commands</h2>
<pre id="verify-output"></pre>
</section>
<section id="rsync-section" class="output-section">
<h2>Data Migration Command</h2>
<pre id="rsync-output"></pre>
</section>
</div>
<!-- Resize Output -->
<div id="Resize" class="tabcontent">
<section id="resize-output-section" class="output-section">
<h2>Resize Commands</h2>
<pre id="resize-output"></pre>
</section>
<details class="output-section">
<summary><strong>📘 Additional Resize Notes</strong></summary>
<ol>
<li>Unmount the filesystem before resizing.</li>
<li>Resize in SAN GUI if applicable.</li>
<li>Rescan:
<pre>rescan-scsi-bus.sh -m -s</pre>
</li>
<li>Restart multipath:
<pre>service multipathd restart</pre>
</li>
</ol>
</details>
<hr>
<details class="output-section">
<summary><strong>〽️ Dell Specific Resize Notes</strong></summary>
<li><strong>(Dell Specific) Resize the SAN Volume:</strong> If resizing the SAN volume, perform the following steps:</li>
<ol>
<li><strong>Resize the SAN Volume:</strong> Unmount volume on sharesX, and resize the volume in the SAN management interface.</li>
<p>Log in to the SAN Management Interface.</p>
<p>Resize the Virtual Volume by the desired amount (e.g., 1.0TiB).</p>
<li><strong>Rescan the SCSI Bus:</strong> After resizing the SAN volume, rescan the SCSI bus to detect the new size.</li>
<pre>rescan-scsi-bus.sh -m -s</pre>
<li><strong>Restart the Multipath Service:</strong> Restart the multipath service to ensure the system recognizes the new size.</li>
<pre>service multipathd restart</pre>
<li><strong>Confirm Quota and Filesystem Changes:</strong> Confirm that the quotas and filesystem changes are correct.</li>
<pre>quota -g ME4084_www_data</pre>
<pre>df -h | grep -i 'ME4084_www_data'</pre>
</ol>
<hr>
</details>
</div>
</main>
<footer>
<p>Generated with LVM Creator | © <span id="year"></span> |
<a href="https://github.com/safesploitOrg/lvm-config-creator" target="_blank" rel="noopener noreferrer">GitHub Repository</a>
</p>
</footer>
<script src="assets/js/script.js"></script>
</body>
</html>