# ChainID 138 Container Rename and Migration

**Date:** December 26, 2024  
**Status:** ✅ Renaming complete, migrations in progress

---

## Overview

Containers have been renamed to prevent duplicate naming and are being migrated to appropriate Proxmox nodes (pve and pve2).

---

## Renamed Containers

### Migrated to pve Node

| VMID | Old Hostname | New Hostname | Status |
|------|--------------|--------------|--------|
| 1504 | besu-sentry-5 | `besu-sentry-ali` | ✅ Renamed |
| 2503 | besu-rpc-4 | `besu-rpc-ali-0x8a` | ✅ Renamed |
| 2504 | besu-rpc-4 | `besu-rpc-ali-0x1` | ✅ Renamed |
| 6201 | firefly-2 | `firefly-ali-1` | ✅ Renamed |

### Migrated to pve2 Node

| VMID | Old Hostname | New Hostname | Status |
|------|--------------|--------------|--------|
| 2505 | besu-rpc-luis | `besu-rpc-luis-0x8a` | ✅ Renamed |
| 2506 | besu-rpc-luis | `besu-rpc-luis-0x1` | ✅ Renamed |
| 2507 | besu-rpc-putu | `besu-rpc-putu-0x8a` | ✅ Renamed |
| 2508 | besu-rpc-putu | `besu-rpc-putu-0x1` | ✅ Renamed |

---

## Migration Status

**Migration Script:** `scripts/rename-and-migrate-chain138-containers.sh`

**Storage:**
- pve node: Uses `local` (directory storage)
- pve2 node: Uses `local` (directory storage)

**Note:** Migrations may take several minutes per container depending on size. The script runs migrations in sequence.

---

## Verification

### Check Container Locations

```bash
# Check containers on pve
ssh root@192.168.11.10 "pvesh get /nodes/pve/lxc" | grep -E "(1504|2503|2504|6201)"

# Check containers on pve2
ssh root@192.168.11.10 "pvesh get /nodes/pve2/lxc" | grep -E "(2505|2506|2507|2508)"
```

### Check Hostnames

```bash
# For each container
ssh root@192.168.11.10 "pvesh get /nodes/<NODE>/lxc/<VMID>/config" | grep hostname
```

---

## Updated Container Allocation

### Ali's Containers (on pve)

| VMID | Hostname | Role | IP Address | Node |
|------|----------|------|------------|------|
| 1504 | `besu-sentry-ali` | Besu Sentry | 192.168.11.154 | pve |
| 2503 | `besu-rpc-ali-0x8a` | Besu RPC | 192.168.11.253 | pve |
| 2504 | `besu-rpc-ali-0x1` | Besu RPC | 192.168.11.254 | pve |
| 6201 | `firefly-ali-1` | Firefly | 192.168.11.67 | pve |

### Luis's Containers (on pve2)

| VMID | Hostname | Role | IP Address | Node |
|------|----------|------|------------|------|
| 2505 | `besu-rpc-luis-0x8a` | Besu RPC | 192.168.11.255 | pve2 |
| 2506 | `besu-rpc-luis-0x1` | Besu RPC | 192.168.11.256 | pve2 |

### Putu's Containers (on pve2)

| VMID | Hostname | Role | IP Address | Node |
|------|----------|------|------------|------|
| 2507 | `besu-rpc-putu-0x8a` | Besu RPC | 192.168.11.257 | pve2 |
| 2508 | `besu-rpc-putu-0x1` | Besu RPC | 192.168.11.258 | pve2 |

---

## Next Steps

After migrations complete:

1. **Verify all containers are on correct nodes**
2. **Update documentation** with new hostnames and node locations
3. **Update configuration scripts** to reference new hostnames
4. **Run deployment script:** `./scripts/deploy-all-chain138-containers.sh`

---

## Related Documentation

- [Missing Containers List](MISSING_CONTAINERS_LIST.md)
- [Next Steps](CHAIN138_NEXT_STEPS.md)
- [Complete Implementation](CHAIN138_COMPLETE_IMPLEMENTATION.md)

---

**Last Updated:** December 26, 2024  
**Status:** ✅ Renaming complete, migrations in progress

