[OpenIndiana-discuss] HDD Upgrade problem

Jim Klimov jimklimov at cos.ru
Sun Jun 10 11:53:24 UTC 2012


2012-06-10 14:31, michelle wrote:
 > That leaves me with two problems...
 >
 > 1) Disable Gnome from starting, or remove it completely.

As for GNOME, try "svcadm disable gdm". I'd think there may  be some
video driver problems, but just about any card should work as a VESA
or SVGA driver. Still, I also only use remote SSH so can't help much ;)

> In the mean time, trying to replace a 2tb drive with a 3tb drive in a
> three drive RaidZ, gives ...
>
> cannot replace c2t5d0 with c2t2d0: devices have different sector alignment
>
>
> How do I get around this please? I want to remain with three drives in
> the set.

I have not encountered this error directly, but it would seem that
your older drives may have had native 512 byte sectors, and new ones
use 4KB sectors. At least, this is highly likely.

For the sake of data integrity, there is nothing you can safely do
to replace such older drives with such newer ones, and would be
better off creating the new raidz set of new drives from scartch,
and zfs send|zfs recv your data into it.

Also it is possible that your partitions on a 4KB-sectored drive
are not aligned at multiples of 8 512-byte blocks (ex-sectors).
I.e. for older releases a 34-sector offset was typical for the
first partition, while newer releases use 256*512b offsets.
MAYBE the system complains about that; use parted to check your
offsets, i.e.:

# parted /dev/rdsk/c4t1d0p0 uni s pri
Model: Generic Ide (ide)
Disk /dev/rdsk/c4t1d0p0: 156301488s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start       End         Size       Type      File system  Flags
  1      16065s      75487103s   75471039s  primary   solaris      boot
  3      75487104s   108517247s  33030144s  primary
  4      108517248s  156301487s  47784240s  extended               lba
  5      108519264s  112648031s  4128768s   logical
  6      112664160s  116792927s  4128768s   logical
  7      116809056s  156301487s  39492432s  logical

# parted /dev/rdsk/c7t1d0p0 uni s pri
Model: Generic Ide (ide)
Disk /dev/rdsk/c7t1d0p0: 3907029168s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start        End          Size         File system  Name  Flags
  1      256s         3907012750s  3907012495s               zfs
  9      3907012751s  3907029134s  16384s

The second disk lies, it is 4KB native ;)



>
> Should I remove c2t5d0 and then add c2t2d0?

ZFS would likely not let you programmatically reduce the raidz
set to an unprotected one, but you could yank the drive physically.

Still, this is not what you'd likely want to do.


HTH,
//Jim



More information about the OpenIndiana-discuss mailing list