# Complete Next Steps Status

**Date:** December 26, 2024  
**Status:** Storage Setup Complete, Migrations In Progress

---

## ✅ Completed Tasks

### 1. Storage Configuration
- ✅ **pve2**: thin1-thin3 storage pools repaired and active
- ✅ **pve**: thin1-thin3 storage pools created and active
- ✅ Storage pools ready for container migrations

### 2. Migration Script Updates
- ✅ Script updated to use API-based migration
- ✅ Containers renamed successfully on ml110

---

## ⚠️ Known Limitation

**Proxmox Migration Limitation:**
- Proxmox LXC migration API doesn't support `--storage` parameter
- Containers will migrate to target nodes but may use default storage
- Storage will need to be moved to thin1 after migration completes

**Solution:** Two-step process:
1. Migrate containers (currently in progress)
2. Move container storage to thin1 after migration

---

## 📋 Remaining Tasks

### 1. Complete Container Migrations ⏳

**Status:** Migrations running, but storage parameter not supported

**Action Required:** After migrations complete:
```bash
# For each migrated container, move storage to thin1
ssh root@192.168.11.10
for vmid in 1504 2503 2504 6201; do
  pct stop $vmid
  pct set $vmid --rootfs thin1:8,size=100G  # Adjust size as needed
  pct start $vmid
done

for vmid in 2505 2506 2507 2508; do
  ssh root@192.168.11.12 "pct stop $vmid; pct set $vmid --rootfs thin1:8,size=100G; pct start $vmid"
done
```

### 2. Proxmox VE Post-Install Script 🔄

**Status:** Requires interactive terminal

**Action Required:**
```bash
ssh root@192.168.11.11
# password: password

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/post-pve-install.sh)"
```

This script will:
- Configure Proxmox VE repositories
- Set up package sources (enterprise vs no-subscription)
- Apply system updates
- Configure Proxmox optimizations

### 3. Verify Container Hostnames ✅

**Action:**
```bash
ssh root@192.168.11.10
for vmid in 1504 2503 2504 2505 2506 2507 2508 6201; do
  echo "VMID $vmid:"
  pct config $vmid | grep '^hostname:'
done
```

**Expected:**
- 1504: `besu-sentry-ali`
- 2503: `besu-rpc-ali-0x8a`
- 2504: `besu-rpc-ali-0x1`
- 2505: `besu-rpc-luis-0x8a`
- 2506: `besu-rpc-luis-0x1`
- 2507: `besu-rpc-putu-0x8a`
- 2508: `besu-rpc-putu-0x1`
- 6201: `firefly-ali-1`

### 4. Run ChainID 138 Deployment Script ⏳

**Status:** Waiting for migrations to complete

**Action:**
```bash
cd /home/intlc/projects/proxmox
./scripts/deploy-all-chain138-containers.sh
```

This will:
- Configure all Besu nodes (static/permissioned nodes)
- Set up JWT authentication for RPC containers
- Generate JWT tokens
- Verify configuration

---

## 🎯 Priority Order

1. **HIGH**: Complete Proxmox VE post-install script (interactive, can be done now)
2. **HIGH**: Wait for migrations to complete, then move storage to thin1
3. **MEDIUM**: Verify container hostnames
4. **MEDIUM**: Run ChainID 138 deployment script

---

## 📝 Current Migration Status

Containers are migrating but the script will report failures due to storage parameter not being supported. The containers may still migrate successfully, just need storage adjustment afterward.

**Check Migration Status:**
```bash
ssh root@192.168.11.10
pvesh get /nodes/pve/lxc
pvesh get /nodes/pve2/lxc
```

---

## 🔧 Quick Reference

### Check Container Locations
```bash
ssh root@192.168.11.10 "pct list | grep -E '(1504|2503|2504|2505|2506|2507|2508|6201)'"
```

### Check Storage Status
```bash
ssh root@192.168.11.11 "pvesm status | grep thin"
ssh root@192.168.11.12 "pvesm status | grep thin"
```

### Move Container Storage
```bash
# Stop container
pct stop <VMID>

# Get current rootfs size
pct config <VMID> | grep rootfs

# Move to thin1 (adjust size as needed)
pct set <VMID> --rootfs thin1:8,size=100G

# Start container
pct start <VMID>
```

---

**Last Updated:** December 26, 2024
