Trouble converting FileSystem metadata with fscdsconv in Linux
Hello everyone,
I'm in the process of migrating a Solaris 5.10 server to Linux Red Hat 6.4
At this point, I'm trying to convert the byte order of some volumes that come from Solaris in my Linux server using the following command:
/opt/VRTS/bin/fscdsconv -y -e -f /tmp/vxConv/dbtemp01.tmp -t os_name=Linux,arch=x86 /dev/vx/rdsk/dgtemp/dbtemp01
Note: Because of the text formating, the above command could span two lines, but it I'm executing it in just one
And I get the following errors:
UX:vxfs fscdsconv: ERROR: V-3-20012: not a valid vxfs file system
UX:vxfs fscdsconv: ERROR: V-3-24426: fscdsconv: Failed to migrate.
Searching for a solution of these errors in the forums, I've found this post, where the user mikebounds gives some steps to migrate Solaris to Linux. I've found that I've replicated these steps but I get stuck on the fscdsconv because the beforementioned errors.
Does anyone know what could be happening here or have any sugestion to share?
Software Versions:
- RHEL 6.4 x86_64
- Veritas Storage Foundation Enterprise 6.2.0.100 on Linux
- Solaris 5.10
- Veritas 5.0 on Solaris
- Disk layout v7
- vxfs filesystem format
Thank you very much in advance for any help/ideas to solve this
Best regards
Raul
Looking at the man page, it reads as you need to either run:
fscdsconv -e (for export) on the Solaris system
or
fscdsconv -i (for import) on the Linux system
So can you confirm you ran your command in your post above on the Solaris system and if you did and this has failed, have you tried running the import on the Linux system instead?
Mike
If your Solaris server crashed, then at a diskgroup level, the diskgroup contains the hostname of the crashed server so you have to clear this using the "-C" flag to import the diskgroup.
This is completley independent of the filesystems - if your Solaris server crashed, then the filesystem were not cleanly umounted and therefore the filesystems need to have an fsck to clean up the filesystem, but you can't run an fsck because fsck command does not understand the byte order on Linux
To the fscdsconv import you need to do on a clean filesystem, which you don't have so the only option I can see is to import the diskgroup on any Solaris SPARC (or other systems using the same Endian, such as AIX or HP-ux) that has SF installed so that you run fsck on the vxfs filesystems.
Mike