Sponsored Content
Full Discussion: ZFS disk label missing
Operating Systems Solaris ZFS disk label missing Post 302329649 by fugitive on Monday 29th of June 2009 06:14:49 AM
Old 06-29-2009
ZFS disk label missing

I 'm having problem in importing a zfs pool was getting error device missing and upon further digging found that labels on my disk for zpool are missing

Does anyone know how to recover from it ?

root@essapl020-u006 # zdb -l /dev/dsk/emcpower0c
--------------------------------------------
LABEL 0
--------------------------------------------
version=4
name='emcpool1'
state=0
txg=6973090
pool_guid=5596268873059055768
hostid=2228473662
hostname='essapl020-u006'
top_guid=3858675847091731383
guid=3858675847091731383
vdev_tree
type='disk'
id=0
guid=3858675847091731383
path='/dev/dsk/emcpower0c'
phys_path='/pseudo/emcp@0:c,blk'
whole_disk=0
metaslab_array=14
metaslab_shift=32
ashift=9
asize=477788372992
is_log=0
--------------------------------------------
LABEL 1
--------------------------------------------
version=4
name='emcpool1'
state=0
txg=6973090
pool_guid=5596268873059055768
hostid=2228473662
hostname='essapl020-u006'
top_guid=3858675847091731383
guid=3858675847091731383
vdev_tree
type='disk'
id=0
guid=3858675847091731383
path='/dev/dsk/emcpower0c'
phys_path='/pseudo/emcp@0:c,blk'
whole_disk=0
metaslab_array=14
metaslab_shift=32
ashift=9
asize=477788372992
is_log=0
--------------------------------------------
LABEL 2
--------------------------------------------
failed to read label 2
--------------------------------------------
LABEL 3
--------------------------------------------
failed to read label 3
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cannot label disk when partitions are in use as described

:confused: Hello, In my Solaris system, I want to resize my mounted home directory slice. 1.I unmount the slice, #umount /export/home 2.Resize the directory #format>partition> 3.#format>label 4.#format>Cannot label disk when partitions are in use as described. So, How can label ? Thanks (2 Replies)
Discussion started by: XNOR
2 Replies

2. Solaris

Warning: No Disk Label

Hi Fellows, I am trying to mirror 2 identical disks on a SUN Ultra 10 machines (with new installation of Solaris 8). In the process, I found 2 issues: 1. prtvtoc /dev/rdsk/c0t0d0s0 | fmthard -s - /dev/rdsk/c0t1d0s0 Result: Disk partitions between the 2 disks do not match up. 2. manually... (2 Replies)
Discussion started by: o51974
2 Replies

3. Solaris

Help:"Bad checksum in disk label" and "Can't open disk label package"?

Hello, I'm brand new to Sun/Solaris. I have a Sun Blade 150, with SunOS 5.8. I wanted to make a backup to prevent future data loss, so I put the disk in a normal PC with Windows XP to try to make a backup with Norton Ghost, the disk was detected, but not the file volume, so I place the disk... (6 Replies)
Discussion started by: Resadija
6 Replies

4. UNIX for Dummies Questions & Answers

How to read a disk label?

Hi there, I'm wondering how to display a disk label (why not edit it but I don't need that yet). I found several commands on forums like disklabel and diskinfo but I can't find them on my system and don't know the package they belong to. Can you help me? Cheers Santiago (2 Replies)
Discussion started by: chebarbudo
2 Replies

5. Hardware

Unrecognized disk label of a external HD

I have a external HD that I can't seem to open. When I try to open it with gparted it says unrecognized disk. When I run gparted from the terminal this is what it says. ~ $ sudo gparted ====================== libparted : 2.2 ====================== /dev/sdb: unrecognised disk label When I... (18 Replies)
Discussion started by: cokedude
18 Replies

6. Solaris

label a slice on disk erorr

Hi there, I am trying to do root volume mirroring on SunFire V210 server. I have two disks in it.First one is c1t0do and second one is c1t1do. Both disks already have partitions in them so I am deleting the partitions of second disk(c1t1do) using format command and selecting cylinder start 0... (2 Replies)
Discussion started by: newbi8321
2 Replies

7. Solaris

Script to label a disk

Hi Guys, Do you have any script to label a disk automatically. It is part of my script but I am not able to find solution to label this inside script without user intervention. (2 Replies)
Discussion started by: prashant2507198
2 Replies

8. AIX

Need help manually assigning a disk volume label

I've managed to bork a volume label on a disk that's shared out via GPFS. There has to be a fairly simple dd command to rewrite the blocks in question, but I can't seem to dig up the information necessary anywhere I look. Any help would be greatly appreciated! Fri Feb 28 15:20:26 EST 2014:... (1 Reply)
Discussion started by: kneemoe
1 Replies

9. Hardware

Unrecognized disk label on my external HD

Hi everyone, I have an external hard drive and I accidentally deleted the partition table. Can I restore my files? If I try to run the f-disk command this is what it says Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units =... (1 Reply)
Discussion started by: Sampa
1 Replies

10. Solaris

Bad magic number in disk label.

This is first time post...found this forum when looking for possible solution to fix my sun pc. Just one day can't boot it already showing the following: Boot device: disk File args: Bad magic number in disk label Can't open disk label package Evaluating: boot Can't open boot device... (40 Replies)
Discussion started by: SHuKoSuGi
40 Replies
LFC_ADDREPLICA(3)					       LFC Library Functions						 LFC_ADDREPLICA(3)

NAME
lfc_addreplica - add a replica for a given file SYNOPSIS
#include <sys/types.h> #include "lfc_api.h" int lfc_addreplica (const char *guid, struct lfc_fileid *file_uniqueid, const char *server, const char *sfn, const char status, const char f_type, const char *poolname, const char *fs) int lfc_addreplicax (const char *guid, struct lfc_fileid *file_uniqueid, const char *server, const char *sfn, const char status, const char f_type, const char *poolname, const char *fs, const char r_type, const char *setname) DESCRIPTION
lfc_addreplica adds a replica for a given file. The file can be specified by guid or by file_uniqueid. If both are given, file_uniqueid is used. guid specifies the Grid Unique IDentifier. server is either the Storage Element fully qualified hostname or the disk server. sfn is either the Site URL or the Physical File Name for the replica. status can be set to - file is available P file is being populated D file is being deleted. f_type may be one of the following: V Volatile D Durable P Permanent. poolname specifies the disk pool name (this argument is only meaningful for the Disk Pool Manager). fs specifies the mount point of the dedicated filesystem (this argument is only meaningful for the Disk Pool Manager). r_type may be one of the following: P Primary S Secondary. setname is either the replica set name or the space token. RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately. ERRORS
ENOENT The named file does not exist. EACCES Search permission is denied on a component of the parent directory or the effective user ID does not match the owner of the file or read permission on the file entry itself is denied. EFAULT guid and file_uniqueid are NULL pointers or server or sfn is a NULL pointer. EEXIST The sfn exists already. EISDIR The file is not a regular file. EINVAL The length of guid exceeds CA_MAXGUIDLEN, the length of server exceeds CA_MAXHOSTNAMELEN, the length of poolname exceeds CA_MAXPOOLNAMELEN or the length of fs exceeds 79 or setname exceeds 36. ENAMETOOLONG The length of sfn exceeds CA_MAXSFNLEN. SENOSHOST Host unknown. SENOSSERV Service unknown. SECOMERR Communication error. ENSNACT Name server is not running or is being shutdown. SEE ALSO
Castor_limits(4), lfc_delreplica(3), lfc_listreplica(3) LFC
$Date: 2006/12/01 09:19:37 $ LFC_ADDREPLICA(3)
All times are GMT -4. The time now is 10:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy