Operating System - Tru64 Unix
1753947 Members
7545 Online
108811 Solutions
New Discussion юеВ

Re: how to return disklabel

 
how to remove old new b
Occasional Contributor

how to return disklabel

Hi,

i have do worng command i do disklabel

#disklabel -z dsk0

how to return config of dsk0 like before...

Thanks a lot

Rgds
gimo
6 REPLIES 6
Vladimir Fabecic
Honored Contributor

Re: how to return disklabel

Do you have output of "# disklabel -r dsk0" saved somewhere?
If so, then:
# disklabel -R -r -t advfs dsk0 dsk0.label
where dsk0.label is produced by:
# disklabel -r dsk0 > dsk0.label
If you do not have disklabel saved somewhere, you will have to restore backup.
In vino veritas, in VMS cluster
Rob Leadbeater
Honored Contributor

Re: how to return disklabel

Hi,

# disklabel -rw dsk0

will write out a standard disk label.

If however you had modified the standard label, then you will have to restore as mentioned previously - unless you're only using the c partition (the whole disk).

Hope this helps,

Regards,

Rob
Venkatesh BL
Honored Contributor

Re: how to return disklabel

In case you don't have the old disklabel stored in a file anywhere, then try this.

If you ever ran sys_check on the system before, you could find the disklabel outputs in the sys_check output.

In future, don't try options of disklabel that you don't fully understand. Even if you want to do so, take a copy of the disklabel output before trying anything.
how to remove old new b
Occasional Contributor

Re: how to return disklabel

Hi all,

sorry iam late,
Thank for your support body i will try..

Rgds
Gimo
Venkatesh BL
Honored Contributor

Re: how to return disklabel

Check out http://forums1.itrc.hp.com/service/forums/helptips.do?#28 link to learn about the member point system of this forum.
Kapil Jha
Honored Contributor

Re: how to return disklabel

Hi,
If diska are in LSM you can copy disklabel of mirrored disk.
Other everything is lost.And do not reboot the system till you have a solution.
Kapil
I am in this small bowl, I wane see the real world......