Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
a2cd6f17
Commit
a2cd6f17
authored
2 years ago
by
Jérôme Charaoui
Browse files
Options
Downloads
Patches
Plain Diff
howto/ganeti: deleting an iSCSI LUN on gnt-chi
parent
f48486a7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/ganeti.md
+22
-0
22 additions, 0 deletions
howto/ganeti.md
with
22 additions
and
0 deletions
howto/ganeti.md
+
22
−
0
View file @
a2cd6f17
...
@@ -680,6 +680,28 @@ machine, see [resizing under LVM](#resizing-under-lvm), [resizing without LVM, n
...
@@ -680,6 +680,28 @@ machine, see [resizing under LVM](#resizing-under-lvm), [resizing without LVM, n
partitions
](
#resizing-without-lvm-no-partitions
)
, or
[
Resizing without LVM, with partitions
](
#resizing-without-lvm-with-partitions
)
,
partitions
](
#resizing-without-lvm-no-partitions
)
, or
[
Resizing without LVM, with partitions
](
#resizing-without-lvm-with-partitions
)
,
depending on the situation.
depending on the situation.
### Removing an iSCSI LUN
Use this procedure before to a virtual disk from one of the iSCSI SANs.
First, remove the multipath config and reload:
gnt-cluster command rm /etc/multipath/conf.d/test-01.conf
gnt-cluster command "multipath -r ; multipath -w <disk-wwid> ; multipath -r"
Then, remove the iSCSI device nodes. Running
`iscsiadm --rescan`
does not remove
LUNs which have been deleted from the SAN.
Be very careful with this command, it will delete device nodes without prejudice
and cause data corruption if they are still in use!
gnt-cluster command "find /dev/disk/by-path/ -name \*<san-wwid>-lun-<lun> -exec readlink {} \; | cut -d/ -f3 | while read -d $'\n' n; do echo 1 > /sys/block/\$n/device/delete; done"
Finally, the disk group can be deleted from the SAN (all the virtual disks it
contains will be deleted):
SMcli -n chi-san-03 -p $SAN_PASSWORD -S -quick -c "delete diskGroup [<disk-group-number>];"
### Adding disks
### Adding disks
A disk can be added to an instance with the
`modify`
command as
A disk can be added to an instance with the
`modify`
command as
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment