Advise on Harddrive... Help

Status
Not open for further replies.

subodh.c

Cadet
Joined
Sep 29, 2012
Messages
7
I have NAS machine with 3 drives :

Drive 1 : 160 GB
Drive 2 : 1 TB
Drive 3 : 2 TB

Drive 1 contains freenas
Drive 2 is /mnt/vol1
Drive 3 is /mnt/vol1/data


Is there a way I can rename /vol1/data to /vol2. Help me.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348

That's a little rude, especially since you didn't even provide complete details. Don't demand help, people are more likely to help if they're not being treated like your problem is more important then the rest of the people asking for help here.

How do you have your drives formatted?
What version of FreeNAS are you using?
 

neilpeel

Cadet
Joined
Feb 14, 2013
Messages
7
English mightn't be his/her first language and they might be using an online translator that left off the niceties. How about giving him/her a break eh? :)

As for the question.. I would move the data off drive 3, remove the volumes/disk and recreate drive 3 again from the start - especially if the version is an older version of Freenas.

N
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Wow, two first post users, one that can't follow the rules and post the proper details, and another telling a moderator to give him a break... :rolleyes:

I was giving him a break.

There's actually an international section of the forums for non-native English speakers. Unfortunately there's not any translations of the rules, not that anyone seems to care or follow them anyway.
 

neilpeel

Cadet
Joined
Feb 14, 2013
Messages
7
Moot point but just because 'this' account is first post doesnt mean that it's my first post on these forums.. I've been around since early 7.x! :)
 

subodh.c

Cadet
Joined
Sep 29, 2012
Messages
7
That's a little rude, especially since you didn't even provide complete details. Don't demand help, people are more likely to help if they're not being treated like your problem is more important then the rest of the people asking for help here.

How do you have your drives formatted?
What version of FreeNAS are you using?

Hello protosd,

Apologies. My System information is given below:

System Information

Build FreeNAS-8.3.0-RELEASE-x64 (r12701M)
Platform Intel(R) Pentium(R) CPU G630 @ 2.70GHz
Memory 8176MB



Drive details:

Volume Path Used Available Size
vol2 /mnt/vol2 283.1 GiB (19%) 1.2 TiB 1.4 TiB
vol2/data /mnt/vol2/data 1.2 TiB (51%) 1.2 TiB 2.4 TiB

File System : ZFS

Please do let me know if anything needs to be provided

Thanks
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Post the output of the following commands using ssh.

Code:
zpool status -v

camcontrol devlist

glabel status

gpart show
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Sorry, also the output from these two commands:

Code:
sqlite3 /data/freenas-v1.db "select * from storage_disk;"

sqlite3 /data/freenas-v1.db "select * from storage_diskgroup;"
 

subodh.c

Cadet
Joined
Sep 29, 2012
Messages
7
Hello protosd,

Apologies for the delay. The output of the commands you had asked me to execute is given below:
Code:
[root@NAS_T] ~# zpool status -v
  pool: vol2
 state: ONLINE
  scan: scrub repaired 0 in 3h53m with 0 errors on Fri Dec  7 13:38:20 2012
config:

        NAME                                          STATE     READ WRITE CKSUM
        vol2                                          ONLINE       0     0     0
          gptid/07b6214e-f0f6-11e1-bdf4-001e8c6166a2  ONLINE       0     0     0
          gptid/05bb0204-f36c-11e1-914d-001e8c6166a2  ONLINE       0     0     0

errors: No known data errors
[root@NAS_T] ~# camcontrol devlist
<NECVMWar VMware IDE CDR00 1.00>   at scbus0 target 0 lun 0 (pass0,cd0)
<VMware Virtual disk 1.0>          at scbus2 target 0 lun 0 (pass1,da0)
<ATA ST31000528AS CC38>            at scbus2 target 1 lun 0 (pass2,da1)
<ATA WDC WD20EARX-00P 51.0>        at scbus2 target 2 lun 0 (pass3,da2)
[root@NAS_T] ~# glabel status
                                      Name  Status  Components
                             ufs/FreeNASs3     N/A  da0s3
                             ufs/FreeNASs4     N/A  da0s4
                      iso9660/VMware Tools     N/A  cd0
                    ufsid/5075d1f77192f9ac     N/A  da0s1a
                            ufs/FreeNASs1a     N/A  da0s1a
                            ufs/FreeNASs2a     N/A  da0s2a
gptid/07b6214e-f0f6-11e1-bdf4-001e8c6166a2     N/A  da1p2
gptid/05bb0204-f36c-11e1-914d-001e8c6166a2     N/A  da2p2
gptid/05a3fc81-f36c-11e1-914d-001e8c6166a2     N/A  da2p1
[root@NAS_T] ~# gpart show
=>     63  4194241  da0  MBR  (2.0G)
       63  1930257    1  freebsd  (942M)
  1930320       63       - free -  (31k)
  1930383  1930257    2  freebsd  [active]  (942M)
  3860640     3024    3  freebsd  (1.5M)
  3863664    41328    4  freebsd  (20M)
  3904992   289312       - free -  (141M)

=>      0  1930257  da0s1  BSD  (942M)
        0       16         - free -  (8.0k)
       16  1930241      1  !0  (942M)

=>      0  1930257  da0s2  BSD  (942M)
        0       16         - free -  (8.0k)
       16  1930241      1  !0  (942M)

=>        34  1953525101  da1  GPT  (931G)
          34          94       - free -  (47k)
         128     4194304    1  freebsd-swap  (2.0G)
     4194432  1949330703    2  freebsd-zfs  (929G)

=>        34  3907029101  da2  GPT  (1.8T)
          34          94       - free -  (47k)
         128     4194304    1  freebsd-swap  (2.0G)
     4194432  3902834703    2  freebsd-zfs  (1.8T)

[root@NAS_T] ~# sqlite3 /data/freenas-v1.db "select * from storage_disk;"
0|Disabled|Always On|||{devicename}da0|1|Disabled|Auto||||1|da0
1|Minimum|Always On|5VP2R1FT||{serial}5VP2R1FT|1|1|Auto||||2|da1
1|Minimum|Always On|WD-WCAZAF263789||{serial}WD-WCAZAF263789|1|1|Auto||||3|da2
[root@NAS_T] ~# sqlite3 /data/freenas-v1.db "select * from storage_diskgroup;"
Error: no such table: storage_diskgroup
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
I have NAS machine with 3 drives :

Drive 1 : 160 GB
Drive 2 : 1 TB
Drive 3 : 2 TB

Drive 1 contains freenas
Drive 2 is /mnt/vol1
Drive 3 is /mnt/vol1/data


Is there a way I can rename /vol1/data to /vol2. Help me.

The output from the commands I asked you to post isn't consistent with your statement above.

It looks like Drives 2 & 3 are part of a single pool. I don't know what kind of pool you created, it doesn't look like a mirror, but it looks like you're losing 1TB from Drive 3 the way you have it configured. I can only assume /mnt/vol1/data is a dataset, so there is no way to change the "vol1/data" to "vol2". You would need to destroy your pool (losing the data), and recreate 2 separate 1 disk pools, which would also give you the lost TB, but trading the little redundancy you had with only 2 disks of unequal size.
 

subodh.c

Cadet
Joined
Sep 29, 2012
Messages
7
Thanks potosd. Really Appreciated. Looks like I will have buy a new drive and move the whole data into it.
 
Status
Not open for further replies.
Top