Bug #1885
cannot install brand new 4tb drive
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
12/03/2015
Due date:
% Done:
0%
Description
I went to add a drive to my HDA today. It failed. here is the error screen: http://dl.dropbox.com/u/364883/Screenshots/dtz0.png
Sigh.
And here is the debug information:
------------This Debug Information was Generated on December-03-2015 08:09:11 PM------------ /*===*dsw.log wrapper script log (tail -n 50)===*/ 2015-11-08 22:43:38: Start executing udevadm with arguments = info --query=property --name=sdd1 2015-11-08 22:43:38: Start executing df with arguments = --block-size=1 /dev/sde1 2015-11-08 22:43:38: Start executing udevadm with arguments = info --query=property --name=/dev/sde1 2015-11-08 22:43:38: Start executing udevadm with arguments = info --query=property --name=sde1 2015-11-08 22:43:38: Start executing blkid with arguments = -U 44961fa2-f10f-4865-a490-ca4cc379e4af -c /dev/null 2015-11-08 22:43:38: Start executing blkid with arguments = -U 91301279-3beb-473d-a412-53be480f5d5c -c /dev/null 2015-11-08 22:43:38: Start executing blkid with arguments = -U b79a6fe6-1a6c-499f-93b7-8d9683b6d0ec -c /dev/null 2015-11-08 22:43:39: Start executing blkid with arguments = -U 2ddb080d-4312-4c9c-b597-fedfc1bee2e3 -c /dev/null 2015-11-08 22:43:39: Start executing blkid with arguments = -U b44a4659-721b-4139-a409-0ffc59cba626 -c /dev/null 2015-11-08 22:43:39: Start executing blkid with arguments = -U c80444cc-cf50-45d6-905b-9a76690ef03e -c /dev/null 2015-12-03 20:07:56: Start executing partprobe with arguments = 2015-12-03 20:07:57: Start executing udevadm with arguments = trigger 2015-12-03 20:07:57: Start executing multipath with arguments = -F 2015-12-03 20:07:58: Start executing lsblk with arguments = -b -P -o VENDOR,MODEL,TYPE,SIZE,KNAME,UUID,LABEL,MOUNTPOINT,FSTYPE,RM 2015-12-03 20:07:58: Start executing df with arguments = --block-size=1 /dev/sda1 2015-12-03 20:07:58: Start executing udevadm with arguments = info --query=property --name=/dev/sda1 2015-12-03 20:07:59: Start executing udevadm with arguments = info --query=property --name=sda1 2015-12-03 20:07:59: Start executing df with arguments = --block-size=1 /dev/sdb1 2015-12-03 20:07:59: Start executing udevadm with arguments = info --query=property --name=/dev/sdb1 2015-12-03 20:07:59: Start executing udevadm with arguments = info --query=property --name=sdb1 2015-12-03 20:07:59: Start executing df with arguments = --block-size=1 /dev/sdb2 2015-12-03 20:07:59: Start executing udevadm with arguments = info --query=property --name=/dev/sdb2 2015-12-03 20:07:59: Start executing udevadm with arguments = info --query=property --name=sdb2 2015-12-03 20:07:59: Start executing df with arguments = --block-size=1 /dev/sdc1 2015-12-03 20:07:59: Start executing udevadm with arguments = info --query=property --name=/dev/sdc1 2015-12-03 20:07:59: Start executing udevadm with arguments = info --query=property --name=sdc1 2015-12-03 20:07:59: Start executing df with arguments = --block-size=1 /dev/sde1 2015-12-03 20:07:59: Start executing udevadm with arguments = info --query=property --name=/dev/sde1 2015-12-03 20:07:59: Start executing udevadm with arguments = info --query=property --name=sde1 2015-12-03 20:07:59: Start executing df with arguments = --block-size=1 /dev/sdf1 2015-12-03 20:07:59: Start executing udevadm with arguments = info --query=property --name=/dev/sdf1 2015-12-03 20:07:59: Start executing udevadm with arguments = info --query=property --name=sdf1 2015-12-03 20:07:59: Start executing blkid with arguments = -U b79a6fe6-1a6c-499f-93b7-8d9683b6d0ec -c /dev/null 2015-12-03 20:07:59: Start executing blkid with arguments = -U 44961fa2-f10f-4865-a490-ca4cc379e4af -c /dev/null 2015-12-03 20:07:59: Start executing blkid with arguments = -U 91301279-3beb-473d-a412-53be480f5d5c -c /dev/null 2015-12-03 20:07:59: Start executing blkid with arguments = -U b44a4659-721b-4139-a409-0ffc59cba626 -c /dev/null 2015-12-03 20:07:59: Start executing blkid with arguments = -U 2ddb080d-4312-4c9c-b597-fedfc1bee2e3 -c /dev/null 2015-12-03 20:07:59: Start executing blkid with arguments = -U c80444cc-cf50-45d6-905b-9a76690ef03e -c /dev/null 2015-12-03 20:08:00: Start executing parted with arguments = -sm /dev/sdd unit b print free 2015-12-03 20:08:09: Start executing lsblk with arguments = /dev/sdd -b -P -o VENDOR,MODEL,TYPE,SIZE,KNAME,UUID,LABEL,MOUNTPOINT,FSTYPE,RM 2015-12-03 20:08:43: Start executing lsblk with arguments = /dev/sdd -b -P -o VENDOR,MODEL,TYPE,SIZE,KNAME,UUID,LABEL,MOUNTPOINT,FSTYPE,RM 2015-12-03 20:08:51: Start executing lsblk with arguments = /dev/sdd -b -P -o VENDOR,MODEL,TYPE,SIZE,KNAME,UUID,LABEL,MOUNTPOINT,FSTYPE,RM 2015-12-03 20:08:51: Start executing lsblk with arguments = /dev/sdd -b -P -o VENDOR,MODEL,TYPE,SIZE,KNAME,UUID,LABEL,MOUNTPOINT,FSTYPE,RM 2015-12-03 20:08:51: Start executing multipath with arguments = -F 2015-12-03 20:08:52: Start executing parted with arguments = -sm /dev/sdd unit b print free 2015-12-03 20:08:52: Start executing parted with arguments = -sm /dev/sdd unit b print free 2015-12-03 20:08:52: Start executing parted with arguments = --script /dev/sdd mklabel msdos 2015-12-03 20:08:52: Start executing partprobe with arguments = 2015-12-03 20:08:53: Start executing udevadm with arguments = trigger 2015-12-03 20:08:53: Start executing parted with arguments = /dev/sdd -s -a optimal unit MB mkpart primary ext3 1 -- -1 /*=== *Current mounted partitions ===*/ /dev/sdb2 on / type ext4 (rw,relatime,data=ordered) devtmpfs on /dev type devtmpfs (rw,nosuid,size=8146156k,nr_inodes=2036539,mode=755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime) mqueue on /dev/mqueue type mqueue (rw,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) configfs on /sys/kernel/config type configfs (rw,relatime) debugfs on /sys/kernel/debug type debugfs (rw,relatime) tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755) tmpfs on /tmp type tmpfs (rw) /dev/sdf1 on /mnt/1tb-sata-1 type ext4 (rw,relatime,data=ordered) [/mnt/1tb-sata-1] /dev/sde1 on /mnt/1-5-tb-sata type ext4 (rw,relatime,data=ordered) /dev/sda1 on /mnt/3tb-sata-2 type ext4 (rw,relatime,data=ordered) [3tb-sata-2] /dev/sdc1 on /mnt/media type ext4 (rw,relatime,data=ordered) [/mnt/media] none on /var/spool/greyhole/mem type tmpfs (rw,relatime,size=4096k) tmpfs on /tmp type tmpfs (rw) /dev/sdb2 on /var/tmp type ext4 (rw,relatime,data=ordered) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1631168k,mode=700,uid=1000,gid=100) tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=1631168k,mode=700) /*=== *list disk/partitions details with parted ===*/ Model: ATA WDC WD30EFRX-68A (scsi) Disk /dev/sda: 3001GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 3001GB 3001GB ext4 msftdata Model: ATA Hitachi HDS72302 (scsi) Disk /dev/sdb: 2000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 8289MB 8288MB primary linux-swap(v1) 2 8289MB 2000GB 1992GB primary ext4 boot Model: ATA WDC WD10EACS-00D (scsi) Disk /dev/sdc: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 1000GB 1000GB primary ext4 boot Model: ATA ST4000DM000-1F21 (scsi) Disk /dev/sdd: 4001GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags Model: ATA ST31500341AS (scsi) Disk /dev/sde: 1500GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 1500GB 1500GB primary ext4 Model: ATA Hitachi HDS72101 (scsi) Disk /dev/sdf: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 32.3kB 1000GB 1000GB primary ext4 /*=== *list disk/partitions details with blkid ===*/ /dev/sda1: LABEL="3tb-sata-2" UUID="b79a6fe6-1a6c-499f-93b7-8d9683b6d0ec" TYPE="ext4" PARTUUID="c9a2aa60-afb7-49d2-8541-2954e01935b3" /dev/sdb1: UUID="44961fa2-f10f-4865-a490-ca4cc379e4af" TYPE="swap" PARTUUID="000729ab-01" /dev/sdb2: UUID="91301279-3beb-473d-a412-53be480f5d5c" TYPE="ext4" PARTUUID="000729ab-02" /dev/sdc1: LABEL="/mnt/media" UUID="b44a4659-721b-4139-a409-0ffc59cba626" TYPE="ext4" PARTUUID="ca79ca79-01" /dev/sdd: PTUUID="0c08dd75" PTTYPE="dos" /dev/sde1: UUID="2ddb080d-4312-4c9c-b597-fedfc1bee2e3" TYPE="ext4" PARTUUID="73e765b1-01" /dev/sdf1: LABEL="/mnt/1tb-sata-1" UUID="c80444cc-cf50-45d6-905b-9a76690ef03e" TYPE="ext4" PARTUUID="f97faa00-01" /*=== *List all logical volumes ===*/ Using logical volume(s) on command line. No PV label found on /dev/sda1. No PV label found on /dev/sdb1. No PV label found on /dev/sdb2. No PV label found on /dev/sdc1. No PV label found on /dev/sdd. No PV label found on /dev/sde1. No PV label found on /dev/sdf1. No volume groups found. /*=== *dsk-wz.sh wrapper script ===*/ #!/bin/bash # Function to write to the Log file # Ref:http://goo.gl/ld4ifr ################################### DEBUG_MODE=true; write_log() { if [ "$DEBUG_MODE" = true ]; then LOGTIME=`date "+%Y-%m-%d %H:%M:%S"` LOG="dsw.log" touch $LOG if [ ! -f $LOG ]; then echo "ERROR!! Cannot create log file $LOG. Exiting."; exit 1; fi echo $LOGTIME": $@" >> $LOG; fi } executor(){ local command=$1; shift; local params="$*"; write_log "Start executing $command with arguments = $params"; exec sudo $command $params #>> dsw.log 2>&1; } if [ $# -lt 1 ] then echo -e "An insufficient number of arguments(arguments)" | write_log ; exit 1; fi command=$1; shift; arguments="$@"; # Pattern matching Ref: http://goo.gl/JnXS5y case $command in parted) executor $command $arguments; ;; mkfs.*) executor $command $arguments; ;; lsblk) executor $command $arguments; ;; fdisk) executor $command $arguments; ;; mount) executor $command $arguments; ;; umount) executor $command $arguments; ;; kill) executor $command $arguments; ;; df) executor $command $arguments; ;; mkdir) executor $command $arguments; ;; systemctl) executor $command $arguments; ;; blkid) executor $command $arguments; ;; multipath) executor $command $arguments; ;; udevadm) executor $command $arguments; ;; echo) IFS=! read -a arguments <<< "${arguments}"; cmd1=${arguments[0]}; cmd2=${arguments[1]}; exec $command $cmd1 | $cmd2; ;; partprobe) executor $command $arguments; ;; *) # if a command is not one we know, we exit with an error echo "Sorry, command $command is not known" 1>&2; exit 1; ;; esac /*=== *disk-wizard rails log file(tail -n 50)===*/ [INFO 2015-11-08 22:43:39 7986] |Class|>|get_path|:device = sde1, uuid = c80444cc-cf50-45d6-905b-9a76690ef03e, params = -U c80444cc-cf50-45d6-905b-9a76690ef03e -c /dev/null [INFO 2015-12-03 20:07:53 3286] --disk_wizard_start-- [INFO 2015-12-03 20:07:56 3369] |Class|>|probe_kernal|:Commands = {"partprobe"=>"", "udevadm"=>" trigger"} [INFO 2015-12-03 20:07:59 3369] |Class|>|get_path|:device = sda1, uuid = b79a6fe6-1a6c-499f-93b7-8d9683b6d0ec, params = -U b79a6fe6-1a6c-499f-93b7-8d9683b6d0ec -c /dev/null [INFO 2015-12-03 20:07:59 3369] |Class|>|get_path|:device = sdb1, uuid = 44961fa2-f10f-4865-a490-ca4cc379e4af, params = -U 44961fa2-f10f-4865-a490-ca4cc379e4af -c /dev/null [INFO 2015-12-03 20:07:59 3369] |Class|>|get_path|:device = sdb2, uuid = 91301279-3beb-473d-a412-53be480f5d5c, params = -U 91301279-3beb-473d-a412-53be480f5d5c -c /dev/null [INFO 2015-12-03 20:07:59 3369] |Class|>|get_path|:device = sdc1, uuid = b44a4659-721b-4139-a409-0ffc59cba626, params = -U b44a4659-721b-4139-a409-0ffc59cba626 -c /dev/null [INFO 2015-12-03 20:07:59 3369] |Class|>|get_path|:device = sde1, uuid = 2ddb080d-4312-4c9c-b597-fedfc1bee2e3, params = -U 2ddb080d-4312-4c9c-b597-fedfc1bee2e3 -c /dev/null [INFO 2015-12-03 20:07:59 3369] |Class|>|get_path|:device = sdf1, uuid = c80444cc-cf50-45d6-905b-9a76690ef03e, params = -U c80444cc-cf50-45d6-905b-9a76690ef03e -c /dev/null [INFO 2015-12-03 20:08:00 3369] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:08:00 3369] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:08:09 3369] |DiskWizardsController|>|select_fs|:Device = /dev/sdd [INFO 2015-12-03 20:08:09 3369] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:08:09 3369] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:08:17 3369] |DiskWizardsController|>|user_selections=|:New hash= {:fs_type=>0, :format=>"1", :path=>"/dev/sdd"} [INFO 2015-12-03 20:08:17 3369] |DiskWizardsController|>|user_selections=|:Updated session[:user_selections] {"path":"/dev/sdd","fs_type":0,"format":"1"} [INFO 2015-12-03 20:08:43 3286] |DiskWizardsController|>|user_selections=|:New hash= {:option=>["1"], :label=>"4tb-drive"} [INFO 2015-12-03 20:08:43 3286] |DiskWizardsController|>|user_selections=|:Updated session[:user_selections] {"path":"/dev/sdd","fs_type":0,"format":"1","option":["1"],"label":"4tb-drive"} [INFO 2015-12-03 20:08:43 3286] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:08:50 3274] |DiskWizardsController|>|user_selections=|:New hash= {:debug=>nil} [INFO 2015-12-03 20:08:50 3274] |DiskWizardsController|>|user_selections=|:Updated session[:user_selections] {"path":"/dev/sdd","fs_type":0,"format":"1","option":["1"],"label":"4tb-drive","debug":null} [INFO 2015-12-03 20:08:51 3369] |DiskWizardsController|>|process_disk|:Selected disk/partition = /dev/sdd [INFO 2015-12-03 20:08:51 3369] |DiskWizardsController|>|process_disk|:Job_name = format_job, para = {:path=>"/dev/sdd", :fs_type=>0, :label=>"4tb-drive"} [INFO 2015-12-03 20:08:51 3369] |DiskWizardsController|>|process_disk|:Job_name = mount_job, para = {:path=>"/dev/sdd", :label=>"4tb-drive"} [INFO 2015-12-03 20:08:51 3369] |JobQueue|>|process_queue|:job[:job_name] = pre_checks_job job[:job_para] = {:path=>"/dev/sdd"} [INFO 2015-12-03 20:08:51 3369] |Device|>|pre_checks_job|:Params_hash {:path=>"/dev/sdd"} [INFO 2015-12-03 20:08:51 3369] |JobQueue|>|process_queue|:job[:job_name] = format_job job[:job_para] = {:path=>"/dev/sdd", :fs_type=>0, :label=>"4tb-drive"} [INFO 2015-12-03 20:08:51 3369] |Device|>|format_job|:Params_hash {:path=>"/dev/sdd", :fs_type=>0, :label=>"4tb-drive"} [INFO 2015-12-03 20:08:52 3369] |Device|>|format_job|:Create partition_table false [INFO 2015-12-03 20:08:52 3369] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:08:52 3369] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:08:52 3369] |Class|>|probe_kernal|:Commands = {"partprobe"=>"", "udevadm"=>" trigger", "hdparm"=>"trigger -z /dev/sdd"} [INFO 2015-12-03 20:08:53 3369] Command execution error: Sorry, command hdparm is not known [INFO 2015-12-03 20:08:53 3369] |Device|>|format_job|:Full format label 4tb-drive [INFO 2015-12-03 20:08:53 3369] class = Device, method = full_format [INFO 2015-12-03 20:08:53 3369] |Device|>|full_format|:Creating partition sdd [INFO 2015-12-03 20:08:53 3369] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:08:54 3369] |JobQueue|>|process_queue|:JOB FAILS #<RuntimeError: Command execution error: Error: partition length of 7814033408 sectors exceeds the msdos-partition-table-imposed maximum of 4294967295 > ---Backtrace--- /var/hda/platform/html/plugins/1001-disk_wizards/lib/diskwz.rb, 259, and create_partition /var/hda/platform/html/plugins/1001-disk_wizards/app/models/device.rb, 123, and full_format /var/hda/platform/html/plugins/1001-disk_wizards/app/models/device.rb, 150, and format_job /var/hda/platform/html/plugins/1001-disk_wizards/app/models/job_queue.rb, 68, and process_queue /var/hda/platform/html/plugins/1001-disk_wizards/app/controllers/disk_wizards_controller.rb, 75, and process_disk /var/hda/platform/html/vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb, 4, and send_action /var/hda/platform/html/vendor/bundle/ruby/gems/actionpack-4.2.4/lib/abstract_controller/base.rb, 198, and process_action /var/hda/platform/html/vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb, 10, and process_action /var/hda/platform/html/vendor/bundle/ruby/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb, 20, and block in process_action /var/hda/platform/html/vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb, 117, and call /*===*fstab entries (tail -n 10)===*/ # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=91301279-3beb-473d-a412-53be480f5d5c / ext4 defaults 1 1 UUID=44961fa2-f10f-4865-a490-ca4cc379e4af swap swap defaults 0 0 # new UUID=b44a4659-721b-4139-a409-0ffc59cba626 /mnt/media ext4 defaults 1 2 UUID=c80444cc-cf50-45d6-905b-9a76690ef03e /mnt/1tb-sata-1 ext4 defaults 1 2 UUID=b79a6fe6-1a6c-499f-93b7-8d9683b6d0ec /mnt/3tb-sata-2 ext4 defaults 1 2 UUID=2ddb080d-4312-4c9c-b597-fedfc1bee2e3 /mnt/1-5-tb-sata ext4 defaults 1 2
History
#1 Updated by cpg over 6 years ago
here is what i did next:
# parted /dev/sdd GNU Parted 3.2 Using /dev/sdd Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mklabel New disk label type? GPT Warning: The existing disk label on /dev/sdd will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? yes (parted) quit #
after this, the wizard worked, though it ought to have used a UUID to mount, rather than the device name, since that is weak.
------------This Debug Information was Generated on December-03-2015 08:25:04 PM------------ /*===*dsw.log wrapper script log (tail -n 50)===*/ 2015-12-03 20:23:59: Start executing lsblk with arguments = -b -P -o VENDOR,MODEL,TYPE,SIZE,KNAME,UUID,LABEL,MOUNTPOINT,FSTYPE,RM 2015-12-03 20:23:59: Start executing df with arguments = --block-size=1 /dev/sda1 2015-12-03 20:23:59: Start executing udevadm with arguments = info --query=property --name=/dev/sda1 2015-12-03 20:23:59: Start executing udevadm with arguments = info --query=property --name=sda1 2015-12-03 20:23:59: Start executing df with arguments = --block-size=1 /dev/sdb1 2015-12-03 20:23:59: Start executing udevadm with arguments = info --query=property --name=/dev/sdb1 2015-12-03 20:23:59: Start executing udevadm with arguments = info --query=property --name=sdb1 2015-12-03 20:23:59: Start executing df with arguments = --block-size=1 /dev/sdb2 2015-12-03 20:23:59: Start executing udevadm with arguments = info --query=property --name=/dev/sdb2 2015-12-03 20:23:59: Start executing udevadm with arguments = info --query=property --name=sdb2 2015-12-03 20:23:59: Start executing df with arguments = --block-size=1 /dev/sdc1 2015-12-03 20:23:59: Start executing udevadm with arguments = info --query=property --name=/dev/sdc1 2015-12-03 20:24:00: Start executing udevadm with arguments = info --query=property --name=sdc1 2015-12-03 20:24:00: Start executing df with arguments = --block-size=1 /dev/sde1 2015-12-03 20:24:00: Start executing udevadm with arguments = info --query=property --name=/dev/sde1 2015-12-03 20:24:00: Start executing udevadm with arguments = info --query=property --name=sde1 2015-12-03 20:24:00: Start executing df with arguments = --block-size=1 /dev/sdf1 2015-12-03 20:24:00: Start executing udevadm with arguments = info --query=property --name=/dev/sdf1 2015-12-03 20:24:00: Start executing udevadm with arguments = info --query=property --name=sdf1 2015-12-03 20:24:00: Start executing blkid with arguments = -U b79a6fe6-1a6c-499f-93b7-8d9683b6d0ec -c /dev/null 2015-12-03 20:24:00: Start executing blkid with arguments = -U 44961fa2-f10f-4865-a490-ca4cc379e4af -c /dev/null 2015-12-03 20:24:00: Start executing blkid with arguments = -U 91301279-3beb-473d-a412-53be480f5d5c -c /dev/null 2015-12-03 20:24:00: Start executing blkid with arguments = -U b44a4659-721b-4139-a409-0ffc59cba626 -c /dev/null 2015-12-03 20:24:00: Start executing blkid with arguments = -U 2ddb080d-4312-4c9c-b597-fedfc1bee2e3 -c /dev/null 2015-12-03 20:24:00: Start executing blkid with arguments = -U c80444cc-cf50-45d6-905b-9a76690ef03e -c /dev/null 2015-12-03 20:24:00: Start executing parted with arguments = -sm /dev/sdd unit b print free 2015-12-03 20:24:05: Start executing lsblk with arguments = /dev/sdd -b -P -o VENDOR,MODEL,TYPE,SIZE,KNAME,UUID,LABEL,MOUNTPOINT,FSTYPE,RM 2015-12-03 20:24:13: Start executing lsblk with arguments = /dev/sdd -b -P -o VENDOR,MODEL,TYPE,SIZE,KNAME,UUID,LABEL,MOUNTPOINT,FSTYPE,RM 2015-12-03 20:24:17: Start executing lsblk with arguments = /dev/sdd -b -P -o VENDOR,MODEL,TYPE,SIZE,KNAME,UUID,LABEL,MOUNTPOINT,FSTYPE,RM 2015-12-03 20:24:17: Start executing lsblk with arguments = /dev/sdd -b -P -o VENDOR,MODEL,TYPE,SIZE,KNAME,UUID,LABEL,MOUNTPOINT,FSTYPE,RM 2015-12-03 20:24:17: Start executing multipath with arguments = -F 2015-12-03 20:24:17: Start executing parted with arguments = -sm /dev/sdd unit b print free 2015-12-03 20:24:17: Start executing parted with arguments = -sm /dev/sdd unit b print free 2015-12-03 20:24:18: Start executing parted with arguments = /dev/sdd -s -a optimal unit MB mkpart primary ext3 1 -- -1 2015-12-03 20:24:18: Start executing partprobe with arguments = 2015-12-03 20:24:19: Start executing udevadm with arguments = trigger 2015-12-03 20:24:19: Start executing partprobe with arguments = 2015-12-03 20:24:20: Start executing udevadm with arguments = trigger 2015-12-03 20:24:20: Start executing lsblk with arguments = /dev/sdd -bPo VENDOR,MODEL,TYPE,SIZE,KNAME,UUID,LABEL,MOUNTPOINT,FSTYPE,RM 2015-12-03 20:24:20: Start executing df with arguments = --block-size=1 /dev/sdd1 2015-12-03 20:24:20: Start executing mkfs.ext4 with arguments = -q /dev/sdd1 2015-12-03 20:24:52: Start executing partprobe with arguments = 2015-12-03 20:24:53: Start executing udevadm with arguments = trigger 2015-12-03 20:24:53: Start executing lsblk with arguments = /dev/sdd1 -bPo VENDOR,MODEL,TYPE,SIZE,KNAME,UUID,LABEL,MOUNTPOINT,FSTYPE,RM 2015-12-03 20:24:53: Start executing df with arguments = --block-size=1 /dev/sdd1 2015-12-03 20:24:53: Start executing blkid with arguments = -U efa725c3-a6ee-4a2e-80e2-4c3170a1258b -c /dev/null 2015-12-03 20:24:53: Start executing blkid with arguments = -U efa725c3-a6ee-4a2e-80e2-4c3170a1258b -c /dev/null 2015-12-03 20:24:54: Start executing mkdir with arguments = -p -m 757 /var/hda/files/drives/4tb-drive 2015-12-03 20:24:54: Start executing blkid with arguments = -U efa725c3-a6ee-4a2e-80e2-4c3170a1258b -c /dev/null 2015-12-03 20:24:54: Start executing mount with arguments = /dev/sdd1 /var/hda/files/drives/4tb-drive /*=== *Current mounted partitions ===*/ /dev/sdb2 on / type ext4 (rw,relatime,data=ordered) devtmpfs on /dev type devtmpfs (rw,nosuid,size=8146156k,nr_inodes=2036539,mode=755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime) mqueue on /dev/mqueue type mqueue (rw,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) configfs on /sys/kernel/config type configfs (rw,relatime) debugfs on /sys/kernel/debug type debugfs (rw,relatime) tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755) tmpfs on /tmp type tmpfs (rw) /dev/sdf1 on /mnt/1tb-sata-1 type ext4 (rw,relatime,data=ordered) [/mnt/1tb-sata-1] /dev/sde1 on /mnt/1-5-tb-sata type ext4 (rw,relatime,data=ordered) /dev/sda1 on /mnt/3tb-sata-2 type ext4 (rw,relatime,data=ordered) [3tb-sata-2] /dev/sdc1 on /mnt/media type ext4 (rw,relatime,data=ordered) [/mnt/media] none on /var/spool/greyhole/mem type tmpfs (rw,relatime,size=4096k) tmpfs on /tmp type tmpfs (rw) /dev/sdb2 on /var/tmp type ext4 (rw,relatime,data=ordered) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1631168k,mode=700,uid=1000,gid=100) tmpfs on /run/user/1002 type tmpfs (rw,nosuid,nodev,relatime,size=1631168k,mode=700,uid=1002,gid=100) /dev/sdd1 on /var/hda/files/drives/4tb-drive type ext4 (rw,relatime,data=ordered) tmpfs on /run/user/997 type tmpfs (rw,nosuid,nodev,relatime,size=1631168k,mode=700,uid=997,gid=996) tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=1631168k,mode=700) /*=== *list disk/partitions details with parted ===*/ Model: ATA WDC WD30EFRX-68A (scsi) Disk /dev/sda: 3001GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 3001GB 3001GB ext4 msftdata Model: ATA Hitachi HDS72302 (scsi) Disk /dev/sdb: 2000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 8289MB 8288MB primary linux-swap(v1) 2 8289MB 2000GB 1992GB primary ext4 boot Model: ATA WDC WD10EACS-00D (scsi) Disk /dev/sdc: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 1000GB 1000GB primary ext4 boot Model: ATA ST4000DM000-1F21 (scsi) Disk /dev/sdd: 4001GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 4001GB 4001GB ext4 primary Model: ATA ST31500341AS (scsi) Disk /dev/sde: 1500GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 1500GB 1500GB primary ext4 Model: ATA Hitachi HDS72101 (scsi) Disk /dev/sdf: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 32.3kB 1000GB 1000GB primary ext4 /*=== *list disk/partitions details with blkid ===*/ /dev/sda1: LABEL="3tb-sata-2" UUID="b79a6fe6-1a6c-499f-93b7-8d9683b6d0ec" TYPE="ext4" PARTUUID="c9a2aa60-afb7-49d2-8541-2954e01935b3" /dev/sdb1: UUID="44961fa2-f10f-4865-a490-ca4cc379e4af" TYPE="swap" PARTUUID="000729ab-01" /dev/sdb2: UUID="91301279-3beb-473d-a412-53be480f5d5c" TYPE="ext4" PARTUUID="000729ab-02" /dev/sdc1: LABEL="/mnt/media" UUID="b44a4659-721b-4139-a409-0ffc59cba626" TYPE="ext4" PARTUUID="ca79ca79-01" /dev/sdd1: UUID="efa725c3-a6ee-4a2e-80e2-4c3170a1258b" TYPE="ext4" PARTLABEL="primary" PARTUUID="e4354037-5dbc-434b-b569-9b41831b490f" /dev/sde1: UUID="2ddb080d-4312-4c9c-b597-fedfc1bee2e3" TYPE="ext4" PARTUUID="73e765b1-01" /dev/sdf1: LABEL="/mnt/1tb-sata-1" UUID="c80444cc-cf50-45d6-905b-9a76690ef03e" TYPE="ext4" PARTUUID="f97faa00-01" /*=== *List all logical volumes ===*/ Using logical volume(s) on command line. No volume groups found. /*=== *dsk-wz.sh wrapper script ===*/ #!/bin/bash # Function to write to the Log file # Ref:http://goo.gl/ld4ifr ################################### DEBUG_MODE=true; write_log() { if [ "$DEBUG_MODE" = true ]; then LOGTIME=`date "+%Y-%m-%d %H:%M:%S"` LOG="dsw.log" touch $LOG if [ ! -f $LOG ]; then echo "ERROR!! Cannot create log file $LOG. Exiting."; exit 1; fi echo $LOGTIME": $@" >> $LOG; fi } executor(){ local command=$1; shift; local params="$*"; write_log "Start executing $command with arguments = $params"; exec sudo $command $params #>> dsw.log 2>&1; } if [ $# -lt 1 ] then echo -e "An insufficient number of arguments(arguments)" | write_log ; exit 1; fi command=$1; shift; arguments="$@"; # Pattern matching Ref: http://goo.gl/JnXS5y case $command in parted) executor $command $arguments; ;; mkfs.*) executor $command $arguments; ;; lsblk) executor $command $arguments; ;; fdisk) executor $command $arguments; ;; mount) executor $command $arguments; ;; umount) executor $command $arguments; ;; kill) executor $command $arguments; ;; df) executor $command $arguments; ;; mkdir) executor $command $arguments; ;; systemctl) executor $command $arguments; ;; blkid) executor $command $arguments; ;; multipath) executor $command $arguments; ;; udevadm) executor $command $arguments; ;; echo) IFS=! read -a arguments <<< "${arguments}"; cmd1=${arguments[0]}; cmd2=${arguments[1]}; exec $command $cmd1 | $cmd2; ;; partprobe) executor $command $arguments; ;; *) # if a command is not one we know, we exit with an error echo "Sorry, command $command is not known" 1>&2; exit 1; ;; esac /*=== *disk-wizard rails log file(tail -n 50)===*/ [INFO 2015-12-03 20:24:04 3369] |DiskWizardsController|>|user_selections=|:New hash= {:path=>"/dev/sdd"} [INFO 2015-12-03 20:24:04 3369] |DiskWizardsController|>|user_selections=|:Updated session[:user_selections] {"path":"/dev/sdd","fs_type":0,"format":"1","option":["1"],"label":"4tb-drive","debug":null} [INFO 2015-12-03 20:24:04 3369] |DiskWizardsController|>|select_fs|:Device = /dev/sdd [INFO 2015-12-03 20:24:05 3369] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:24:05 3369] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:24:05 3369] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:24:05 3369] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:24:09 3369] |DiskWizardsController|>|user_selections=|:New hash= {:fs_type=>0, :format=>"1", :path=>"/dev/sdd"} [INFO 2015-12-03 20:24:09 3369] |DiskWizardsController|>|user_selections=|:Updated session[:user_selections] {"path":"/dev/sdd","fs_type":0,"format":"1","option":["1"],"label":"4tb-drive","debug":null} [INFO 2015-12-03 20:24:13 3369] |DiskWizardsController|>|user_selections=|:New hash= {:option=>["1"], :label=>"4tb-drive"} [INFO 2015-12-03 20:24:13 3369] |DiskWizardsController|>|user_selections=|:Updated session[:user_selections] {"path":"/dev/sdd","fs_type":0,"format":"1","option":["1"],"label":"4tb-drive","debug":null} [INFO 2015-12-03 20:24:13 3369] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:24:16 6825] |DiskWizardsController|>|user_selections=|:New hash= {:debug=>nil} [INFO 2015-12-03 20:24:16 6825] |DiskWizardsController|>|user_selections=|:Updated session[:user_selections] {"path":"/dev/sdd","fs_type":0,"format":"1","option":["1"],"label":"4tb-drive","debug":null} [INFO 2015-12-03 20:24:17 6825] |DiskWizardsController|>|process_disk|:Selected disk/partition = /dev/sdd [INFO 2015-12-03 20:24:17 6825] |DiskWizardsController|>|process_disk|:Job_name = format_job, para = {:path=>"/dev/sdd", :fs_type=>0, :label=>"4tb-drive"} [INFO 2015-12-03 20:24:17 6825] |DiskWizardsController|>|process_disk|:Job_name = mount_job, para = {:path=>"/dev/sdd", :label=>"4tb-drive"} [INFO 2015-12-03 20:24:17 6825] |JobQueue|>|process_queue|:job[:job_name] = pre_checks_job job[:job_para] = {:path=>"/dev/sdd"} [INFO 2015-12-03 20:24:17 6825] |Device|>|pre_checks_job|:Params_hash {:path=>"/dev/sdd"} [INFO 2015-12-03 20:24:17 6825] |JobQueue|>|process_queue|:job[:job_name] = format_job job[:job_para] = {:path=>"/dev/sdd", :fs_type=>0, :label=>"4tb-drive"} [INFO 2015-12-03 20:24:17 6825] |Device|>|format_job|:Params_hash {:path=>"/dev/sdd", :fs_type=>0, :label=>"4tb-drive"} [INFO 2015-12-03 20:24:17 6825] |Device|>|format_job|:Create partition_table gpt [INFO 2015-12-03 20:24:17 6825] |Device|>|format_job|:Full format label 4tb-drive [INFO 2015-12-03 20:24:17 6825] class = Device, method = full_format [INFO 2015-12-03 20:24:17 6825] |Device|>|full_format|:Creating partition sdd [INFO 2015-12-03 20:24:17 6825] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:24:18 6825] |Class|>|get_path|:device return value(if not object type Partition) = sdd [INFO 2015-12-03 20:24:18 6825] |Class|>|probe_kernal|:Commands = {"partprobe"=>"", "udevadm"=>" trigger", "hdparm"=>"trigger -z /dev/sdd"} [INFO 2015-12-03 20:24:19 6825] Command execution error: Sorry, command hdparm is not known [INFO 2015-12-03 20:24:19 6825] |Device|>|full_format|:Find partition sdd [INFO 2015-12-03 20:24:19 6825] |Device|>|reload|:Device Kname sdd [INFO 2015-12-03 20:24:19 6825] |Class|>|probe_kernal|:Commands = {"partprobe"=>"", "udevadm"=>" trigger", "hdparm"=>"trigger -z /dev/sdd"} [INFO 2015-12-03 20:24:20 6825] Command execution error: Sorry, command hdparm is not known [INFO 2015-12-03 20:24:20 6825] |Device|>|full_format|:Formating sdd to 0 [INFO 2015-12-03 20:24:20 6825] |Class|>|get_path|:device return value(if not object type Partition) = sdd1 [INFO 2015-12-03 20:24:20 6825] |Class|>|format|:Disk.kname = sdd1, fstype = 0 format params = -q /dev/sdd1 [INFO 2015-12-03 20:24:52 6825] |JobQueue|>|process_queue|:job[:job_name] = mount_job job[:job_para] = {:path=>"/dev/sdd", :label=>"4tb-drive"} [INFO 2015-12-03 20:24:52 6825] |Device|>|mount_job|:Params_hash {:path=>"/dev/sdd", :label=>"4tb-drive"} [INFO 2015-12-03 20:24:52 6825] |Device|>|mount_job|:New partition Label 4tb-drive [INFO 2015-12-03 20:24:52 6825] |Partition|>|reload|:Device Kname sdd1 [INFO 2015-12-03 20:24:52 6825] |Class|>|probe_kernal|:Commands = {"partprobe"=>"", "udevadm"=>" trigger", "hdparm"=>"trigger -z /dev/sdd1"} [INFO 2015-12-03 20:24:53 6825] Command execution error: Sorry, command hdparm is not known [INFO 2015-12-03 20:24:53 6825] |Class|>|get_path|:device = sdd1, uuid = efa725c3-a6ee-4a2e-80e2-4c3170a1258b, params = -U efa725c3-a6ee-4a2e-80e2-4c3170a1258b -c /dev/null [INFO 2015-12-03 20:24:53 6825] |Class|>|mount|:Init Fstab disk.path = /dev/sdd1 [INFO 2015-12-03 20:24:53 6825] |Class|>|mount|:Add_fs mount_point /var/hda/files/drives/4tb-drive [INFO 2015-12-03 20:24:53 6825] |Class|>|get_path|:device = sdd1, uuid = efa725c3-a6ee-4a2e-80e2-4c3170a1258b, params = -U efa725c3-a6ee-4a2e-80e2-4c3170a1258b -c /dev/null [INFO 2015-12-03 20:24:53 6825] |Class|>|mount|:Create directory mount_point = /var/hda/files/drives/4tb-drive [INFO 2015-12-03 20:24:54 6825] |Class|>|get_path|:device = sdd1, uuid = efa725c3-a6ee-4a2e-80e2-4c3170a1258b, params = -U efa725c3-a6ee-4a2e-80e2-4c3170a1258b -c /dev/null [INFO 2015-12-03 20:24:54 6825] |Class|>|mount|:Mount executing [INFO 2015-12-03 20:24:54 6825] |JobQueue|>|process_queue|:job[:job_name] = post_checks_job job[:job_para] = {:path=>"/dev/sdd"} /*===*fstab entries (tail -n 10)===*/ # UUID=91301279-3beb-473d-a412-53be480f5d5c / ext4 defaults 1 1 UUID=44961fa2-f10f-4865-a490-ca4cc379e4af swap swap defaults 0 0 # new UUID=b44a4659-721b-4139-a409-0ffc59cba626 /mnt/media ext4 defaults 1 2 UUID=c80444cc-cf50-45d6-905b-9a76690ef03e /mnt/1tb-sata-1 ext4 defaults 1 2 UUID=b79a6fe6-1a6c-499f-93b7-8d9683b6d0ec /mnt/3tb-sata-2 ext4 defaults 1 2 UUID=2ddb080d-4312-4c9c-b597-fedfc1bee2e3 /mnt/1-5-tb-sata ext4 defaults 1 2 /dev/sdd1 /var/hda/files/drives/4tb-drive auto auto,rw,exec 0 0
Also available in: Atom