N
noaptus
Guest
Hi.
For the last 10 hours my OVh ProxMox Debian 6 server has been offline do to I for got the root password.
I know, I know silly me, do you know what, this will happen to all off us, forgetting the root password.
What I have been trying to figure out is how can I create a new root password so I can get my server back online.
I know that OVH has this http://help.ovh.co.uk/RescueMode, as I follow this how to i get some strange fail like this.
root@rescue:~# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 3907029167 1953514583+ ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/mapper/pve-data: 1978.3 GB, 1978344144896 bytes
255 heads, 63 sectors/track, 240519 cylinders, total 3863953408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/pve-data doesn't contain a valid partition table
root@rescue:~#
---------------------------------------------------------------------
I have tried to mount /dev/sda1 /mnt but that will not work, as I get this error.
root@rescue:~# mount /dev/sda1 /mnt
NTFS signature is missing.
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
root@rescue:~#
-------------------------------------------------------------------------
And if I use this lvm vgscan I get this.
root@rescue:~# lvm vgscan
Reading all physical volumes. This may take a while...
Found volume group "pve" using metadata type lvm2
root@rescue:~#
and I use this lvm vgchange -ay I get this.
root@rescue:~# lvm vgchange -ay
1 logical volume(s) in volume group "pve" now active
root@rescue:~#
-------------------------------------------------------------------------
And for the HDD
root@rescue:~# df -l
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 12370580 79472 12291108 1% /
none 12370580 79472 12291108 1% /
tmpfs 10240 172 10068 2% /dev
tmpfs 2474120 64 2474056 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 4948220 0 4948220 0% /run/shm
root@rescue:~#
root@rescue:~# cat /proc/partitions
major minor #blocks name
8 0 1953514584 sda
8 1 1004 sda1
8 2 20478976 sda2
8 3 1047552 sda3
8 4 1931981824 sda4
253 0 1931976704 dm-0
root@rescue:~#
I have no clue how to fix this in the proper way so I would not loos any data.
My server is in rescue mode and I am asking you ProxMox experts, please assist me. Please guide me to the right directions, show me how
to change the root password while my server is in Rescue Mode.
OVH does not work on the weekends and gb-servers well some of you know how they are. Well every minute counts.
I appreciate all the help I can get from you.
Regards
Bragi from Iceland.
For the last 10 hours my OVh ProxMox Debian 6 server has been offline do to I for got the root password.
I know, I know silly me, do you know what, this will happen to all off us, forgetting the root password.
What I have been trying to figure out is how can I create a new root password so I can get my server back online.
I know that OVH has this http://help.ovh.co.uk/RescueMode, as I follow this how to i get some strange fail like this.
root@rescue:~# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 3907029167 1953514583+ ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/mapper/pve-data: 1978.3 GB, 1978344144896 bytes
255 heads, 63 sectors/track, 240519 cylinders, total 3863953408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/pve-data doesn't contain a valid partition table
root@rescue:~#
---------------------------------------------------------------------
I have tried to mount /dev/sda1 /mnt but that will not work, as I get this error.
root@rescue:~# mount /dev/sda1 /mnt
NTFS signature is missing.
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
root@rescue:~#
-------------------------------------------------------------------------
And if I use this lvm vgscan I get this.
root@rescue:~# lvm vgscan
Reading all physical volumes. This may take a while...
Found volume group "pve" using metadata type lvm2
root@rescue:~#
and I use this lvm vgchange -ay I get this.
root@rescue:~# lvm vgchange -ay
1 logical volume(s) in volume group "pve" now active
root@rescue:~#
-------------------------------------------------------------------------
And for the HDD
root@rescue:~# df -l
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 12370580 79472 12291108 1% /
none 12370580 79472 12291108 1% /
tmpfs 10240 172 10068 2% /dev
tmpfs 2474120 64 2474056 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 4948220 0 4948220 0% /run/shm
root@rescue:~#
root@rescue:~# cat /proc/partitions
major minor #blocks name
8 0 1953514584 sda
8 1 1004 sda1
8 2 20478976 sda2
8 3 1047552 sda3
8 4 1931981824 sda4
253 0 1931976704 dm-0
root@rescue:~#
I have no clue how to fix this in the proper way so I would not loos any data.
My server is in rescue mode and I am asking you ProxMox experts, please assist me. Please guide me to the right directions, show me how
to change the root password while my server is in Rescue Mode.
OVH does not work on the weekends and gb-servers well some of you know how they are. Well every minute counts.
I appreciate all the help I can get from you.
Regards
Bragi from Iceland.
Last edited by a moderator: