-
-
Save anonymous/cef24c13c9c35d175ccc to your computer and use it in GitHub Desktop.
problem recover 2 logical drives on 1 array (rear -vD savelayout)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2012-11-08 12:57:33 Relax and Recover 1.12.0svn508 / 2011-07-13 11:02:53 | |
2012-11-08 12:57:33 Command line options: /usr/sbin/rear -vD savelayout | |
2012-11-08 12:57:33 Including conf/Linux-i386.conf | |
+ . /usr/share/rear/conf/Linux-i386.conf | |
++ REQUIRED_PROGS=("${REQUIRED_PROGS[@]}" parted sfdisk) | |
++ PROGS=("${PROGS[@]}" grub partprobe lilo fdisk cfdisk) | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:33 Including conf/GNU/Linux.conf | |
+ . /usr/share/rear/conf/GNU/Linux.conf | |
++ PROGS=(${PROGS[@]} rpc.statd rpcbind bash mknod blkid vol_id udev_volume_id portmap readlink rpcinfo grep cat tac tr reboot halt shutdown killall5 killall chroot tee awk ip ifenslave ifrename nameif klogd syslog-ng syslogd rsyslogd echo cp date wc cut rm test init telinit ethtool expand sed mount umount insmod modprobe lsmod true false mingetty rmmod hostname uname sleep logger ps ln dirname basename mkdir cpio tty ping netstat free traceroute less vi pico nano rmmod df ls dmesg du tar gzip netcat top iptraf joe pico getent id ldd strace rsync tail head find md5sum mkfs mkfs.ext2 mkfs.ext3 mkfs.ext4 mkfs.ext4dev mkfs.jfs mkfs.xfs mkfs.reiserfs mkfs.vfat mkreiserfs fsck.ext2 fsck.ext3 fsck.ext4 fsck.ext4dev fsck.xfs fsck.reiserfs reiserfsck tune2fs tune4fs xfs_admin xfs_db jfs_tune reiserfstune fsck expr egrep grep fgrep df chmod chown stat mkswap swapon swapoff mknod touch scsi_id lsscsi logd initctl lspci usleep mktemp /bin/true strace which mkfifo seq openvt poweroff chacl getfacl setfacl attr getfattr setfattr mpath_wait) | |
++ LIBS=(${LIBS[@]} /lib*/libnss_dns* /lib*/libnss_files* /lib*/libgcc_s* /lib*/libresolv* /usr/lib*/rsyslog/*so /lib*/rsyslog/*so) | |
++ MODULES=(${MODULES[@]} vfat nls_iso8859_1 nls_utf8 nls_cp437 af_packet unix nfs lockd sunrpc cifs usbcore usb_storage usbhid sr_mod ide_cd cdrom uhci_hcd ehci_hcd ohci_hcd) | |
++ COPY_AS_IS=(${COPY_AS_IS[@]} /dev /etc/inputr[c] /etc/protocols /etc/services /etc/rpc /etc/termcap /*/terminfo /usr/share/terminfo /etc/netconfig /etc/mke2fs.conf /etc/*-release /lib*/firmware /etc/localtime /usr/lib*/syslog-ng) | |
++ COPY_AS_IS_EXCLUDE=(${COPY_AS_IS_EXCLUDE[@]} dev/shm/\*) | |
++ KERNEL_CMDLINE=' selinux=0' | |
++ CLONE_USERS=("${CLONE_USERS[@]}" daemon rpc usbmuxd usbmux vcsa nobody) | |
++ CLONE_GROUPS=("${CLONE_GROUPS[@]}" tty usbmuxd usbmux fuse) | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:33 Including /etc/rear/local.conf | |
+ . /etc/rear/local.conf | |
++ BACKUP=BACULA | |
++ BEXTRACT_DEVICE=Ultrium-1 | |
++ OUTPUT=USB | |
++ USB_DEVICE=/dev/disk/by-label/REAR-000 | |
++ GRUB_RESCUE_PASSWORD='$1$5q3ZH4PN$3/L3ui23BHfBD0Cl1yFPs1' | |
++ USB_RETAIN_BACKUP_NR=4 | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:33 Using build area '/tmp/rear.yFIcNoexNlK8305' | |
mkdir: created directory `/tmp/rear.yFIcNoexNlK8305/rootfs' | |
mkdir: created directory `/tmp/rear.yFIcNoexNlK8305/tmp' | |
2012-11-08 12:57:33 Running savelayout workflow | |
2012-11-08 12:57:33 Running 'layout/save' stage | |
2012-11-08 12:57:33 Including layout/save/GNU/Linux/10_create_layout_file.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/10_create_layout_file.sh | |
++ LogPrint 'Creating disk layout' | |
++ Log 'Creating disk layout' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2012-11-08 12:57:33 Creating disk layout' | |
2012-11-08 12:57:33 Creating disk layout | |
++ Print 'Creating disk layout' | |
++ test 1 | |
++ echo -e 'Creating disk layout' | |
++ Log 'Preparing layout directory.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2012-11-08 12:57:33 Preparing layout directory.' | |
2012-11-08 12:57:33 Preparing layout directory. | |
++ mkdir -p -v /var/lib/rear/layout | |
++ mkdir -p -v /var/lib/rear/recovery | |
++ mkdir -p -v /var/lib/rear/layout/config | |
++ DISKLAYOUT_FILE=/var/lib/rear/layout/disklayout.conf | |
++ '[' -e /var/lib/rear/layout/disklayout.conf ']' | |
++ Log 'Removing old layout file.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2012-11-08 12:57:33 Removing old layout file.' | |
2012-11-08 12:57:33 Removing old layout file. | |
++ : | |
++ LAYOUT_FILE=/var/lib/rear/layout/disklayout.conf | |
++ LAYOUT_DEPS=/var/lib/rear/layout/diskdeps.conf | |
++ LAYOUT_TODO=/var/lib/rear/layout/disktodo.conf | |
++ : | |
++ : | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:33 Including layout/save/GNU/Linux/20_partition_layout.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/20_partition_layout.sh | |
++ Log 'Saving disk partitions.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2012-11-08 12:57:34 Saving disk partitions.' | |
2012-11-08 12:57:34 Saving disk partitions. | |
++ devices=() | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename '/sys/block/cciss!c0d0' | |
+++ get_device_name '/sys/block/cciss!c0d0' | |
+++ local 'name=/sys/block/cciss!c0d0' | |
+++ name='cciss!c0d0' | |
+++ '[' -e /dev/cciss/c0d0 ']' | |
+++ echo cciss/c0d0 | |
+++ return 0 | |
++ devname=cciss/c0d0 | |
+++ get_disk_size 'cciss!c0d0' | |
+++ local 'disk_name=cciss!c0d0' | |
++++ get_block_size 'cciss!c0d0' | |
++++ '[' -r '/sys/block/cciss!c0d0/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c0d0/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c0d0, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=398452800 | |
+++ local disk_size=204007833600 | |
+++ echo 204007833600 | |
++ devsize=204007833600 | |
+++ parted -s /dev/cciss/c0d0 print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype=msdos | |
++ echo 'disk /dev/cciss/c0d0 204007833600 msdos' | |
++ devices=("${devices[@]}" "$devname") | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename '/sys/block/cciss!c0d1' | |
+++ get_device_name '/sys/block/cciss!c0d1' | |
+++ local 'name=/sys/block/cciss!c0d1' | |
+++ name='cciss!c0d1' | |
+++ '[' -e /dev/cciss/c0d1 ']' | |
+++ echo cciss/c0d1 | |
+++ return 0 | |
++ devname=cciss/c0d1 | |
+++ get_disk_size 'cciss!c0d1' | |
+++ local 'disk_name=cciss!c0d1' | |
++++ get_block_size 'cciss!c0d1' | |
++++ '[' -r '/sys/block/cciss!c0d1/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c0d1/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c0d1, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=773290524 | |
+++ local disk_size=395924748288 | |
+++ echo 395924748288 | |
++ devsize=395924748288 | |
+++ parted -s /dev/cciss/c0d1 print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype=msdos | |
++ echo 'disk /dev/cciss/c0d1 395924748288 msdos' | |
++ devices=("${devices[@]}" "$devname") | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename '/sys/block/cciss!c1d0' | |
+++ get_device_name '/sys/block/cciss!c1d0' | |
+++ local 'name=/sys/block/cciss!c1d0' | |
+++ name='cciss!c1d0' | |
+++ '[' -e /dev/cciss/c1d0 ']' | |
+++ echo cciss/c1d0 | |
+++ return 0 | |
++ devname=cciss/c1d0 | |
+++ get_disk_size 'cciss!c1d0' | |
+++ local 'disk_name=cciss!c1d0' | |
++++ get_block_size 'cciss!c1d0' | |
++++ '[' -r '/sys/block/cciss!c1d0/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c1d0/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c1d0, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=0 | |
+++ local disk_size=0 | |
+++ echo 0 | |
++ devsize=0 | |
+++ parted -s /dev/cciss/c1d0 print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/cciss/c1d0 0 ' | |
++ devices=("${devices[@]}" "$devname") | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename '/sys/block/cciss!c2d0' | |
+++ get_device_name '/sys/block/cciss!c2d0' | |
+++ local 'name=/sys/block/cciss!c2d0' | |
+++ name='cciss!c2d0' | |
+++ '[' -e /dev/cciss/c2d0 ']' | |
+++ echo cciss/c2d0 | |
+++ return 0 | |
++ devname=cciss/c2d0 | |
+++ get_disk_size 'cciss!c2d0' | |
+++ local 'disk_name=cciss!c2d0' | |
++++ get_block_size 'cciss!c2d0' | |
++++ '[' -r '/sys/block/cciss!c2d0/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c2d0/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c2d0, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=398452800 | |
+++ local disk_size=204007833600 | |
+++ echo 204007833600 | |
++ devsize=204007833600 | |
+++ parted -s /dev/cciss/c2d0 print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype=msdos | |
++ echo 'disk /dev/cciss/c2d0 204007833600 msdos' | |
++ devices=("${devices[@]}" "$devname") | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename '/sys/block/cciss!c2d1' | |
+++ get_device_name '/sys/block/cciss!c2d1' | |
+++ local 'name=/sys/block/cciss!c2d1' | |
+++ name='cciss!c2d1' | |
+++ '[' -e /dev/cciss/c2d1 ']' | |
+++ echo cciss/c2d1 | |
+++ return 0 | |
++ devname=cciss/c2d1 | |
+++ get_disk_size 'cciss!c2d1' | |
+++ local 'disk_name=cciss!c2d1' | |
++++ get_block_size 'cciss!c2d1' | |
++++ '[' -r '/sys/block/cciss!c2d1/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c2d1/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c2d1, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=773290524 | |
+++ local disk_size=395924748288 | |
+++ echo 395924748288 | |
++ devsize=395924748288 | |
+++ parted -s /dev/cciss/c2d1 print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype=msdos | |
++ echo 'disk /dev/cciss/c2d1 395924748288 msdos' | |
++ devices=("${devices[@]}" "$devname") | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/dm-0 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/dm-1 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/dm-2 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/dm-3 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/dm-4 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/dm-5 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/dm-6 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/dm-7 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/md0 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/md1 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/md2 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/md3 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram0 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram1 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram10 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram11 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram12 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram13 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram14 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram15 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram2 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram3 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram4 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram5 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram6 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram7 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram8 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/ram9 | |
++ for disk in '/sys/block/*' | |
++ case $(basename $disk) in | |
+++ basename /sys/block/sr0 | |
+++ get_version parted -v | |
+++ parted -v | |
+++ sed -rn 's/^[^0-9\.]*([0-9]+\.[-0-9a-z\.]+).*$/\1/p' | |
+++ head -1 | |
++ parted_version=1.8.1 | |
++ '[' 1.8.1 ']' | |
++ BugIfError 'Function get_version could not detect parted version.' | |
++ (( 0 != 0 )) | |
++ version_newer 1.8.1 1.6.23 | |
++ v1list=(${1//[-.]/ }) | |
++ local v1list | |
++ v2list=(${2//[-.]/ }) | |
++ local v2list | |
++ local max=3 | |
++ (( 3 < 3 )) | |
++ local pos | |
+++ seq 0 2 | |
++ for pos in '$(seq 0 $(( max -1 )))' | |
++ (( 10#01 < 10#01 )) | |
++ (( 10#01 > 10#01 )) | |
++ for pos in '$(seq 0 $(( max -1 )))' | |
++ (( 10#08 < 10#06 )) | |
++ (( 10#08 > 10#06 )) | |
++ return 0 | |
++ for device in '"${devices[@]}"' | |
++ '[' -e /dev/cciss/c0d0 ']' | |
+++ get_sysfs_name cciss/c0d0 | |
+++ local name=cciss/c0d0 | |
+++ name=cciss/c0d0 | |
+++ '[' -e '/sys/block/cciss!c0d0' ']' | |
+++ echo 'cciss!c0d0' | |
+++ return 0 | |
++ sysfsname='cciss!c0d0' | |
+++ get_block_size 'cciss!c0d0' | |
+++ '[' -r '/sys/block/cciss!c0d0/queue/logical_block_size' ']' | |
+++ echo 512 | |
++ blocksize=512 | |
++ '[' -z '' ']' | |
++ numberfield=number | |
++ parted -s /dev/cciss/c0d0 print | |
+++ grep -E 'Partition Table|Disk label' /tmp/rear.yFIcNoexNlK8305/tmp/parted | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype=msdos | |
++ case $disktype in | |
++ typefield=type | |
+++ grep Flags /tmp/rear.yFIcNoexNlK8305/tmp/parted | |
++ init_columns 'Number Start End Size Type File system Flags ' | |
++ local 'line=Number Start End Size Type File system Flags ' | |
++ columns= | |
++ local word= | |
++ local wasspace= | |
++ local len=63 | |
++ local i=0 | |
++ '[' 0 -lt 63 ']' | |
++ local char=N | |
++ '[' -n '' ']' | |
++ word=N | |
++ '[' N = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 1 -lt 63 ']' | |
++ local char=u | |
++ '[' -n '' ']' | |
++ word=Nu | |
++ '[' u = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 2 -lt 63 ']' | |
++ local char=m | |
++ '[' -n '' ']' | |
++ word=Num | |
++ '[' m = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 3 -lt 63 ']' | |
++ local char=b | |
++ '[' -n '' ']' | |
++ word=Numb | |
++ '[' b = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 4 -lt 63 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=Numbe | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 5 -lt 63 ']' | |
++ local char=r | |
++ '[' -n '' ']' | |
++ word=Number | |
++ '[' r = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 6 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Number ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 7 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Number ' ']' | |
++ let start=7-7 | |
+++ echo 'Number ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='number ' | |
++ columns='number=0;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 8 -lt 63 ']' | |
++ local char=S | |
++ '[' -n yes ']' | |
++ '[' S = ' ' ']' | |
++ word=S | |
++ '[' S = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 9 -lt 63 ']' | |
++ local char=t | |
++ '[' -n '' ']' | |
++ word=St | |
++ '[' t = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 10 -lt 63 ']' | |
++ local char=a | |
++ '[' -n '' ']' | |
++ word=Sta | |
++ '[' a = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 11 -lt 63 ']' | |
++ local char=r | |
++ '[' -n '' ']' | |
++ word=Star | |
++ '[' r = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 12 -lt 63 ']' | |
++ local char=t | |
++ '[' -n '' ']' | |
++ word=Start | |
++ '[' t = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 13 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Start ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 14 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Start ' ']' | |
++ let start=14-6 | |
+++ echo 'Start ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='start ' | |
++ columns='number=0;start=8;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 15 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 16 -lt 63 ']' | |
++ local char=E | |
++ '[' -n yes ']' | |
++ '[' E = ' ' ']' | |
++ word=E | |
++ '[' E = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 17 -lt 63 ']' | |
++ local char=n | |
++ '[' -n '' ']' | |
++ word=En | |
++ '[' n = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 18 -lt 63 ']' | |
++ local char=d | |
++ '[' -n '' ']' | |
++ word=End | |
++ '[' d = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 19 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='End ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 20 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'End ' ']' | |
++ let start=20-4 | |
+++ echo 'End ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='end ' | |
++ columns='number=0;start=8;end=16;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 21 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 22 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 23 -lt 63 ']' | |
++ local char=S | |
++ '[' -n yes ']' | |
++ '[' S = ' ' ']' | |
++ word=S | |
++ '[' S = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 24 -lt 63 ']' | |
++ local char=i | |
++ '[' -n '' ']' | |
++ word=Si | |
++ '[' i = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 25 -lt 63 ']' | |
++ local char=z | |
++ '[' -n '' ']' | |
++ word=Siz | |
++ '[' z = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 26 -lt 63 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=Size | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 27 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Size ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 28 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Size ' ']' | |
++ let start=28-5 | |
+++ echo 'Size ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='size ' | |
++ columns='number=0;start=8;end=16;size=23;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 29 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 30 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 31 -lt 63 ']' | |
++ local char=T | |
++ '[' -n yes ']' | |
++ '[' T = ' ' ']' | |
++ word=T | |
++ '[' T = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 32 -lt 63 ']' | |
++ local char=y | |
++ '[' -n '' ']' | |
++ word=Ty | |
++ '[' y = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 33 -lt 63 ']' | |
++ local char=p | |
++ '[' -n '' ']' | |
++ word=Typ | |
++ '[' p = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 34 -lt 63 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=Type | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 35 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Type ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 36 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Type ' ']' | |
++ let start=36-5 | |
+++ echo 'Type ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='type ' | |
++ columns='number=0;start=8;end=16;size=23;type=31;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 37 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 38 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 39 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 40 -lt 63 ']' | |
++ local char=F | |
++ '[' -n yes ']' | |
++ '[' F = ' ' ']' | |
++ word=F | |
++ '[' F = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 41 -lt 63 ']' | |
++ local char=i | |
++ '[' -n '' ']' | |
++ word=Fi | |
++ '[' i = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 42 -lt 63 ']' | |
++ local char=l | |
++ '[' -n '' ']' | |
++ word=Fil | |
++ '[' l = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 43 -lt 63 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=File | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 44 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='File ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 45 -lt 63 ']' | |
++ local char=s | |
++ '[' -n yes ']' | |
++ '[' s = ' ' ']' | |
++ word='File s' | |
++ '[' s = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 46 -lt 63 ']' | |
++ local char=y | |
++ '[' -n '' ']' | |
++ word='File sy' | |
++ '[' y = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 47 -lt 63 ']' | |
++ local char=s | |
++ '[' -n '' ']' | |
++ word='File sys' | |
++ '[' s = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 48 -lt 63 ']' | |
++ local char=t | |
++ '[' -n '' ']' | |
++ word='File syst' | |
++ '[' t = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 49 -lt 63 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word='File syste' | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 50 -lt 63 ']' | |
++ local char=m | |
++ '[' -n '' ']' | |
++ word='File system' | |
++ '[' m = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 51 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='File system ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 52 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'File system ' ']' | |
++ let start=52-12 | |
+++ echo 'File system ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='file system ' | |
++ columns='number=0;start=8;end=16;size=23;type=31;file system=40;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 53 -lt 63 ']' | |
++ local char=F | |
++ '[' -n yes ']' | |
++ '[' F = ' ' ']' | |
++ word=F | |
++ '[' F = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 54 -lt 63 ']' | |
++ local char=l | |
++ '[' -n '' ']' | |
++ word=Fl | |
++ '[' l = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 55 -lt 63 ']' | |
++ local char=a | |
++ '[' -n '' ']' | |
++ word=Fla | |
++ '[' a = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 56 -lt 63 ']' | |
++ local char=g | |
++ '[' -n '' ']' | |
++ word=Flag | |
++ '[' g = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 57 -lt 63 ']' | |
++ local char=s | |
++ '[' -n '' ']' | |
++ word=Flags | |
++ '[' s = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 58 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Flags ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 59 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Flags ' ']' | |
++ let start=59-6 | |
+++ echo 'Flags ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='flags ' | |
++ columns='number=0;start=8;end=16;size=23;type=31;file system=40;flags=53;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 60 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 61 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 62 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 63 -lt 63 ']' | |
++ let start=63-0 | |
+++ echo '' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word= | |
++ columns='number=0;start=8;end=16;size=23;type=31;file system=40;flags=53;=63;' | |
++ read line | |
+++ grep -E '^[ ]*[0-9]' /tmp/rear.yFIcNoexNlK8305/tmp/parted | |
++ number=1 | |
++ '[' 1 -lt 10 ']' | |
++ line=' 1 32.3kB 206MB 206MB primary ext3 boot, raid' | |
+++ get_columns ' 1 32.3kB 206MB 206MB primary ext3 boot, raid' number | |
+++ local 'line= 1 32.3kB 206MB 206MB primary ext3 boot, raid' | |
+++ shift | |
+++ local headers=number | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start number | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = number ']' | |
++++ echo 0 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=0 | |
+++ tr -d ' ' | |
++++ get_column_size number | |
+++ tr -d ';' | |
+++++ get_column_start number | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = number ']' | |
+++++ echo 0 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=0 | |
+++++ get_next_header number | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = number ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = number ']' | |
+++++ echo start | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader=start | |
++++ '[' -z start ']' | |
+++++ get_column_start start | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = start ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = start ']' | |
+++++ echo 8 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=8 | |
++++ let local size=8-0 | |
++++ echo 8 | |
+++ local size=8 | |
+++ value=' 1 ;' | |
+++ echo ' 1 ;' | |
++ pnumber=1 | |
+++ get_columns ' 1 32.3kB 206MB 206MB primary ext3 boot, raid' type | |
+++ local 'line= 1 32.3kB 206MB 206MB primary ext3 boot, raid' | |
+++ shift | |
+++ local headers=type | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start type | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
+++ tr -d ' ' | |
++++ local hstart=0 | |
++++ '[' number = type ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
+++ tr -d ';' | |
++++ '[' start = type ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = type ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = type ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=31 | |
++++ '[' type = type ']' | |
++++ echo 31 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=31 | |
++++ get_column_size type | |
+++++ get_column_start type | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = type ']' | |
+++++ echo 31 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=31 | |
+++++ get_next_header type | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = type ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = type ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = type ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = type ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' size = type ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' type = type ']' | |
+++++ echo 'file system' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local 'nextheader=file system' | |
++++ '[' -z 'file system' ']' | |
+++++ get_column_start 'file system' | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' 'file system' = 'file system' ']' | |
+++++ echo 40 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=40 | |
++++ let local size=40-31 | |
++++ echo 9 | |
+++ local size=9 | |
+++ value='primary ;' | |
+++ echo 'primary ;' | |
++ ptype=primary | |
+++ get_columns ' 1 32.3kB 206MB 206MB primary ext3 boot, raid' flags | |
+++ local 'line= 1 32.3kB 206MB 206MB primary ext3 boot, raid' | |
+++ shift | |
+++ local headers=flags | |
+++ local value= | |
+++ for header in '$headers' | |
+++ tr -d , | |
+++ tr -d ';' | |
++++ get_column_start flags | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=31 | |
++++ '[' type = flags ']' | |
++++ for pair in '$columns' | |
++++ local 'header=file system' | |
++++ local hstart=40 | |
++++ '[' 'file system' = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=flags | |
++++ local hstart=53 | |
++++ '[' flags = flags ']' | |
++++ echo 53 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=53 | |
++++ get_column_size flags | |
+++++ get_column_start flags | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' 'file system' = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=53 | |
+++++ '[' flags = flags ']' | |
+++++ echo 53 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=53 | |
+++++ get_next_header flags | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = flags ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = flags ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = flags ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = flags ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' size = flags ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' type = flags ']' | |
+++++ previous='file system' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=53 | |
+++++ '[' 'file system' = flags ']' | |
+++++ previous=flags | |
+++++ for pair in '$columns' | |
+++++ local header= | |
+++++ local hstart=63 | |
+++++ '[' flags = flags ']' | |
+++++ echo '' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader= | |
++++ '[' -z '' ']' | |
++++ echo 255 | |
++++ return 0 | |
+++ local size=255 | |
+++ value='boot, raid;' | |
+++ echo 'boot, raid;' | |
++ pflags='boot raid' | |
++ case $device in | |
++ pname=p1 | |
+++ get_disk_size 'cciss!c0d0/cciss!c0d0p1' | |
+++ local 'disk_name=cciss!c0d0/cciss!c0d0p1' | |
++++ get_block_size 'cciss!c0d0' | |
++++ '[' -r '/sys/block/cciss!c0d0/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c0d0/cciss!c0d0p1/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c0d0/cciss!c0d0p1, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=401562 | |
+++ local disk_size=205599744 | |
+++ echo 205599744 | |
++ psize=205599744 | |
++ pstart=63 | |
++ '[' -z 63 ']' | |
++ let 'pstart=63*512' | |
++ flags= | |
++ for flag in '$pflags' | |
++ case $flag in | |
++ flags=boot, | |
++ for flag in '$pflags' | |
++ case $flag in | |
++ flags=boot,raid, | |
++ '[' -z boot,raid, ']' | |
++ echo 'part /dev/cciss/c0d0 205599744 32256 primary boot,raid /dev/cciss/c0d0p1' | |
++ read line | |
++ number=2 | |
++ '[' 2 -lt 10 ']' | |
++ line=' 2 206MB 195GB 195GB primary raid' | |
+++ get_columns ' 2 206MB 195GB 195GB primary raid' number | |
+++ local 'line= 2 206MB 195GB 195GB primary raid' | |
+++ shift | |
+++ local headers=number | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start number | |
+++ tr -d ' ' | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = number ']' | |
++++ echo 0 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ tr -d ';' | |
+++ local start=0 | |
++++ get_column_size number | |
+++++ get_column_start number | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = number ']' | |
+++++ echo 0 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=0 | |
+++++ get_next_header number | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = number ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = number ']' | |
+++++ echo start | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader=start | |
++++ '[' -z start ']' | |
+++++ get_column_start start | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = start ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = start ']' | |
+++++ echo 8 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=8 | |
++++ let local size=8-0 | |
++++ echo 8 | |
+++ local size=8 | |
+++ value=' 2 ;' | |
+++ echo ' 2 ;' | |
++ pnumber=2 | |
+++ get_columns ' 2 206MB 195GB 195GB primary raid' type | |
+++ local 'line= 2 206MB 195GB 195GB primary raid' | |
+++ shift | |
+++ local headers=type | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start type | |
++++ local pair | |
+++ tr -d ' ' | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = type ']' | |
+++ tr -d ';' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = type ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = type ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = type ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=31 | |
++++ '[' type = type ']' | |
++++ echo 31 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=31 | |
++++ get_column_size type | |
+++++ get_column_start type | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = type ']' | |
+++++ echo 31 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=31 | |
+++++ get_next_header type | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = type ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = type ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = type ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = type ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' size = type ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' type = type ']' | |
+++++ echo 'file system' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local 'nextheader=file system' | |
++++ '[' -z 'file system' ']' | |
+++++ get_column_start 'file system' | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' 'file system' = 'file system' ']' | |
+++++ echo 40 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=40 | |
++++ let local size=40-31 | |
++++ echo 9 | |
+++ local size=9 | |
+++ value='primary ;' | |
+++ echo 'primary ;' | |
++ ptype=primary | |
+++ get_columns ' 2 206MB 195GB 195GB primary raid' flags | |
+++ local 'line= 2 206MB 195GB 195GB primary raid' | |
+++ shift | |
+++ local headers=flags | |
+++ local value= | |
+++ for header in '$headers' | |
+++ tr -d , | |
++++ get_column_start flags | |
++++ local pair | |
++++ set_separator ';' | |
+++ tr -d ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=31 | |
++++ '[' type = flags ']' | |
++++ for pair in '$columns' | |
++++ local 'header=file system' | |
++++ local hstart=40 | |
++++ '[' 'file system' = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=flags | |
++++ local hstart=53 | |
++++ '[' flags = flags ']' | |
++++ echo 53 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=53 | |
++++ get_column_size flags | |
+++++ get_column_start flags | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' 'file system' = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=53 | |
+++++ '[' flags = flags ']' | |
+++++ echo 53 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=53 | |
+++++ get_next_header flags | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = flags ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = flags ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = flags ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = flags ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' size = flags ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' type = flags ']' | |
+++++ previous='file system' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=53 | |
+++++ '[' 'file system' = flags ']' | |
+++++ previous=flags | |
+++++ for pair in '$columns' | |
+++++ local header= | |
+++++ local hstart=63 | |
+++++ '[' flags = flags ']' | |
+++++ echo '' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader= | |
++++ '[' -z '' ']' | |
++++ echo 255 | |
++++ return 0 | |
+++ local size=255 | |
+++ value='raid;' | |
+++ echo 'raid;' | |
++ pflags=raid | |
++ case $device in | |
++ pname=p2 | |
+++ get_disk_size 'cciss!c0d0/cciss!c0d0p2' | |
+++ local 'disk_name=cciss!c0d0/cciss!c0d0p2' | |
++++ get_block_size 'cciss!c0d0' | |
++++ '[' -r '/sys/block/cciss!c0d0/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c0d0/cciss!c0d0p2/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c0d0/cciss!c0d0p2, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=381254580 | |
+++ local disk_size=195202344960 | |
+++ echo 195202344960 | |
++ psize=195202344960 | |
++ pstart=401625 | |
++ '[' -z 401625 ']' | |
++ let 'pstart=401625*512' | |
++ flags= | |
++ for flag in '$pflags' | |
++ case $flag in | |
++ flags=raid, | |
++ '[' -z raid, ']' | |
++ echo 'part /dev/cciss/c0d0 195202344960 205632000 primary raid /dev/cciss/c0d0p2' | |
++ read line | |
++ number=3 | |
++ '[' 3 -lt 10 ']' | |
++ line=' 3 195GB 204GB 8587MB primary linux-swap raid' | |
+++ get_columns ' 3 195GB 204GB 8587MB primary linux-swap raid' number | |
+++ tr -d ' ' | |
+++ local 'line= 3 195GB 204GB 8587MB primary linux-swap raid' | |
+++ shift | |
+++ local headers=number | |
+++ local value= | |
+++ for header in '$headers' | |
+++ tr -d ';' | |
++++ get_column_start number | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = number ']' | |
++++ echo 0 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=0 | |
++++ get_column_size number | |
+++++ get_column_start number | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = number ']' | |
+++++ echo 0 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=0 | |
+++++ get_next_header number | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = number ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = number ']' | |
+++++ echo start | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader=start | |
++++ '[' -z start ']' | |
+++++ get_column_start start | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = start ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = start ']' | |
+++++ echo 8 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=8 | |
++++ let local size=8-0 | |
++++ echo 8 | |
+++ local size=8 | |
+++ value=' 3 ;' | |
+++ echo ' 3 ;' | |
++ pnumber=3 | |
+++ get_columns ' 3 195GB 204GB 8587MB primary linux-swap raid' type | |
+++ local 'line= 3 195GB 204GB 8587MB primary linux-swap raid' | |
+++ shift | |
+++ local headers=type | |
+++ tr -d ' ' | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start type | |
+++ tr -d ';' | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = type ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = type ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = type ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = type ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=31 | |
++++ '[' type = type ']' | |
++++ echo 31 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=31 | |
++++ get_column_size type | |
+++++ get_column_start type | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = type ']' | |
+++++ echo 31 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=31 | |
+++++ get_next_header type | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = type ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = type ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = type ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = type ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' size = type ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' type = type ']' | |
+++++ echo 'file system' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local 'nextheader=file system' | |
++++ '[' -z 'file system' ']' | |
+++++ get_column_start 'file system' | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' 'file system' = 'file system' ']' | |
+++++ echo 40 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=40 | |
++++ let local size=40-31 | |
++++ echo 9 | |
+++ local size=9 | |
+++ value='primary ;' | |
+++ echo 'primary ;' | |
++ ptype=primary | |
+++ tr -d , | |
+++ get_columns ' 3 195GB 204GB 8587MB primary linux-swap raid' flags | |
+++ tr -d ';' | |
+++ local 'line= 3 195GB 204GB 8587MB primary linux-swap raid' | |
+++ shift | |
+++ local headers=flags | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start flags | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=31 | |
++++ '[' type = flags ']' | |
++++ for pair in '$columns' | |
++++ local 'header=file system' | |
++++ local hstart=40 | |
++++ '[' 'file system' = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=flags | |
++++ local hstart=53 | |
++++ '[' flags = flags ']' | |
++++ echo 53 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=53 | |
++++ get_column_size flags | |
+++++ get_column_start flags | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' 'file system' = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=53 | |
+++++ '[' flags = flags ']' | |
+++++ echo 53 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=53 | |
+++++ get_next_header flags | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = flags ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = flags ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = flags ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = flags ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' size = flags ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' type = flags ']' | |
+++++ previous='file system' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=53 | |
+++++ '[' 'file system' = flags ']' | |
+++++ previous=flags | |
+++++ for pair in '$columns' | |
+++++ local header= | |
+++++ local hstart=63 | |
+++++ '[' flags = flags ']' | |
+++++ echo '' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader= | |
++++ '[' -z '' ']' | |
++++ echo 255 | |
++++ return 0 | |
+++ local size=255 | |
+++ value='raid;' | |
+++ echo 'raid;' | |
++ pflags=raid | |
++ case $device in | |
++ pname=p3 | |
+++ get_disk_size 'cciss!c0d0/cciss!c0d0p3' | |
+++ local 'disk_name=cciss!c0d0/cciss!c0d0p3' | |
++++ get_block_size 'cciss!c0d0' | |
++++ '[' -r '/sys/block/cciss!c0d0/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c0d0/cciss!c0d0p3/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c0d0/cciss!c0d0p3, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=16771860 | |
+++ local disk_size=8587192320 | |
+++ echo 8587192320 | |
++ psize=8587192320 | |
++ pstart=381656205 | |
++ '[' -z 381656205 ']' | |
++ let 'pstart=381656205*512' | |
++ flags= | |
++ for flag in '$pflags' | |
++ case $flag in | |
++ flags=raid, | |
++ '[' -z raid, ']' | |
++ echo 'part /dev/cciss/c0d0 8587192320 195407976960 primary raid /dev/cciss/c0d0p3' | |
++ read line | |
++ for device in '"${devices[@]}"' | |
++ '[' -e /dev/cciss/c0d1 ']' | |
+++ get_sysfs_name cciss/c0d1 | |
+++ local name=cciss/c0d1 | |
+++ name=cciss/c0d1 | |
+++ '[' -e '/sys/block/cciss!c0d1' ']' | |
+++ echo 'cciss!c0d1' | |
+++ return 0 | |
++ sysfsname='cciss!c0d1' | |
+++ get_block_size 'cciss!c0d1' | |
+++ '[' -r '/sys/block/cciss!c0d1/queue/logical_block_size' ']' | |
+++ echo 512 | |
++ blocksize=512 | |
++ '[' -z '' ']' | |
++ numberfield=number | |
++ parted -s /dev/cciss/c0d1 print | |
+++ grep -E 'Partition Table|Disk label' /tmp/rear.yFIcNoexNlK8305/tmp/parted | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype=msdos | |
++ case $disktype in | |
++ typefield=type | |
+++ grep Flags /tmp/rear.yFIcNoexNlK8305/tmp/parted | |
++ init_columns 'Number Start End Size Type File system Flags ' | |
++ local 'line=Number Start End Size Type File system Flags ' | |
++ columns= | |
++ local word= | |
++ local wasspace= | |
++ local len=62 | |
++ local i=0 | |
++ '[' 0 -lt 62 ']' | |
++ local char=N | |
++ '[' -n '' ']' | |
++ word=N | |
++ '[' N = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 1 -lt 62 ']' | |
++ local char=u | |
++ '[' -n '' ']' | |
++ word=Nu | |
++ '[' u = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 2 -lt 62 ']' | |
++ local char=m | |
++ '[' -n '' ']' | |
++ word=Num | |
++ '[' m = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 3 -lt 62 ']' | |
++ local char=b | |
++ '[' -n '' ']' | |
++ word=Numb | |
++ '[' b = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 4 -lt 62 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=Numbe | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 5 -lt 62 ']' | |
++ local char=r | |
++ '[' -n '' ']' | |
++ word=Number | |
++ '[' r = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 6 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Number ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 7 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Number ' ']' | |
++ let start=7-7 | |
+++ echo 'Number ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='number ' | |
++ columns='number=0;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 8 -lt 62 ']' | |
++ local char=S | |
++ '[' -n yes ']' | |
++ '[' S = ' ' ']' | |
++ word=S | |
++ '[' S = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 9 -lt 62 ']' | |
++ local char=t | |
++ '[' -n '' ']' | |
++ word=St | |
++ '[' t = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 10 -lt 62 ']' | |
++ local char=a | |
++ '[' -n '' ']' | |
++ word=Sta | |
++ '[' a = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 11 -lt 62 ']' | |
++ local char=r | |
++ '[' -n '' ']' | |
++ word=Star | |
++ '[' r = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 12 -lt 62 ']' | |
++ local char=t | |
++ '[' -n '' ']' | |
++ word=Start | |
++ '[' t = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 13 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Start ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 14 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Start ' ']' | |
++ let start=14-6 | |
+++ echo 'Start ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='start ' | |
++ columns='number=0;start=8;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 15 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 16 -lt 62 ']' | |
++ local char=E | |
++ '[' -n yes ']' | |
++ '[' E = ' ' ']' | |
++ word=E | |
++ '[' E = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 17 -lt 62 ']' | |
++ local char=n | |
++ '[' -n '' ']' | |
++ word=En | |
++ '[' n = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 18 -lt 62 ']' | |
++ local char=d | |
++ '[' -n '' ']' | |
++ word=End | |
++ '[' d = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 19 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='End ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 20 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'End ' ']' | |
++ let start=20-4 | |
+++ echo 'End ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='end ' | |
++ columns='number=0;start=8;end=16;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 21 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 22 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 23 -lt 62 ']' | |
++ local char=S | |
++ '[' -n yes ']' | |
++ '[' S = ' ' ']' | |
++ word=S | |
++ '[' S = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 24 -lt 62 ']' | |
++ local char=i | |
++ '[' -n '' ']' | |
++ word=Si | |
++ '[' i = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 25 -lt 62 ']' | |
++ local char=z | |
++ '[' -n '' ']' | |
++ word=Siz | |
++ '[' z = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 26 -lt 62 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=Size | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 27 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Size ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 28 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Size ' ']' | |
++ let start=28-5 | |
+++ echo 'Size ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='size ' | |
++ columns='number=0;start=8;end=16;size=23;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 29 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 30 -lt 62 ']' | |
++ local char=T | |
++ '[' -n yes ']' | |
++ '[' T = ' ' ']' | |
++ word=T | |
++ '[' T = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 31 -lt 62 ']' | |
++ local char=y | |
++ '[' -n '' ']' | |
++ word=Ty | |
++ '[' y = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 32 -lt 62 ']' | |
++ local char=p | |
++ '[' -n '' ']' | |
++ word=Typ | |
++ '[' p = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 33 -lt 62 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=Type | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 34 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Type ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 35 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Type ' ']' | |
++ let start=35-5 | |
+++ echo 'Type ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='type ' | |
++ columns='number=0;start=8;end=16;size=23;type=30;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 36 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 37 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 38 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 39 -lt 62 ']' | |
++ local char=F | |
++ '[' -n yes ']' | |
++ '[' F = ' ' ']' | |
++ word=F | |
++ '[' F = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 40 -lt 62 ']' | |
++ local char=i | |
++ '[' -n '' ']' | |
++ word=Fi | |
++ '[' i = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 41 -lt 62 ']' | |
++ local char=l | |
++ '[' -n '' ']' | |
++ word=Fil | |
++ '[' l = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 42 -lt 62 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=File | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 43 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='File ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 44 -lt 62 ']' | |
++ local char=s | |
++ '[' -n yes ']' | |
++ '[' s = ' ' ']' | |
++ word='File s' | |
++ '[' s = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 45 -lt 62 ']' | |
++ local char=y | |
++ '[' -n '' ']' | |
++ word='File sy' | |
++ '[' y = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 46 -lt 62 ']' | |
++ local char=s | |
++ '[' -n '' ']' | |
++ word='File sys' | |
++ '[' s = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 47 -lt 62 ']' | |
++ local char=t | |
++ '[' -n '' ']' | |
++ word='File syst' | |
++ '[' t = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 48 -lt 62 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word='File syste' | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 49 -lt 62 ']' | |
++ local char=m | |
++ '[' -n '' ']' | |
++ word='File system' | |
++ '[' m = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 50 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='File system ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 51 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'File system ' ']' | |
++ let start=51-12 | |
+++ echo 'File system ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='file system ' | |
++ columns='number=0;start=8;end=16;size=23;type=30;file system=39;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 52 -lt 62 ']' | |
++ local char=F | |
++ '[' -n yes ']' | |
++ '[' F = ' ' ']' | |
++ word=F | |
++ '[' F = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 53 -lt 62 ']' | |
++ local char=l | |
++ '[' -n '' ']' | |
++ word=Fl | |
++ '[' l = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 54 -lt 62 ']' | |
++ local char=a | |
++ '[' -n '' ']' | |
++ word=Fla | |
++ '[' a = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 55 -lt 62 ']' | |
++ local char=g | |
++ '[' -n '' ']' | |
++ word=Flag | |
++ '[' g = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 56 -lt 62 ']' | |
++ local char=s | |
++ '[' -n '' ']' | |
++ word=Flags | |
++ '[' s = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 57 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Flags ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 58 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Flags ' ']' | |
++ let start=58-6 | |
+++ echo 'Flags ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='flags ' | |
++ columns='number=0;start=8;end=16;size=23;type=30;file system=39;flags=52;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 59 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 60 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 61 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 62 -lt 62 ']' | |
++ let start=62-0 | |
+++ echo '' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word= | |
++ columns='number=0;start=8;end=16;size=23;type=30;file system=39;flags=52;=62;' | |
+++ grep -E '^[ ]*[0-9]' /tmp/rear.yFIcNoexNlK8305/tmp/parted | |
++ read line | |
++ number=1 | |
++ '[' 1 -lt 10 ']' | |
++ line=' 1 32.3kB 396GB 396GB primary boot, raid' | |
+++ get_columns ' 1 32.3kB 396GB 396GB primary boot, raid' number | |
+++ local 'line= 1 32.3kB 396GB 396GB primary boot, raid' | |
+++ shift | |
+++ tr -d ' ' | |
+++ local headers=number | |
+++ local value= | |
+++ for header in '$headers' | |
+++ tr -d ';' | |
++++ get_column_start number | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = number ']' | |
++++ echo 0 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=0 | |
++++ get_column_size number | |
+++++ get_column_start number | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = number ']' | |
+++++ echo 0 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=0 | |
+++++ get_next_header number | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = number ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = number ']' | |
+++++ echo start | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader=start | |
++++ '[' -z start ']' | |
+++++ get_column_start start | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = start ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = start ']' | |
+++++ echo 8 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=8 | |
++++ let local size=8-0 | |
++++ echo 8 | |
+++ local size=8 | |
+++ value=' 1 ;' | |
+++ echo ' 1 ;' | |
++ pnumber=1 | |
+++ get_columns ' 1 32.3kB 396GB 396GB primary boot, raid' type | |
+++ local 'line= 1 32.3kB 396GB 396GB primary boot, raid' | |
+++ shift | |
+++ local headers=type | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start type | |
++++ local pair | |
++++ set_separator ';' | |
+++ tr -d ' ' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = type ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = type ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = type ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = type ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=30 | |
++++ '[' type = type ']' | |
++++ echo 30 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=30 | |
++++ get_column_size type | |
+++++ get_column_start type | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=30 | |
+++++ '[' type = type ']' | |
+++++ echo 30 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=30 | |
+++++ get_next_header type | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = type ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = type ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = type ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = type ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=30 | |
+++++ '[' size = type ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=39 | |
+++++ '[' type = type ']' | |
+++++ echo 'file system' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local 'nextheader=file system' | |
++++ '[' -z 'file system' ']' | |
+++++ get_column_start 'file system' | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=30 | |
+++++ '[' type = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=39 | |
+++++ '[' 'file system' = 'file system' ']' | |
+++++ echo 39 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=39 | |
++++ let local size=39-30 | |
++++ echo 9 | |
+++ local size=9 | |
+++ value='primary ;' | |
+++ echo 'primary ;' | |
++ ptype=primary | |
+++ get_columns ' 1 32.3kB 396GB 396GB primary boot, raid' flags | |
+++ local 'line= 1 32.3kB 396GB 396GB primary boot, raid' | |
+++ shift | |
+++ local headers=flags | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start flags | |
+++ tr -d , | |
+++ tr -d ';' | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=30 | |
++++ '[' type = flags ']' | |
++++ for pair in '$columns' | |
++++ local 'header=file system' | |
++++ local hstart=39 | |
++++ '[' 'file system' = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=flags | |
++++ local hstart=52 | |
++++ '[' flags = flags ']' | |
++++ echo 52 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=52 | |
++++ get_column_size flags | |
+++++ get_column_start flags | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=30 | |
+++++ '[' type = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=39 | |
+++++ '[' 'file system' = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=52 | |
+++++ '[' flags = flags ']' | |
+++++ echo 52 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=52 | |
+++++ get_next_header flags | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = flags ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = flags ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = flags ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = flags ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=30 | |
+++++ '[' size = flags ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=39 | |
+++++ '[' type = flags ']' | |
+++++ previous='file system' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=52 | |
+++++ '[' 'file system' = flags ']' | |
+++++ previous=flags | |
+++++ for pair in '$columns' | |
+++++ local header= | |
+++++ local hstart=62 | |
+++++ '[' flags = flags ']' | |
+++++ echo '' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader= | |
++++ '[' -z '' ']' | |
++++ echo 255 | |
++++ return 0 | |
+++ local size=255 | |
+++ value='boot, raid;' | |
+++ echo 'boot, raid;' | |
++ pflags='boot raid' | |
++ case $device in | |
++ pname=p1 | |
+++ get_disk_size 'cciss!c0d1/cciss!c0d1p1' | |
+++ local 'disk_name=cciss!c0d1/cciss!c0d1p1' | |
++++ get_block_size 'cciss!c0d1' | |
++++ '[' -r '/sys/block/cciss!c0d1/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c0d1/cciss!c0d1p1/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c0d1/cciss!c0d1p1, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=773288712 | |
+++ local disk_size=395923820544 | |
+++ echo 395923820544 | |
++ psize=395923820544 | |
++ pstart=63 | |
++ '[' -z 63 ']' | |
++ let 'pstart=63*512' | |
++ flags= | |
++ for flag in '$pflags' | |
++ case $flag in | |
++ flags=boot, | |
++ for flag in '$pflags' | |
++ case $flag in | |
++ flags=boot,raid, | |
++ '[' -z boot,raid, ']' | |
++ echo 'part /dev/cciss/c0d1 395923820544 32256 primary boot,raid /dev/cciss/c0d1p1' | |
++ read line | |
++ for device in '"${devices[@]}"' | |
++ '[' -e /dev/cciss/c1d0 ']' | |
+++ get_sysfs_name cciss/c1d0 | |
+++ local name=cciss/c1d0 | |
+++ name=cciss/c1d0 | |
+++ '[' -e '/sys/block/cciss!c1d0' ']' | |
+++ echo 'cciss!c1d0' | |
+++ return 0 | |
++ sysfsname='cciss!c1d0' | |
+++ get_block_size 'cciss!c1d0' | |
+++ '[' -r '/sys/block/cciss!c1d0/queue/logical_block_size' ']' | |
+++ echo 512 | |
++ blocksize=512 | |
++ '[' -z '' ']' | |
++ numberfield=number | |
++ parted -s /dev/cciss/c1d0 print | |
+++ grep -E 'Partition Table|Disk label' /tmp/rear.yFIcNoexNlK8305/tmp/parted | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ case $disktype in | |
++ Log 'Unsupported disk label on cciss/c1d0.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2012-11-08 12:57:35 Unsupported disk label on cciss/c1d0.' | |
2012-11-08 12:57:35 Unsupported disk label on cciss/c1d0. | |
++ continue | |
++ for device in '"${devices[@]}"' | |
++ '[' -e /dev/cciss/c2d0 ']' | |
+++ get_sysfs_name cciss/c2d0 | |
+++ local name=cciss/c2d0 | |
+++ name=cciss/c2d0 | |
+++ '[' -e '/sys/block/cciss!c2d0' ']' | |
+++ echo 'cciss!c2d0' | |
+++ return 0 | |
++ sysfsname='cciss!c2d0' | |
+++ get_block_size 'cciss!c2d0' | |
+++ '[' -r '/sys/block/cciss!c2d0/queue/logical_block_size' ']' | |
+++ echo 512 | |
++ blocksize=512 | |
++ '[' -z '' ']' | |
++ numberfield=number | |
++ parted -s /dev/cciss/c2d0 print | |
+++ grep -E 'Partition Table|Disk label' /tmp/rear.yFIcNoexNlK8305/tmp/parted | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype=msdos | |
++ case $disktype in | |
++ typefield=type | |
+++ grep Flags /tmp/rear.yFIcNoexNlK8305/tmp/parted | |
++ init_columns 'Number Start End Size Type File system Flags ' | |
++ local 'line=Number Start End Size Type File system Flags ' | |
++ columns= | |
++ local word= | |
++ local wasspace= | |
++ local len=63 | |
++ local i=0 | |
++ '[' 0 -lt 63 ']' | |
++ local char=N | |
++ '[' -n '' ']' | |
++ word=N | |
++ '[' N = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 1 -lt 63 ']' | |
++ local char=u | |
++ '[' -n '' ']' | |
++ word=Nu | |
++ '[' u = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 2 -lt 63 ']' | |
++ local char=m | |
++ '[' -n '' ']' | |
++ word=Num | |
++ '[' m = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 3 -lt 63 ']' | |
++ local char=b | |
++ '[' -n '' ']' | |
++ word=Numb | |
++ '[' b = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 4 -lt 63 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=Numbe | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 5 -lt 63 ']' | |
++ local char=r | |
++ '[' -n '' ']' | |
++ word=Number | |
++ '[' r = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 6 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Number ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 7 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Number ' ']' | |
++ let start=7-7 | |
+++ echo 'Number ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='number ' | |
++ columns='number=0;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 8 -lt 63 ']' | |
++ local char=S | |
++ '[' -n yes ']' | |
++ '[' S = ' ' ']' | |
++ word=S | |
++ '[' S = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 9 -lt 63 ']' | |
++ local char=t | |
++ '[' -n '' ']' | |
++ word=St | |
++ '[' t = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 10 -lt 63 ']' | |
++ local char=a | |
++ '[' -n '' ']' | |
++ word=Sta | |
++ '[' a = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 11 -lt 63 ']' | |
++ local char=r | |
++ '[' -n '' ']' | |
++ word=Star | |
++ '[' r = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 12 -lt 63 ']' | |
++ local char=t | |
++ '[' -n '' ']' | |
++ word=Start | |
++ '[' t = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 13 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Start ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 14 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Start ' ']' | |
++ let start=14-6 | |
+++ echo 'Start ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='start ' | |
++ columns='number=0;start=8;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 15 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 16 -lt 63 ']' | |
++ local char=E | |
++ '[' -n yes ']' | |
++ '[' E = ' ' ']' | |
++ word=E | |
++ '[' E = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 17 -lt 63 ']' | |
++ local char=n | |
++ '[' -n '' ']' | |
++ word=En | |
++ '[' n = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 18 -lt 63 ']' | |
++ local char=d | |
++ '[' -n '' ']' | |
++ word=End | |
++ '[' d = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 19 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='End ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 20 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'End ' ']' | |
++ let start=20-4 | |
+++ echo 'End ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='end ' | |
++ columns='number=0;start=8;end=16;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 21 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 22 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 23 -lt 63 ']' | |
++ local char=S | |
++ '[' -n yes ']' | |
++ '[' S = ' ' ']' | |
++ word=S | |
++ '[' S = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 24 -lt 63 ']' | |
++ local char=i | |
++ '[' -n '' ']' | |
++ word=Si | |
++ '[' i = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 25 -lt 63 ']' | |
++ local char=z | |
++ '[' -n '' ']' | |
++ word=Siz | |
++ '[' z = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 26 -lt 63 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=Size | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 27 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Size ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 28 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Size ' ']' | |
++ let start=28-5 | |
+++ echo 'Size ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='size ' | |
++ columns='number=0;start=8;end=16;size=23;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 29 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 30 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 31 -lt 63 ']' | |
++ local char=T | |
++ '[' -n yes ']' | |
++ '[' T = ' ' ']' | |
++ word=T | |
++ '[' T = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 32 -lt 63 ']' | |
++ local char=y | |
++ '[' -n '' ']' | |
++ word=Ty | |
++ '[' y = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 33 -lt 63 ']' | |
++ local char=p | |
++ '[' -n '' ']' | |
++ word=Typ | |
++ '[' p = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 34 -lt 63 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=Type | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 35 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Type ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 36 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Type ' ']' | |
++ let start=36-5 | |
+++ echo 'Type ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='type ' | |
++ columns='number=0;start=8;end=16;size=23;type=31;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 37 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 38 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 39 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 40 -lt 63 ']' | |
++ local char=F | |
++ '[' -n yes ']' | |
++ '[' F = ' ' ']' | |
++ word=F | |
++ '[' F = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 41 -lt 63 ']' | |
++ local char=i | |
++ '[' -n '' ']' | |
++ word=Fi | |
++ '[' i = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 42 -lt 63 ']' | |
++ local char=l | |
++ '[' -n '' ']' | |
++ word=Fil | |
++ '[' l = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 43 -lt 63 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=File | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 44 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='File ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 45 -lt 63 ']' | |
++ local char=s | |
++ '[' -n yes ']' | |
++ '[' s = ' ' ']' | |
++ word='File s' | |
++ '[' s = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 46 -lt 63 ']' | |
++ local char=y | |
++ '[' -n '' ']' | |
++ word='File sy' | |
++ '[' y = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 47 -lt 63 ']' | |
++ local char=s | |
++ '[' -n '' ']' | |
++ word='File sys' | |
++ '[' s = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 48 -lt 63 ']' | |
++ local char=t | |
++ '[' -n '' ']' | |
++ word='File syst' | |
++ '[' t = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 49 -lt 63 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word='File syste' | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 50 -lt 63 ']' | |
++ local char=m | |
++ '[' -n '' ']' | |
++ word='File system' | |
++ '[' m = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 51 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='File system ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 52 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'File system ' ']' | |
++ let start=52-12 | |
+++ echo 'File system ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='file system ' | |
++ columns='number=0;start=8;end=16;size=23;type=31;file system=40;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 53 -lt 63 ']' | |
++ local char=F | |
++ '[' -n yes ']' | |
++ '[' F = ' ' ']' | |
++ word=F | |
++ '[' F = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 54 -lt 63 ']' | |
++ local char=l | |
++ '[' -n '' ']' | |
++ word=Fl | |
++ '[' l = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 55 -lt 63 ']' | |
++ local char=a | |
++ '[' -n '' ']' | |
++ word=Fla | |
++ '[' a = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 56 -lt 63 ']' | |
++ local char=g | |
++ '[' -n '' ']' | |
++ word=Flag | |
++ '[' g = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 57 -lt 63 ']' | |
++ local char=s | |
++ '[' -n '' ']' | |
++ word=Flags | |
++ '[' s = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 58 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Flags ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 59 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Flags ' ']' | |
++ let start=59-6 | |
+++ echo 'Flags ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='flags ' | |
++ columns='number=0;start=8;end=16;size=23;type=31;file system=40;flags=53;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 60 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 61 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 62 -lt 63 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 63 -lt 63 ']' | |
++ let start=63-0 | |
+++ echo '' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word= | |
++ columns='number=0;start=8;end=16;size=23;type=31;file system=40;flags=53;=63;' | |
+++ grep -E '^[ ]*[0-9]' /tmp/rear.yFIcNoexNlK8305/tmp/parted | |
++ read line | |
++ number=1 | |
++ '[' 1 -lt 10 ']' | |
++ line=' 1 32.3kB 206MB 206MB primary ext3 boot, raid' | |
+++ get_columns ' 1 32.3kB 206MB 206MB primary ext3 boot, raid' number | |
+++ local 'line= 1 32.3kB 206MB 206MB primary ext3 boot, raid' | |
+++ shift | |
+++ local headers=number | |
+++ local value= | |
+++ for header in '$headers' | |
+++ tr -d ' ' | |
+++ tr -d ';' | |
++++ get_column_start number | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = number ']' | |
++++ echo 0 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=0 | |
++++ get_column_size number | |
+++++ get_column_start number | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = number ']' | |
+++++ echo 0 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=0 | |
+++++ get_next_header number | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = number ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = number ']' | |
+++++ echo start | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader=start | |
++++ '[' -z start ']' | |
+++++ get_column_start start | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = start ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = start ']' | |
+++++ echo 8 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=8 | |
++++ let local size=8-0 | |
++++ echo 8 | |
+++ local size=8 | |
+++ value=' 1 ;' | |
+++ echo ' 1 ;' | |
++ pnumber=1 | |
+++ get_columns ' 1 32.3kB 206MB 206MB primary ext3 boot, raid' type | |
+++ local 'line= 1 32.3kB 206MB 206MB primary ext3 boot, raid' | |
+++ shift | |
+++ local headers=type | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start type | |
+++ tr -d ' ' | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
+++ tr -d ';' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = type ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = type ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = type ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = type ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=31 | |
++++ '[' type = type ']' | |
++++ echo 31 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=31 | |
++++ get_column_size type | |
+++++ get_column_start type | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = type ']' | |
+++++ echo 31 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=31 | |
+++++ get_next_header type | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = type ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = type ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = type ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = type ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' size = type ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' type = type ']' | |
+++++ echo 'file system' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local 'nextheader=file system' | |
++++ '[' -z 'file system' ']' | |
+++++ get_column_start 'file system' | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' 'file system' = 'file system' ']' | |
+++++ echo 40 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=40 | |
++++ let local size=40-31 | |
++++ echo 9 | |
+++ local size=9 | |
+++ value='primary ;' | |
+++ echo 'primary ;' | |
++ ptype=primary | |
+++ get_columns ' 1 32.3kB 206MB 206MB primary ext3 boot, raid' flags | |
+++ local 'line= 1 32.3kB 206MB 206MB primary ext3 boot, raid' | |
+++ shift | |
+++ local headers=flags | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start flags | |
+++ tr -d , | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
+++ tr -d ';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=31 | |
++++ '[' type = flags ']' | |
++++ for pair in '$columns' | |
++++ local 'header=file system' | |
++++ local hstart=40 | |
++++ '[' 'file system' = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=flags | |
++++ local hstart=53 | |
++++ '[' flags = flags ']' | |
++++ echo 53 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=53 | |
++++ get_column_size flags | |
+++++ get_column_start flags | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' 'file system' = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=53 | |
+++++ '[' flags = flags ']' | |
+++++ echo 53 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=53 | |
+++++ get_next_header flags | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = flags ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = flags ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = flags ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = flags ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' size = flags ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' type = flags ']' | |
+++++ previous='file system' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=53 | |
+++++ '[' 'file system' = flags ']' | |
+++++ previous=flags | |
+++++ for pair in '$columns' | |
+++++ local header= | |
+++++ local hstart=63 | |
+++++ '[' flags = flags ']' | |
+++++ echo '' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader= | |
++++ '[' -z '' ']' | |
++++ echo 255 | |
++++ return 0 | |
+++ local size=255 | |
+++ value='boot, raid;' | |
+++ echo 'boot, raid;' | |
++ pflags='boot raid' | |
++ case $device in | |
++ pname=p1 | |
+++ get_disk_size 'cciss!c2d0/cciss!c2d0p1' | |
+++ local 'disk_name=cciss!c2d0/cciss!c2d0p1' | |
++++ get_block_size 'cciss!c2d0' | |
++++ '[' -r '/sys/block/cciss!c2d0/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c2d0/cciss!c2d0p1/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c2d0/cciss!c2d0p1, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=401562 | |
+++ local disk_size=205599744 | |
+++ echo 205599744 | |
++ psize=205599744 | |
++ pstart=63 | |
++ '[' -z 63 ']' | |
++ let 'pstart=63*512' | |
++ flags= | |
++ for flag in '$pflags' | |
++ case $flag in | |
++ flags=boot, | |
++ for flag in '$pflags' | |
++ case $flag in | |
++ flags=boot,raid, | |
++ '[' -z boot,raid, ']' | |
++ echo 'part /dev/cciss/c2d0 205599744 32256 primary boot,raid /dev/cciss/c2d0p1' | |
++ read line | |
++ number=2 | |
++ '[' 2 -lt 10 ']' | |
++ line=' 2 206MB 195GB 195GB primary raid' | |
+++ get_columns ' 2 206MB 195GB 195GB primary raid' number | |
+++ local 'line= 2 206MB 195GB 195GB primary raid' | |
+++ shift | |
+++ local headers=number | |
+++ local value= | |
+++ for header in '$headers' | |
+++ tr -d ' ' | |
++++ get_column_start number | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = number ']' | |
++++ echo 0 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ tr -d ';' | |
+++ local start=0 | |
++++ get_column_size number | |
+++++ get_column_start number | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = number ']' | |
+++++ echo 0 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=0 | |
+++++ get_next_header number | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = number ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = number ']' | |
+++++ echo start | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader=start | |
++++ '[' -z start ']' | |
+++++ get_column_start start | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = start ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = start ']' | |
+++++ echo 8 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=8 | |
++++ let local size=8-0 | |
++++ echo 8 | |
+++ local size=8 | |
+++ value=' 2 ;' | |
+++ echo ' 2 ;' | |
++ pnumber=2 | |
+++ get_columns ' 2 206MB 195GB 195GB primary raid' type | |
+++ local 'line= 2 206MB 195GB 195GB primary raid' | |
+++ shift | |
+++ local headers=type | |
+++ tr -d ' ' | |
+++ local value= | |
+++ for header in '$headers' | |
+++ tr -d ';' | |
++++ get_column_start type | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = type ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = type ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = type ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = type ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=31 | |
++++ '[' type = type ']' | |
++++ echo 31 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=31 | |
++++ get_column_size type | |
+++++ get_column_start type | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = type ']' | |
+++++ echo 31 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=31 | |
+++++ get_next_header type | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = type ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = type ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = type ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = type ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' size = type ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' type = type ']' | |
+++++ echo 'file system' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local 'nextheader=file system' | |
++++ '[' -z 'file system' ']' | |
+++++ get_column_start 'file system' | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' 'file system' = 'file system' ']' | |
+++++ echo 40 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=40 | |
++++ let local size=40-31 | |
++++ echo 9 | |
+++ local size=9 | |
+++ value='primary ;' | |
+++ echo 'primary ;' | |
++ ptype=primary | |
+++ get_columns ' 2 206MB 195GB 195GB primary raid' flags | |
+++ local 'line= 2 206MB 195GB 195GB primary raid' | |
+++ shift | |
+++ local headers=flags | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start flags | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=31 | |
++++ '[' type = flags ']' | |
++++ for pair in '$columns' | |
++++ local 'header=file system' | |
++++ local hstart=40 | |
++++ '[' 'file system' = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=flags | |
++++ local hstart=53 | |
++++ '[' flags = flags ']' | |
++++ echo 53 | |
+++ tr -d ';' | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=53 | |
++++ get_column_size flags | |
+++++ get_column_start flags | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' 'file system' = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=53 | |
+++++ '[' flags = flags ']' | |
+++++ echo 53 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=53 | |
+++++ get_next_header flags | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = flags ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = flags ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = flags ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = flags ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' size = flags ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' type = flags ']' | |
+++++ previous='file system' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=53 | |
+++++ '[' 'file system' = flags ']' | |
+++++ previous=flags | |
+++++ for pair in '$columns' | |
+++++ local header= | |
+++++ local hstart=63 | |
+++++ '[' flags = flags ']' | |
+++++ echo '' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader= | |
++++ '[' -z '' ']' | |
++++ echo 255 | |
++++ return 0 | |
+++ local size=255 | |
+++ value='raid;' | |
+++ echo 'raid;' | |
++ pflags=raid | |
++ case $device in | |
++ pname=p2 | |
+++ get_disk_size 'cciss!c2d0/cciss!c2d0p2' | |
+++ local 'disk_name=cciss!c2d0/cciss!c2d0p2' | |
++++ get_block_size 'cciss!c2d0' | |
++++ '[' -r '/sys/block/cciss!c2d0/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c2d0/cciss!c2d0p2/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c2d0/cciss!c2d0p2, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=381254580 | |
+++ local disk_size=195202344960 | |
+++ echo 195202344960 | |
++ psize=195202344960 | |
++ pstart=401625 | |
++ '[' -z 401625 ']' | |
++ let 'pstart=401625*512' | |
++ flags= | |
++ for flag in '$pflags' | |
++ case $flag in | |
++ flags=raid, | |
++ '[' -z raid, ']' | |
++ echo 'part /dev/cciss/c2d0 195202344960 205632000 primary raid /dev/cciss/c2d0p2' | |
++ read line | |
++ number=3 | |
++ '[' 3 -lt 10 ']' | |
++ line=' 3 195GB 204GB 8587MB primary linux-swap raid' | |
+++ get_columns ' 3 195GB 204GB 8587MB primary linux-swap raid' number | |
+++ local 'line= 3 195GB 204GB 8587MB primary linux-swap raid' | |
+++ shift | |
+++ local headers=number | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start number | |
++++ local pair | |
+++ tr -d ' ' | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
+++ tr -d ';' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = number ']' | |
++++ echo 0 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=0 | |
++++ get_column_size number | |
+++++ get_column_start number | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = number ']' | |
+++++ echo 0 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=0 | |
+++++ get_next_header number | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = number ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = number ']' | |
+++++ echo start | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader=start | |
++++ '[' -z start ']' | |
+++++ get_column_start start | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = start ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = start ']' | |
+++++ echo 8 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=8 | |
++++ let local size=8-0 | |
++++ echo 8 | |
+++ local size=8 | |
+++ value=' 3 ;' | |
+++ echo ' 3 ;' | |
++ pnumber=3 | |
+++ get_columns ' 3 195GB 204GB 8587MB primary linux-swap raid' type | |
+++ local 'line= 3 195GB 204GB 8587MB primary linux-swap raid' | |
+++ shift | |
+++ local headers=type | |
+++ local value= | |
+++ for header in '$headers' | |
+++ tr -d ' ' | |
++++ get_column_start type | |
+++ tr -d ';' | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = type ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = type ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = type ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = type ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=31 | |
++++ '[' type = type ']' | |
++++ echo 31 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=31 | |
++++ get_column_size type | |
+++++ get_column_start type | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = type ']' | |
+++++ echo 31 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=31 | |
+++++ get_next_header type | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = type ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = type ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = type ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = type ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' size = type ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' type = type ']' | |
+++++ echo 'file system' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local 'nextheader=file system' | |
++++ '[' -z 'file system' ']' | |
+++++ get_column_start 'file system' | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' 'file system' = 'file system' ']' | |
+++++ echo 40 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=40 | |
++++ let local size=40-31 | |
++++ echo 9 | |
+++ local size=9 | |
+++ value='primary ;' | |
+++ echo 'primary ;' | |
++ ptype=primary | |
+++ get_columns ' 3 195GB 204GB 8587MB primary linux-swap raid' flags | |
+++ local 'line= 3 195GB 204GB 8587MB primary linux-swap raid' | |
+++ shift | |
+++ local headers=flags | |
+++ local value= | |
+++ for header in '$headers' | |
+++ tr -d , | |
++++ get_column_start flags | |
+++ tr -d ';' | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=31 | |
++++ '[' type = flags ']' | |
++++ for pair in '$columns' | |
++++ local 'header=file system' | |
++++ local hstart=40 | |
++++ '[' 'file system' = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=flags | |
++++ local hstart=53 | |
++++ '[' flags = flags ']' | |
++++ echo 53 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=53 | |
++++ get_column_size flags | |
+++++ get_column_start flags | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' type = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' 'file system' = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=53 | |
+++++ '[' flags = flags ']' | |
+++++ echo 53 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=53 | |
+++++ get_next_header flags | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = flags ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = flags ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = flags ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = flags ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=31 | |
+++++ '[' size = flags ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=40 | |
+++++ '[' type = flags ']' | |
+++++ previous='file system' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=53 | |
+++++ '[' 'file system' = flags ']' | |
+++++ previous=flags | |
+++++ for pair in '$columns' | |
+++++ local header= | |
+++++ local hstart=63 | |
+++++ '[' flags = flags ']' | |
+++++ echo '' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader= | |
++++ '[' -z '' ']' | |
++++ echo 255 | |
++++ return 0 | |
+++ local size=255 | |
+++ value='raid;' | |
+++ echo 'raid;' | |
++ pflags=raid | |
++ case $device in | |
++ pname=p3 | |
+++ get_disk_size 'cciss!c2d0/cciss!c2d0p3' | |
+++ local 'disk_name=cciss!c2d0/cciss!c2d0p3' | |
++++ get_block_size 'cciss!c2d0' | |
++++ '[' -r '/sys/block/cciss!c2d0/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c2d0/cciss!c2d0p3/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c2d0/cciss!c2d0p3, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=16771860 | |
+++ local disk_size=8587192320 | |
+++ echo 8587192320 | |
++ psize=8587192320 | |
++ pstart=381656205 | |
++ '[' -z 381656205 ']' | |
++ let 'pstart=381656205*512' | |
++ flags= | |
++ for flag in '$pflags' | |
++ case $flag in | |
++ flags=raid, | |
++ '[' -z raid, ']' | |
++ echo 'part /dev/cciss/c2d0 8587192320 195407976960 primary raid /dev/cciss/c2d0p3' | |
++ read line | |
++ for device in '"${devices[@]}"' | |
++ '[' -e /dev/cciss/c2d1 ']' | |
+++ get_sysfs_name cciss/c2d1 | |
+++ local name=cciss/c2d1 | |
+++ name=cciss/c2d1 | |
+++ '[' -e '/sys/block/cciss!c2d1' ']' | |
+++ echo 'cciss!c2d1' | |
+++ return 0 | |
++ sysfsname='cciss!c2d1' | |
+++ get_block_size 'cciss!c2d1' | |
+++ '[' -r '/sys/block/cciss!c2d1/queue/logical_block_size' ']' | |
+++ echo 512 | |
++ blocksize=512 | |
++ '[' -z '' ']' | |
++ numberfield=number | |
++ parted -s /dev/cciss/c2d1 print | |
+++ grep -E 'Partition Table|Disk label' /tmp/rear.yFIcNoexNlK8305/tmp/parted | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype=msdos | |
++ case $disktype in | |
++ typefield=type | |
+++ grep Flags /tmp/rear.yFIcNoexNlK8305/tmp/parted | |
++ init_columns 'Number Start End Size Type File system Flags ' | |
++ local 'line=Number Start End Size Type File system Flags ' | |
++ columns= | |
++ local word= | |
++ local wasspace= | |
++ local len=62 | |
++ local i=0 | |
++ '[' 0 -lt 62 ']' | |
++ local char=N | |
++ '[' -n '' ']' | |
++ word=N | |
++ '[' N = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 1 -lt 62 ']' | |
++ local char=u | |
++ '[' -n '' ']' | |
++ word=Nu | |
++ '[' u = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 2 -lt 62 ']' | |
++ local char=m | |
++ '[' -n '' ']' | |
++ word=Num | |
++ '[' m = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 3 -lt 62 ']' | |
++ local char=b | |
++ '[' -n '' ']' | |
++ word=Numb | |
++ '[' b = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 4 -lt 62 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=Numbe | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 5 -lt 62 ']' | |
++ local char=r | |
++ '[' -n '' ']' | |
++ word=Number | |
++ '[' r = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 6 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Number ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 7 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Number ' ']' | |
++ let start=7-7 | |
+++ echo 'Number ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='number ' | |
++ columns='number=0;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 8 -lt 62 ']' | |
++ local char=S | |
++ '[' -n yes ']' | |
++ '[' S = ' ' ']' | |
++ word=S | |
++ '[' S = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 9 -lt 62 ']' | |
++ local char=t | |
++ '[' -n '' ']' | |
++ word=St | |
++ '[' t = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 10 -lt 62 ']' | |
++ local char=a | |
++ '[' -n '' ']' | |
++ word=Sta | |
++ '[' a = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 11 -lt 62 ']' | |
++ local char=r | |
++ '[' -n '' ']' | |
++ word=Star | |
++ '[' r = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 12 -lt 62 ']' | |
++ local char=t | |
++ '[' -n '' ']' | |
++ word=Start | |
++ '[' t = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 13 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Start ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 14 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Start ' ']' | |
++ let start=14-6 | |
+++ echo 'Start ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='start ' | |
++ columns='number=0;start=8;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 15 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 16 -lt 62 ']' | |
++ local char=E | |
++ '[' -n yes ']' | |
++ '[' E = ' ' ']' | |
++ word=E | |
++ '[' E = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 17 -lt 62 ']' | |
++ local char=n | |
++ '[' -n '' ']' | |
++ word=En | |
++ '[' n = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 18 -lt 62 ']' | |
++ local char=d | |
++ '[' -n '' ']' | |
++ word=End | |
++ '[' d = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 19 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='End ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 20 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'End ' ']' | |
++ let start=20-4 | |
+++ echo 'End ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='end ' | |
++ columns='number=0;start=8;end=16;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 21 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 22 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 23 -lt 62 ']' | |
++ local char=S | |
++ '[' -n yes ']' | |
++ '[' S = ' ' ']' | |
++ word=S | |
++ '[' S = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 24 -lt 62 ']' | |
++ local char=i | |
++ '[' -n '' ']' | |
++ word=Si | |
++ '[' i = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 25 -lt 62 ']' | |
++ local char=z | |
++ '[' -n '' ']' | |
++ word=Siz | |
++ '[' z = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 26 -lt 62 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=Size | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 27 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Size ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 28 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Size ' ']' | |
++ let start=28-5 | |
+++ echo 'Size ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='size ' | |
++ columns='number=0;start=8;end=16;size=23;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 29 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 30 -lt 62 ']' | |
++ local char=T | |
++ '[' -n yes ']' | |
++ '[' T = ' ' ']' | |
++ word=T | |
++ '[' T = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 31 -lt 62 ']' | |
++ local char=y | |
++ '[' -n '' ']' | |
++ word=Ty | |
++ '[' y = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 32 -lt 62 ']' | |
++ local char=p | |
++ '[' -n '' ']' | |
++ word=Typ | |
++ '[' p = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 33 -lt 62 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=Type | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 34 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Type ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 35 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Type ' ']' | |
++ let start=35-5 | |
+++ echo 'Type ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='type ' | |
++ columns='number=0;start=8;end=16;size=23;type=30;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 36 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 37 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 38 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 39 -lt 62 ']' | |
++ local char=F | |
++ '[' -n yes ']' | |
++ '[' F = ' ' ']' | |
++ word=F | |
++ '[' F = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 40 -lt 62 ']' | |
++ local char=i | |
++ '[' -n '' ']' | |
++ word=Fi | |
++ '[' i = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 41 -lt 62 ']' | |
++ local char=l | |
++ '[' -n '' ']' | |
++ word=Fil | |
++ '[' l = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 42 -lt 62 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word=File | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 43 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='File ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 44 -lt 62 ']' | |
++ local char=s | |
++ '[' -n yes ']' | |
++ '[' s = ' ' ']' | |
++ word='File s' | |
++ '[' s = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 45 -lt 62 ']' | |
++ local char=y | |
++ '[' -n '' ']' | |
++ word='File sy' | |
++ '[' y = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 46 -lt 62 ']' | |
++ local char=s | |
++ '[' -n '' ']' | |
++ word='File sys' | |
++ '[' s = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 47 -lt 62 ']' | |
++ local char=t | |
++ '[' -n '' ']' | |
++ word='File syst' | |
++ '[' t = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 48 -lt 62 ']' | |
++ local char=e | |
++ '[' -n '' ']' | |
++ word='File syste' | |
++ '[' e = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 49 -lt 62 ']' | |
++ local char=m | |
++ '[' -n '' ']' | |
++ word='File system' | |
++ '[' m = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 50 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='File system ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 51 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'File system ' ']' | |
++ let start=51-12 | |
+++ echo 'File system ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='file system ' | |
++ columns='number=0;start=8;end=16;size=23;type=30;file system=39;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 52 -lt 62 ']' | |
++ local char=F | |
++ '[' -n yes ']' | |
++ '[' F = ' ' ']' | |
++ word=F | |
++ '[' F = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 53 -lt 62 ']' | |
++ local char=l | |
++ '[' -n '' ']' | |
++ word=Fl | |
++ '[' l = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 54 -lt 62 ']' | |
++ local char=a | |
++ '[' -n '' ']' | |
++ word=Fla | |
++ '[' a = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 55 -lt 62 ']' | |
++ local char=g | |
++ '[' -n '' ']' | |
++ word=Flag | |
++ '[' g = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 56 -lt 62 ']' | |
++ local char=s | |
++ '[' -n '' ']' | |
++ word=Flags | |
++ '[' s = ' ' ']' | |
++ wasspace= | |
++ let i++ | |
++ '[' 57 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n '' ']' | |
++ word='Flags ' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 58 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n 'Flags ' ']' | |
++ let start=58-6 | |
+++ echo 'Flags ' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word='flags ' | |
++ columns='number=0;start=8;end=16;size=23;type=30;file system=39;flags=52;' | |
++ word= | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 59 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 60 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 61 -lt 62 ']' | |
++ local 'char= ' | |
++ '[' -n yes ']' | |
++ '[' ' ' = ' ' ']' | |
++ '[' -n '' ']' | |
++ '[' ' ' = ' ' ']' | |
++ wasspace=yes | |
++ let i++ | |
++ '[' 62 -lt 62 ']' | |
++ let start=62-0 | |
+++ echo '' | |
+++ tr '[:upper:]' '[:lower:]' | |
++ word= | |
++ columns='number=0;start=8;end=16;size=23;type=30;file system=39;flags=52;=62;' | |
++ read line | |
+++ grep -E '^[ ]*[0-9]' /tmp/rear.yFIcNoexNlK8305/tmp/parted | |
++ number=1 | |
++ '[' 1 -lt 10 ']' | |
++ line=' 1 32.3kB 396GB 396GB primary boot, raid' | |
+++ get_columns ' 1 32.3kB 396GB 396GB primary boot, raid' number | |
+++ local 'line= 1 32.3kB 396GB 396GB primary boot, raid' | |
+++ shift | |
+++ local headers=number | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start number | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = number ']' | |
++++ echo 0 | |
+++ tr -d ' ' | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ tr -d ';' | |
+++ local start=0 | |
++++ get_column_size number | |
+++++ get_column_start number | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = number ']' | |
+++++ echo 0 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=0 | |
+++++ get_next_header number | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = number ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = number ']' | |
+++++ echo start | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader=start | |
++++ '[' -z start ']' | |
+++++ get_column_start start | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = start ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = start ']' | |
+++++ echo 8 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=8 | |
++++ let local size=8-0 | |
++++ echo 8 | |
+++ local size=8 | |
+++ value=' 1 ;' | |
+++ echo ' 1 ;' | |
++ pnumber=1 | |
+++ get_columns ' 1 32.3kB 396GB 396GB primary boot, raid' type | |
+++ local 'line= 1 32.3kB 396GB 396GB primary boot, raid' | |
+++ shift | |
+++ local headers=type | |
+++ local value= | |
+++ for header in '$headers' | |
++++ get_column_start type | |
+++ tr -d ' ' | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = type ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
+++ tr -d ';' | |
++++ '[' start = type ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = type ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = type ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
++++ local hstart=30 | |
++++ '[' type = type ']' | |
++++ echo 30 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=30 | |
++++ get_column_size type | |
+++++ get_column_start type | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = type ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=30 | |
+++++ '[' type = type ']' | |
+++++ echo 30 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=30 | |
+++++ get_next_header type | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = type ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = type ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = type ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = type ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=30 | |
+++++ '[' size = type ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=39 | |
+++++ '[' type = type ']' | |
+++++ echo 'file system' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local 'nextheader=file system' | |
++++ '[' -z 'file system' ']' | |
+++++ get_column_start 'file system' | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=30 | |
+++++ '[' type = 'file system' ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=39 | |
+++++ '[' 'file system' = 'file system' ']' | |
+++++ echo 39 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local end=39 | |
++++ let local size=39-30 | |
++++ echo 9 | |
+++ local size=9 | |
+++ value='primary ;' | |
+++ echo 'primary ;' | |
++ ptype=primary | |
+++ get_columns ' 1 32.3kB 396GB 396GB primary boot, raid' flags | |
+++ local 'line= 1 32.3kB 396GB 396GB primary boot, raid' | |
+++ shift | |
+++ local headers=flags | |
+++ local value= | |
+++ for header in '$headers' | |
+++ tr -d , | |
++++ get_column_start flags | |
++++ local pair | |
++++ set_separator ';' | |
++++ OIFS=' | |
' | |
++++ IFS=';' | |
++++ for pair in '$columns' | |
++++ local header=number | |
++++ local hstart=0 | |
++++ '[' number = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=start | |
++++ local hstart=8 | |
++++ '[' start = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=end | |
++++ local hstart=16 | |
++++ '[' end = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=size | |
++++ local hstart=23 | |
++++ '[' size = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=type | |
+++ tr -d ';' | |
++++ local hstart=30 | |
++++ '[' type = flags ']' | |
++++ for pair in '$columns' | |
++++ local 'header=file system' | |
++++ local hstart=39 | |
++++ '[' 'file system' = flags ']' | |
++++ for pair in '$columns' | |
++++ local header=flags | |
++++ local hstart=52 | |
++++ '[' flags = flags ']' | |
++++ echo 52 | |
++++ restore_separator | |
++++ IFS=' | |
' | |
++++ return 0 | |
+++ local start=52 | |
++++ get_column_size flags | |
+++++ get_column_start flags | |
+++++ local pair | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' number = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' start = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' end = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' size = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=30 | |
+++++ '[' type = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=39 | |
+++++ '[' 'file system' = flags ']' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=52 | |
+++++ '[' flags = flags ']' | |
+++++ echo 52 | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local start=52 | |
+++++ get_next_header flags | |
+++++ local pair | |
+++++ local previous | |
+++++ set_separator ';' | |
+++++ OIFS=' | |
' | |
+++++ IFS=';' | |
+++++ for pair in '$columns' | |
+++++ local header=number | |
+++++ local hstart=0 | |
+++++ '[' '' = flags ']' | |
+++++ previous=number | |
+++++ for pair in '$columns' | |
+++++ local header=start | |
+++++ local hstart=8 | |
+++++ '[' number = flags ']' | |
+++++ previous=start | |
+++++ for pair in '$columns' | |
+++++ local header=end | |
+++++ local hstart=16 | |
+++++ '[' start = flags ']' | |
+++++ previous=end | |
+++++ for pair in '$columns' | |
+++++ local header=size | |
+++++ local hstart=23 | |
+++++ '[' end = flags ']' | |
+++++ previous=size | |
+++++ for pair in '$columns' | |
+++++ local header=type | |
+++++ local hstart=30 | |
+++++ '[' size = flags ']' | |
+++++ previous=type | |
+++++ for pair in '$columns' | |
+++++ local 'header=file system' | |
+++++ local hstart=39 | |
+++++ '[' type = flags ']' | |
+++++ previous='file system' | |
+++++ for pair in '$columns' | |
+++++ local header=flags | |
+++++ local hstart=52 | |
+++++ '[' 'file system' = flags ']' | |
+++++ previous=flags | |
+++++ for pair in '$columns' | |
+++++ local header= | |
+++++ local hstart=62 | |
+++++ '[' flags = flags ']' | |
+++++ echo '' | |
+++++ restore_separator | |
+++++ IFS=' | |
' | |
+++++ return 0 | |
++++ local nextheader= | |
++++ '[' -z '' ']' | |
++++ echo 255 | |
++++ return 0 | |
+++ local size=255 | |
+++ value='boot, raid;' | |
+++ echo 'boot, raid;' | |
++ pflags='boot raid' | |
++ case $device in | |
++ pname=p1 | |
+++ get_disk_size 'cciss!c2d1/cciss!c2d1p1' | |
+++ local 'disk_name=cciss!c2d1/cciss!c2d1p1' | |
++++ get_block_size 'cciss!c2d1' | |
++++ '[' -r '/sys/block/cciss!c2d1/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c2d1/cciss!c2d1p1/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c2d1/cciss!c2d1p1, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=773288712 | |
+++ local disk_size=395923820544 | |
+++ echo 395923820544 | |
++ psize=395923820544 | |
++ pstart=63 | |
++ '[' -z 63 ']' | |
++ let 'pstart=63*512' | |
++ flags= | |
++ for flag in '$pflags' | |
++ case $flag in | |
++ flags=boot, | |
++ for flag in '$pflags' | |
++ case $flag in | |
++ flags=boot,raid, | |
++ '[' -z boot,raid, ']' | |
++ echo 'part /dev/cciss/c2d1 395923820544 32256 primary boot,raid /dev/cciss/c2d1p1' | |
++ read line | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:35 Including layout/save/GNU/Linux/21_raid_layout.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/21_raid_layout.sh | |
++ '[' -e /proc/mdstat ']' | |
++ grep -q blocks /proc/mdstat | |
++ Log 'Saving Software RAID configuration.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2012-11-08 12:57:35 Saving Software RAID configuration.' | |
2012-11-08 12:57:35 Saving Software RAID configuration. | |
++ read array device junk | |
+++ mdadm --detail --scan --config=partitions | |
++ '[' ARRAY '!=' ARRAY ']' | |
++ mdadm --misc --detail /dev/md2 | |
+++ grep 'Raid Level' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ level=raid1 | |
+++ grep UUID /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2- | |
++ uuid=576f3b42:f4f78ec1:47c9a0e6:ed256805 | |
+++ grep Layout /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ layout= | |
+++ grep 'Chunk Size' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
+++ sed -r 's/^([0-9]+).+/\1/' | |
++ chunksize= | |
++ '[' raid1 = raid10 ']' | |
+++ grep 'Raid Devices' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ ndevices=2 | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ totaldevices=2 | |
++ let sparedevices=2-2 | |
++ devices= | |
+++ grep -o -E '/dev/[^m].*$' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr '\n' ' ' | |
++ for disk in '$( grep -o -E "/dev/[^m].*$" $TMP_DIR/mdraid | tr "\n" " ")' | |
+++ get_friendly_name /dev/cciss/c0d0p2 | |
+++ local search=cciss/c0d0p2 | |
++++ stat -L -c %t:%T /dev/cciss/c0d0p2 | |
+++ local number=68:2 | |
+++ '[' 68:2 ']' | |
+++ BugIfError 'Unknown device...' | |
+++ (( 0 != 0 )) | |
+++ local device | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/control | |
+++ local test=a:3f | |
+++ '[' a:3f = 68:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lv00 | |
+++ local test=fd:0 | |
+++ '[' fd:0 = 68:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvopt | |
+++ local test=fd:2 | |
+++ '[' fd:2 = 68:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvtmp | |
+++ local test=fd:3 | |
+++ '[' fd:3 = 68:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvusr | |
+++ local test=fd:1 | |
+++ '[' fd:1 = 68:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvvar | |
+++ local test=fd:4 | |
+++ '[' fd:4 = 68:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvcachemgr | |
+++ local test=fd:6 | |
+++ '[' fd:6 = 68:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvdstpol | |
+++ local test=fd:5 | |
+++ '[' fd:5 = 68:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvmysql | |
+++ local test=fd:7 | |
+++ '[' fd:7 = 68:2 ']' | |
+++ echo cciss/c0d0p2 | |
++ disk=cciss/c0d0p2 | |
++ '[' -z '' ']' | |
++ devices=' devices=/dev/cciss/c0d0p2' | |
++ for disk in '$( grep -o -E "/dev/[^m].*$" $TMP_DIR/mdraid | tr "\n" " ")' | |
+++ get_friendly_name /dev/cciss/c2d0p2 | |
+++ local search=cciss/c2d0p2 | |
++++ stat -L -c %t:%T /dev/cciss/c2d0p2 | |
+++ local number=6a:2 | |
+++ '[' 6a:2 ']' | |
+++ BugIfError 'Unknown device...' | |
+++ (( 0 != 0 )) | |
+++ local device | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/control | |
+++ local test=a:3f | |
+++ '[' a:3f = 6a:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lv00 | |
+++ local test=fd:0 | |
+++ '[' fd:0 = 6a:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvopt | |
+++ local test=fd:2 | |
+++ '[' fd:2 = 6a:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvtmp | |
+++ local test=fd:3 | |
+++ '[' fd:3 = 6a:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvusr | |
+++ local test=fd:1 | |
+++ '[' fd:1 = 6a:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvvar | |
+++ local test=fd:4 | |
+++ '[' fd:4 = 6a:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvcachemgr | |
+++ local test=fd:6 | |
+++ '[' fd:6 = 6a:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvdstpol | |
+++ local test=fd:5 | |
+++ '[' fd:5 = 6a:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvmysql | |
+++ local test=fd:7 | |
+++ '[' fd:7 = 6a:2 ']' | |
+++ echo cciss/c2d0p2 | |
++ disk=cciss/c2d0p2 | |
++ '[' -z ' devices=/dev/cciss/c0d0p2' ']' | |
++ devices=' devices=/dev/cciss/c0d0p2,/dev/cciss/c2d0p2' | |
++ level=' level=raid1' | |
++ ndevices=' raid-devices=2' | |
++ uuid=' uuid=576f3b42:f4f78ec1:47c9a0e6:ed256805' | |
++ '[' 0 -gt 0 ']' | |
++ sparedevices= | |
++ '[' -n '' ']' | |
++ layout= | |
++ '[' -n '' ']' | |
++ chunksize= | |
++ echo 'raid /dev/md2 level=raid1 raid-devices=2 uuid=576f3b42:f4f78ec1:47c9a0e6:ed256805 devices=/dev/cciss/c0d0p2,/dev/cciss/c2d0p2' | |
++ read array device junk | |
++ '[' ARRAY '!=' ARRAY ']' | |
++ mdadm --misc --detail /dev/md3 | |
+++ grep 'Raid Level' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ level=raid1 | |
+++ grep UUID /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2- | |
++ uuid=3a598773:44c93d17:6a53c825:ddd60cae | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
+++ grep Layout /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
++ layout= | |
+++ grep 'Chunk Size' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
+++ sed -r 's/^([0-9]+).+/\1/' | |
++ chunksize= | |
++ '[' raid1 = raid10 ']' | |
+++ grep 'Raid Devices' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ ndevices=2 | |
+++ grep 'Total Devices' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ totaldevices=2 | |
++ let sparedevices=2-2 | |
++ devices= | |
+++ grep -o -E '/dev/[^m].*$' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr '\n' ' ' | |
++ for disk in '$( grep -o -E "/dev/[^m].*$" $TMP_DIR/mdraid | tr "\n" " ")' | |
+++ get_friendly_name /dev/cciss/c0d1p1 | |
+++ local search=cciss/c0d1p1 | |
++++ stat -L -c %t:%T /dev/cciss/c0d1p1 | |
+++ local number=68:11 | |
+++ '[' 68:11 ']' | |
+++ BugIfError 'Unknown device...' | |
+++ (( 0 != 0 )) | |
+++ local device | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/control | |
+++ local test=a:3f | |
+++ '[' a:3f = 68:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lv00 | |
+++ local test=fd:0 | |
+++ '[' fd:0 = 68:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvopt | |
+++ local test=fd:2 | |
+++ '[' fd:2 = 68:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvtmp | |
+++ local test=fd:3 | |
+++ '[' fd:3 = 68:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvusr | |
+++ local test=fd:1 | |
+++ '[' fd:1 = 68:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvvar | |
+++ local test=fd:4 | |
+++ '[' fd:4 = 68:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvcachemgr | |
+++ local test=fd:6 | |
+++ '[' fd:6 = 68:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvdstpol | |
+++ local test=fd:5 | |
+++ '[' fd:5 = 68:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvmysql | |
+++ local test=fd:7 | |
+++ '[' fd:7 = 68:11 ']' | |
+++ echo cciss/c0d1p1 | |
++ disk=cciss/c0d1p1 | |
++ '[' -z '' ']' | |
++ devices=' devices=/dev/cciss/c0d1p1' | |
++ for disk in '$( grep -o -E "/dev/[^m].*$" $TMP_DIR/mdraid | tr "\n" " ")' | |
+++ get_friendly_name /dev/cciss/c2d1p1 | |
+++ local search=cciss/c2d1p1 | |
++++ stat -L -c %t:%T /dev/cciss/c2d1p1 | |
+++ local number=6a:11 | |
+++ '[' 6a:11 ']' | |
+++ BugIfError 'Unknown device...' | |
+++ (( 0 != 0 )) | |
+++ local device | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/control | |
+++ local test=a:3f | |
+++ '[' a:3f = 6a:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lv00 | |
+++ local test=fd:0 | |
+++ '[' fd:0 = 6a:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvopt | |
+++ local test=fd:2 | |
+++ '[' fd:2 = 6a:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvtmp | |
+++ local test=fd:3 | |
+++ '[' fd:3 = 6a:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvusr | |
+++ local test=fd:1 | |
+++ '[' fd:1 = 6a:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvvar | |
+++ local test=fd:4 | |
+++ '[' fd:4 = 6a:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvcachemgr | |
+++ local test=fd:6 | |
+++ '[' fd:6 = 6a:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvdstpol | |
+++ local test=fd:5 | |
+++ '[' fd:5 = 6a:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvmysql | |
+++ local test=fd:7 | |
+++ '[' fd:7 = 6a:11 ']' | |
+++ echo cciss/c2d1p1 | |
++ disk=cciss/c2d1p1 | |
++ '[' -z ' devices=/dev/cciss/c0d1p1' ']' | |
++ devices=' devices=/dev/cciss/c0d1p1,/dev/cciss/c2d1p1' | |
++ level=' level=raid1' | |
++ ndevices=' raid-devices=2' | |
++ uuid=' uuid=3a598773:44c93d17:6a53c825:ddd60cae' | |
++ '[' 0 -gt 0 ']' | |
++ sparedevices= | |
++ '[' -n '' ']' | |
++ layout= | |
++ '[' -n '' ']' | |
++ chunksize= | |
++ echo 'raid /dev/md3 level=raid1 raid-devices=2 uuid=3a598773:44c93d17:6a53c825:ddd60cae devices=/dev/cciss/c0d1p1,/dev/cciss/c2d1p1' | |
++ read array device junk | |
++ '[' ARRAY '!=' ARRAY ']' | |
++ mdadm --misc --detail /dev/md1 | |
+++ grep 'Raid Level' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ level=raid1 | |
+++ grep UUID /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2- | |
++ uuid=9ec4b0c5:32eed648:c9794eaf:977398e0 | |
+++ grep Layout /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ layout= | |
+++ grep 'Chunk Size' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
+++ sed -r 's/^([0-9]+).+/\1/' | |
++ chunksize= | |
++ '[' raid1 = raid10 ']' | |
+++ grep 'Raid Devices' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ ndevices=2 | |
+++ grep 'Total Devices' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ totaldevices=2 | |
++ let sparedevices=2-2 | |
++ devices= | |
+++ grep -o -E '/dev/[^m].*$' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr '\n' ' ' | |
++ for disk in '$( grep -o -E "/dev/[^m].*$" $TMP_DIR/mdraid | tr "\n" " ")' | |
+++ get_friendly_name /dev/cciss/c0d0p3 | |
+++ local search=cciss/c0d0p3 | |
++++ stat -L -c %t:%T /dev/cciss/c0d0p3 | |
+++ local number=68:3 | |
+++ '[' 68:3 ']' | |
+++ BugIfError 'Unknown device...' | |
+++ (( 0 != 0 )) | |
+++ local device | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/control | |
+++ local test=a:3f | |
+++ '[' a:3f = 68:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lv00 | |
+++ local test=fd:0 | |
+++ '[' fd:0 = 68:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvopt | |
+++ local test=fd:2 | |
+++ '[' fd:2 = 68:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvtmp | |
+++ local test=fd:3 | |
+++ '[' fd:3 = 68:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvusr | |
+++ local test=fd:1 | |
+++ '[' fd:1 = 68:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvvar | |
+++ local test=fd:4 | |
+++ '[' fd:4 = 68:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvcachemgr | |
+++ local test=fd:6 | |
+++ '[' fd:6 = 68:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvdstpol | |
+++ local test=fd:5 | |
+++ '[' fd:5 = 68:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvmysql | |
+++ local test=fd:7 | |
+++ '[' fd:7 = 68:3 ']' | |
+++ echo cciss/c0d0p3 | |
++ disk=cciss/c0d0p3 | |
++ '[' -z '' ']' | |
++ devices=' devices=/dev/cciss/c0d0p3' | |
++ for disk in '$( grep -o -E "/dev/[^m].*$" $TMP_DIR/mdraid | tr "\n" " ")' | |
+++ get_friendly_name /dev/cciss/c2d0p3 | |
+++ local search=cciss/c2d0p3 | |
++++ stat -L -c %t:%T /dev/cciss/c2d0p3 | |
+++ local number=6a:3 | |
+++ '[' 6a:3 ']' | |
+++ BugIfError 'Unknown device...' | |
+++ (( 0 != 0 )) | |
+++ local device | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/control | |
+++ local test=a:3f | |
+++ '[' a:3f = 6a:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lv00 | |
+++ local test=fd:0 | |
+++ '[' fd:0 = 6a:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvopt | |
+++ local test=fd:2 | |
+++ '[' fd:2 = 6a:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvtmp | |
+++ local test=fd:3 | |
+++ '[' fd:3 = 6a:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvusr | |
+++ local test=fd:1 | |
+++ '[' fd:1 = 6a:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvvar | |
+++ local test=fd:4 | |
+++ '[' fd:4 = 6a:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvcachemgr | |
+++ local test=fd:6 | |
+++ '[' fd:6 = 6a:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvdstpol | |
+++ local test=fd:5 | |
+++ '[' fd:5 = 6a:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvmysql | |
+++ local test=fd:7 | |
+++ '[' fd:7 = 6a:3 ']' | |
+++ echo cciss/c2d0p3 | |
++ disk=cciss/c2d0p3 | |
++ '[' -z ' devices=/dev/cciss/c0d0p3' ']' | |
++ devices=' devices=/dev/cciss/c0d0p3,/dev/cciss/c2d0p3' | |
++ level=' level=raid1' | |
++ ndevices=' raid-devices=2' | |
++ uuid=' uuid=9ec4b0c5:32eed648:c9794eaf:977398e0' | |
++ '[' 0 -gt 0 ']' | |
++ sparedevices= | |
++ '[' -n '' ']' | |
++ layout= | |
++ '[' -n '' ']' | |
++ chunksize= | |
++ echo 'raid /dev/md1 level=raid1 raid-devices=2 uuid=9ec4b0c5:32eed648:c9794eaf:977398e0 devices=/dev/cciss/c0d0p3,/dev/cciss/c2d0p3' | |
++ read array device junk | |
++ '[' ARRAY '!=' ARRAY ']' | |
++ mdadm --misc --detail /dev/md0 | |
+++ grep 'Raid Level' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ level=raid1 | |
+++ grep UUID /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2- | |
++ uuid=822bb87e:217d3fc3:a1889996:6747669b | |
+++ grep Layout /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ layout= | |
+++ grep 'Chunk Size' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ sed -r 's/^([0-9]+).+/\1/' | |
+++ cut -d : -f 2 | |
++ chunksize= | |
++ '[' raid1 = raid10 ']' | |
+++ grep 'Raid Devices' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ ndevices=2 | |
+++ grep 'Total Devices' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ totaldevices=2 | |
++ let sparedevices=2-2 | |
++ devices= | |
+++ grep -o -E '/dev/[^m].*$' /tmp/rear.yFIcNoexNlK8305/tmp/mdraid | |
+++ tr '\n' ' ' | |
++ for disk in '$( grep -o -E "/dev/[^m].*$" $TMP_DIR/mdraid | tr "\n" " ")' | |
+++ get_friendly_name /dev/cciss/c0d0p1 | |
+++ local search=cciss/c0d0p1 | |
++++ stat -L -c %t:%T /dev/cciss/c0d0p1 | |
+++ local number=68:1 | |
+++ '[' 68:1 ']' | |
+++ BugIfError 'Unknown device...' | |
+++ (( 0 != 0 )) | |
+++ local device | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/control | |
+++ local test=a:3f | |
+++ '[' a:3f = 68:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lv00 | |
+++ local test=fd:0 | |
+++ '[' fd:0 = 68:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvopt | |
+++ local test=fd:2 | |
+++ '[' fd:2 = 68:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvtmp | |
+++ local test=fd:3 | |
+++ '[' fd:3 = 68:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvusr | |
+++ local test=fd:1 | |
+++ '[' fd:1 = 68:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvvar | |
+++ local test=fd:4 | |
+++ '[' fd:4 = 68:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvcachemgr | |
+++ local test=fd:6 | |
+++ '[' fd:6 = 68:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvdstpol | |
+++ local test=fd:5 | |
+++ '[' fd:5 = 68:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvmysql | |
+++ local test=fd:7 | |
+++ '[' fd:7 = 68:1 ']' | |
+++ echo cciss/c0d0p1 | |
++ disk=cciss/c0d0p1 | |
++ '[' -z '' ']' | |
++ devices=' devices=/dev/cciss/c0d0p1' | |
++ for disk in '$( grep -o -E "/dev/[^m].*$" $TMP_DIR/mdraid | tr "\n" " ")' | |
+++ get_friendly_name /dev/cciss/c2d0p1 | |
+++ local search=cciss/c2d0p1 | |
++++ stat -L -c %t:%T /dev/cciss/c2d0p1 | |
+++ local number=6a:1 | |
+++ '[' 6a:1 ']' | |
+++ BugIfError 'Unknown device...' | |
+++ (( 0 != 0 )) | |
+++ local device | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/control | |
+++ local test=a:3f | |
+++ '[' a:3f = 6a:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lv00 | |
+++ local test=fd:0 | |
+++ '[' fd:0 = 6a:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvopt | |
+++ local test=fd:2 | |
+++ '[' fd:2 = 6a:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvtmp | |
+++ local test=fd:3 | |
+++ '[' fd:3 = 6a:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvusr | |
+++ local test=fd:1 | |
+++ '[' fd:1 = 6a:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg00-lvvar | |
+++ local test=fd:4 | |
+++ '[' fd:4 = 6a:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvcachemgr | |
+++ local test=fd:6 | |
+++ '[' fd:6 = 6a:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvdstpol | |
+++ local test=fd:5 | |
+++ '[' fd:5 = 6a:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ stat -L -c %t:%T /dev/mapper/vg01-lvmysql | |
+++ local test=fd:7 | |
+++ '[' fd:7 = 6a:1 ']' | |
+++ echo cciss/c2d0p1 | |
++ disk=cciss/c2d0p1 | |
++ '[' -z ' devices=/dev/cciss/c0d0p1' ']' | |
++ devices=' devices=/dev/cciss/c0d0p1,/dev/cciss/c2d0p1' | |
++ level=' level=raid1' | |
++ ndevices=' raid-devices=2' | |
++ uuid=' uuid=822bb87e:217d3fc3:a1889996:6747669b' | |
++ '[' 0 -gt 0 ']' | |
++ sparedevices= | |
++ '[' -n '' ']' | |
++ layout= | |
++ '[' -n '' ']' | |
++ chunksize= | |
++ echo 'raid /dev/md0 level=raid1 raid-devices=2 uuid=822bb87e:217d3fc3:a1889996:6747669b devices=/dev/cciss/c0d0p1,/dev/cciss/c2d0p1' | |
++ read array device junk | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:35 Including layout/save/GNU/Linux/22_lvm_layout.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/22_lvm_layout.sh | |
++ has_binary lvm | |
++ for bin in '$@' | |
++ type lvm | |
++ return 0 | |
++ Log 'Saving LVM layout.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2012-11-08 12:57:35 Saving LVM layout.' | |
2012-11-08 12:57:35 Saving LVM layout. | |
++ lvm pvdisplay -c | |
++ read line | |
+++ echo /dev/md3:vg01:773288576:-1:8:8:-1:32768:11799:9559:2240:96gR3x-8Rcl-zu92-qalr-9bc5-nixQ-iykOSs | |
+++ cut -d : -f 1 | |
++ pdev=/dev/md3 | |
++ '[' dev/md3 = /dev/md3 ']' | |
+++ echo /dev/md3:vg01:773288576:-1:8:8:-1:32768:11799:9559:2240:96gR3x-8Rcl-zu92-qalr-9bc5-nixQ-iykOSs | |
+++ cut -d : -f 2 | |
++ vgrp=vg01 | |
+++ echo /dev/md3:vg01:773288576:-1:8:8:-1:32768:11799:9559:2240:96gR3x-8Rcl-zu92-qalr-9bc5-nixQ-iykOSs | |
+++ cut -d : -f 3 | |
++ size=773288576 | |
+++ echo /dev/md3:vg01:773288576:-1:8:8:-1:32768:11799:9559:2240:96gR3x-8Rcl-zu92-qalr-9bc5-nixQ-iykOSs | |
+++ cut -d : -f 12 | |
++ uuid=96gR3x-8Rcl-zu92-qalr-9bc5-nixQ-iykOSs | |
++ echo 'lvmdev /dev/vg01 /dev/md3 96gR3x-8Rcl-zu92-qalr-9bc5-nixQ-iykOSs 773288576' | |
++ read line | |
+++ echo /dev/md2:vg00:381254400:-1:8:8:-1:32768:5817:4953:864:2IDAWJ-cG8l-Q8yP-D9fR-fiPW-GoU9-icEY20 | |
+++ cut -d : -f 1 | |
++ pdev=/dev/md2 | |
++ '[' dev/md2 = /dev/md2 ']' | |
+++ echo /dev/md2:vg00:381254400:-1:8:8:-1:32768:5817:4953:864:2IDAWJ-cG8l-Q8yP-D9fR-fiPW-GoU9-icEY20 | |
+++ cut -d : -f 2 | |
++ vgrp=vg00 | |
+++ echo /dev/md2:vg00:381254400:-1:8:8:-1:32768:5817:4953:864:2IDAWJ-cG8l-Q8yP-D9fR-fiPW-GoU9-icEY20 | |
+++ cut -d : -f 3 | |
++ size=381254400 | |
+++ echo /dev/md2:vg00:381254400:-1:8:8:-1:32768:5817:4953:864:2IDAWJ-cG8l-Q8yP-D9fR-fiPW-GoU9-icEY20 | |
+++ cut -d : -f 12 | |
++ uuid=2IDAWJ-cG8l-Q8yP-D9fR-fiPW-GoU9-icEY20 | |
++ echo 'lvmdev /dev/vg00 /dev/md2 2IDAWJ-cG8l-Q8yP-D9fR-fiPW-GoU9-icEY20 381254400' | |
++ read line | |
++ lvm vgdisplay -c | |
++ read line | |
+++ echo vg01:r/w:772:-1:0:3:3:-1:0:1:1:386629632:32768:11799:2240:9559:LGEObU-oEWg-2eSq-PfRL-n7vb-hm49-kC3d2M | |
+++ cut -d : -f 1 | |
++ vgrp=vg01 | |
+++ echo vg01:r/w:772:-1:0:3:3:-1:0:1:1:386629632:32768:11799:2240:9559:LGEObU-oEWg-2eSq-PfRL-n7vb-hm49-kC3d2M | |
+++ cut -d : -f 12 | |
++ size=386629632 | |
+++ echo vg01:r/w:772:-1:0:3:3:-1:0:1:1:386629632:32768:11799:2240:9559:LGEObU-oEWg-2eSq-PfRL-n7vb-hm49-kC3d2M | |
+++ cut -d : -f 13 | |
++ extentsize=32768 | |
+++ echo vg01:r/w:772:-1:0:3:3:-1:0:1:1:386629632:32768:11799:2240:9559:LGEObU-oEWg-2eSq-PfRL-n7vb-hm49-kC3d2M | |
+++ cut -d : -f 14 | |
++ nrextents=11799 | |
++ echo 'lvmgrp /dev/vg01 32768 11799 386629632' | |
++ read line | |
+++ echo vg00:r/w:772:-1:0:5:5:-1:0:1:1:190611456:32768:5817:864:4953:y7kqmE-2m9Y-iriZ-buMy-FwKo-NLPL-uRnDX8 | |
+++ cut -d : -f 1 | |
++ vgrp=vg00 | |
+++ echo vg00:r/w:772:-1:0:5:5:-1:0:1:1:190611456:32768:5817:864:4953:y7kqmE-2m9Y-iriZ-buMy-FwKo-NLPL-uRnDX8 | |
+++ cut -d : -f 12 | |
++ size=190611456 | |
+++ echo vg00:r/w:772:-1:0:5:5:-1:0:1:1:190611456:32768:5817:864:4953:y7kqmE-2m9Y-iriZ-buMy-FwKo-NLPL-uRnDX8 | |
+++ cut -d : -f 13 | |
++ extentsize=32768 | |
+++ echo vg00:r/w:772:-1:0:5:5:-1:0:1:1:190611456:32768:5817:864:4953:y7kqmE-2m9Y-iriZ-buMy-FwKo-NLPL-uRnDX8 | |
+++ cut -d : -f 14 | |
++ nrextents=5817 | |
++ echo 'lvmgrp /dev/vg00 32768 5817 190611456' | |
++ read line | |
++ lvm lvdisplay -c | |
++ read line | |
+++ echo /dev/vg01/lvdstpol:vg01:3:1:-1:1:104857600:1600:-1:0:-1:253:5 | |
+++ cut -d : -f 1 | |
+++ cut -d / -f 4 | |
++ lvol=lvdstpol | |
+++ echo /dev/vg01/lvdstpol:vg01:3:1:-1:1:104857600:1600:-1:0:-1:253:5 | |
+++ cut -d : -f 2 | |
++ vgrp=vg01 | |
+++ echo /dev/vg01/lvdstpol:vg01:3:1:-1:1:104857600:1600:-1:0:-1:253:5 | |
+++ cut -d : -f 7 | |
++ size=104857600 | |
+++ echo /dev/vg01/lvdstpol:vg01:3:1:-1:1:104857600:1600:-1:0:-1:253:5 | |
+++ cut -d : -f 8 | |
++ extents=1600 | |
++ echo 'lvmvol /dev/vg01 lvdstpol 1600 104857600 ' | |
++ read line | |
+++ echo /dev/vg01/lvcachemgr:vg01:3:1:-1:1:20971520:320:-1:0:-1:253:6 | |
+++ cut -d : -f 1 | |
+++ cut -d / -f 4 | |
++ lvol=lvcachemgr | |
+++ echo /dev/vg01/lvcachemgr:vg01:3:1:-1:1:20971520:320:-1:0:-1:253:6 | |
+++ cut -d : -f 2 | |
++ vgrp=vg01 | |
+++ echo /dev/vg01/lvcachemgr:vg01:3:1:-1:1:20971520:320:-1:0:-1:253:6 | |
+++ cut -d : -f 7 | |
++ size=20971520 | |
+++ echo /dev/vg01/lvcachemgr:vg01:3:1:-1:1:20971520:320:-1:0:-1:253:6 | |
+++ cut -d : -f 8 | |
++ extents=320 | |
++ echo 'lvmvol /dev/vg01 lvcachemgr 320 20971520 ' | |
++ read line | |
+++ echo /dev/vg01/lvmysql:vg01:3:1:-1:1:20971520:320:-1:0:-1:253:7 | |
+++ cut -d : -f 1 | |
+++ cut -d / -f 4 | |
++ lvol=lvmysql | |
+++ echo /dev/vg01/lvmysql:vg01:3:1:-1:1:20971520:320:-1:0:-1:253:7 | |
+++ cut -d : -f 2 | |
++ vgrp=vg01 | |
+++ echo /dev/vg01/lvmysql:vg01:3:1:-1:1:20971520:320:-1:0:-1:253:7 | |
+++ cut -d : -f 7 | |
++ size=20971520 | |
+++ echo /dev/vg01/lvmysql:vg01:3:1:-1:1:20971520:320:-1:0:-1:253:7 | |
+++ cut -d : -f 8 | |
++ extents=320 | |
++ echo 'lvmvol /dev/vg01 lvmysql 320 20971520 ' | |
++ read line | |
+++ echo /dev/vg00/lv00:vg00:3:1:-1:1:2097152:32:-1:0:-1:253:0 | |
+++ cut -d : -f 1 | |
+++ cut -d / -f 4 | |
++ lvol=lv00 | |
+++ echo /dev/vg00/lv00:vg00:3:1:-1:1:2097152:32:-1:0:-1:253:0 | |
+++ cut -d : -f 2 | |
++ vgrp=vg00 | |
+++ echo /dev/vg00/lv00:vg00:3:1:-1:1:2097152:32:-1:0:-1:253:0 | |
+++ cut -d : -f 7 | |
++ size=2097152 | |
+++ echo /dev/vg00/lv00:vg00:3:1:-1:1:2097152:32:-1:0:-1:253:0 | |
+++ cut -d : -f 8 | |
++ extents=32 | |
++ echo 'lvmvol /dev/vg00 lv00 32 2097152 ' | |
++ read line | |
+++ echo /dev/vg00/lvusr:vg00:3:1:-1:1:10485760:160:-1:0:-1:253:1 | |
+++ cut -d : -f 1 | |
+++ cut -d / -f 4 | |
++ lvol=lvusr | |
+++ echo /dev/vg00/lvusr:vg00:3:1:-1:1:10485760:160:-1:0:-1:253:1 | |
+++ cut -d : -f 2 | |
++ vgrp=vg00 | |
+++ echo /dev/vg00/lvusr:vg00:3:1:-1:1:10485760:160:-1:0:-1:253:1 | |
+++ cut -d : -f 7 | |
++ size=10485760 | |
+++ echo /dev/vg00/lvusr:vg00:3:1:-1:1:10485760:160:-1:0:-1:253:1 | |
+++ cut -d : -f 8 | |
++ extents=160 | |
++ echo 'lvmvol /dev/vg00 lvusr 160 10485760 ' | |
++ read line | |
+++ echo /dev/vg00/lvopt:vg00:3:1:-1:1:2097152:32:-1:0:-1:253:2 | |
+++ cut -d : -f 1 | |
+++ cut -d / -f 4 | |
++ lvol=lvopt | |
+++ echo /dev/vg00/lvopt:vg00:3:1:-1:1:2097152:32:-1:0:-1:253:2 | |
+++ cut -d : -f 2 | |
++ vgrp=vg00 | |
+++ echo /dev/vg00/lvopt:vg00:3:1:-1:1:2097152:32:-1:0:-1:253:2 | |
+++ cut -d : -f 7 | |
++ size=2097152 | |
+++ echo /dev/vg00/lvopt:vg00:3:1:-1:1:2097152:32:-1:0:-1:253:2 | |
+++ cut -d : -f 8 | |
++ extents=32 | |
++ echo 'lvmvol /dev/vg00 lvopt 32 2097152 ' | |
++ read line | |
+++ cut -d : -f 1 | |
+++ echo /dev/vg00/lvtmp:vg00:3:1:-1:1:20971520:320:-1:0:-1:253:3 | |
+++ cut -d / -f 4 | |
++ lvol=lvtmp | |
+++ echo /dev/vg00/lvtmp:vg00:3:1:-1:1:20971520:320:-1:0:-1:253:3 | |
+++ cut -d : -f 2 | |
++ vgrp=vg00 | |
+++ echo /dev/vg00/lvtmp:vg00:3:1:-1:1:20971520:320:-1:0:-1:253:3 | |
+++ cut -d : -f 7 | |
++ size=20971520 | |
+++ echo /dev/vg00/lvtmp:vg00:3:1:-1:1:20971520:320:-1:0:-1:253:3 | |
+++ cut -d : -f 8 | |
++ extents=320 | |
++ echo 'lvmvol /dev/vg00 lvtmp 320 20971520 ' | |
++ read line | |
+++ echo /dev/vg00/lvvar:vg00:3:1:-1:1:20971520:320:-1:0:-1:253:4 | |
+++ cut -d : -f 1 | |
+++ cut -d / -f 4 | |
++ lvol=lvvar | |
+++ echo /dev/vg00/lvvar:vg00:3:1:-1:1:20971520:320:-1:0:-1:253:4 | |
+++ cut -d : -f 2 | |
++ vgrp=vg00 | |
+++ echo /dev/vg00/lvvar:vg00:3:1:-1:1:20971520:320:-1:0:-1:253:4 | |
+++ cut -d : -f 7 | |
++ size=20971520 | |
+++ echo /dev/vg00/lvvar:vg00:3:1:-1:1:20971520:320:-1:0:-1:253:4 | |
+++ cut -d : -f 8 | |
++ extents=320 | |
++ echo 'lvmvol /dev/vg00 lvvar 320 20971520 ' | |
++ read line | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:35 Including layout/save/GNU/Linux/23_filesystem_layout.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/23_filesystem_layout.sh | |
++ Log 'Saving Filesystem layout.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2012-11-08 12:57:35 Saving Filesystem layout.' | |
2012-11-08 12:57:35 Saving Filesystem layout. | |
+++ mount | |
++ read device on mountpoint type fstype options junk | |
++ '[' dev/mapper/vg00-lv00 = /dev/mapper/vg00-lv00 ']' | |
++ '[' '!' -b /dev/mapper/vg00-lv00 ']' | |
++ echo -n 'fs /dev/mapper/vg00-lv00 / ext3 ' | |
++ case "$fstype" in | |
++ tunefs=tune2fs | |
++ '[' ext3 = ext4 ']' | |
+++ tune2fs -l /dev/mapper/vg00-lv00 | |
+++ grep UUID | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ uuid=3802093d-713b-475c-ad0e-e1c9c3496af4 | |
+++ e2label /dev/mapper/vg00-lv00 | |
++ label= | |
+++ tune2fs -l /dev/mapper/vg00-lv00 | |
+++ grep 'Block size' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ blocksize=4096 | |
+++ tune2fs -l /dev/mapper/vg00-lv00 | |
+++ grep 'Maximum mount count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ max_mounts=-1 | |
+++ tune2fs -l /dev/mapper/vg00-lv00 | |
+++ grep 'Check interval' | |
+++ cut -d '(' -f 1 | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ check_interval=0 | |
+++ tune2fs -l /dev/mapper/vg00-lv00 | |
+++ grep 'Reserved block count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ reserved_blocks=13107 | |
++ let check_interval=0/86400 | |
++ echo -n 'uuid=3802093d-713b-475c-ad0e-e1c9c3496af4 label=' | |
++ echo -n ' blocksize=4096 reserved_blocks=13107' | |
++ echo -n ' max_mounts=-1 check_interval=0d' | |
++ options='rw)' | |
++ options=rw | |
++ echo -n ' options=rw' | |
++ echo | |
++ read device on mountpoint type fstype options junk | |
++ '[' proc = proc ']' | |
++ continue | |
++ read device on mountpoint type fstype options junk | |
++ '[' sysfs = sysfs ']' | |
++ continue | |
++ read device on mountpoint type fstype options junk | |
++ '[' devpts = devpts ']' | |
++ continue | |
++ read device on mountpoint type fstype options junk | |
++ '[' dev/mapper/vg00-lvusr = /dev/mapper/vg00-lvusr ']' | |
++ '[' '!' -b /dev/mapper/vg00-lvusr ']' | |
++ echo -n 'fs /dev/mapper/vg00-lvusr /usr ext3 ' | |
++ case "$fstype" in | |
++ tunefs=tune2fs | |
++ '[' ext3 = ext4 ']' | |
+++ tune2fs -l /dev/mapper/vg00-lvusr | |
+++ grep UUID | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ uuid=a151e9a2-5189-4e35-b6f0-57458d7bb416 | |
+++ e2label /dev/mapper/vg00-lvusr | |
++ label= | |
+++ tune2fs -l /dev/mapper/vg00-lvusr | |
+++ grep 'Block size' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ blocksize=4096 | |
+++ tune2fs -l /dev/mapper/vg00-lvusr | |
+++ grep 'Maximum mount count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ max_mounts=-1 | |
+++ tune2fs -l /dev/mapper/vg00-lvusr | |
+++ grep 'Check interval' | |
+++ cut -d '(' -f 1 | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ check_interval=0 | |
+++ tune2fs -l /dev/mapper/vg00-lvusr | |
+++ grep 'Reserved block count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ reserved_blocks=65536 | |
++ let check_interval=0/86400 | |
++ echo -n 'uuid=a151e9a2-5189-4e35-b6f0-57458d7bb416 label=' | |
++ echo -n ' blocksize=4096 reserved_blocks=65536' | |
++ echo -n ' max_mounts=-1 check_interval=0d' | |
++ options='rw)' | |
++ options=rw | |
++ echo -n ' options=rw' | |
++ echo | |
++ read device on mountpoint type fstype options junk | |
++ '[' dev/mapper/vg01-lvdstpol = /dev/mapper/vg01-lvdstpol ']' | |
++ '[' '!' -b /dev/mapper/vg01-lvdstpol ']' | |
++ echo -n 'fs /dev/mapper/vg01-lvdstpol /dstpol ext3 ' | |
++ case "$fstype" in | |
++ tunefs=tune2fs | |
++ '[' ext3 = ext4 ']' | |
+++ tune2fs -l /dev/mapper/vg01-lvdstpol | |
+++ grep UUID | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ uuid=ada54c98-e383-4706-910d-d2f80d8662c4 | |
+++ e2label /dev/mapper/vg01-lvdstpol | |
++ label= | |
+++ tune2fs -l /dev/mapper/vg01-lvdstpol | |
+++ grep 'Block size' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ blocksize=4096 | |
+++ tune2fs -l /dev/mapper/vg01-lvdstpol | |
+++ grep 'Maximum mount count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ max_mounts=-1 | |
+++ tune2fs -l /dev/mapper/vg01-lvdstpol | |
+++ grep 'Check interval' | |
+++ cut -d '(' -f 1 | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ check_interval=0 | |
+++ tune2fs -l /dev/mapper/vg01-lvdstpol | |
+++ grep 'Reserved block count' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ reserved_blocks=655360 | |
++ let check_interval=0/86400 | |
++ echo -n 'uuid=ada54c98-e383-4706-910d-d2f80d8662c4 label=' | |
++ echo -n ' blocksize=4096 reserved_blocks=655360' | |
++ echo -n ' max_mounts=-1 check_interval=0d' | |
++ options='rw)' | |
++ options=rw | |
++ echo -n ' options=rw' | |
++ echo | |
++ read device on mountpoint type fstype options junk | |
++ '[' dev/mapper/vg00-lvopt = /dev/mapper/vg00-lvopt ']' | |
++ '[' '!' -b /dev/mapper/vg00-lvopt ']' | |
++ echo -n 'fs /dev/mapper/vg00-lvopt /opt ext3 ' | |
++ case "$fstype" in | |
++ tunefs=tune2fs | |
++ '[' ext3 = ext4 ']' | |
+++ tune2fs -l /dev/mapper/vg00-lvopt | |
+++ grep UUID | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ uuid=7304ab2a-204d-4dd1-a461-e64c4ba17bfb | |
+++ e2label /dev/mapper/vg00-lvopt | |
++ label= | |
+++ tune2fs -l /dev/mapper/vg00-lvopt | |
+++ grep 'Block size' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ blocksize=4096 | |
+++ tune2fs -l /dev/mapper/vg00-lvopt | |
+++ grep 'Maximum mount count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ max_mounts=-1 | |
+++ tune2fs -l /dev/mapper/vg00-lvopt | |
+++ grep 'Check interval' | |
+++ cut -d '(' -f 1 | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ check_interval=0 | |
+++ tune2fs -l /dev/mapper/vg00-lvopt | |
+++ grep 'Reserved block count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ reserved_blocks=13107 | |
++ let check_interval=0/86400 | |
++ echo -n 'uuid=7304ab2a-204d-4dd1-a461-e64c4ba17bfb label=' | |
++ echo -n ' blocksize=4096 reserved_blocks=13107' | |
++ echo -n ' max_mounts=-1 check_interval=0d' | |
++ options='rw)' | |
++ options=rw | |
++ echo -n ' options=rw' | |
++ echo | |
++ read device on mountpoint type fstype options junk | |
++ '[' dev/mapper/vg01-lvcachemgr = /dev/mapper/vg01-lvcachemgr ']' | |
++ '[' '!' -b /dev/mapper/vg01-lvcachemgr ']' | |
++ echo -n 'fs /dev/mapper/vg01-lvcachemgr /opt/cache ext3 ' | |
++ case "$fstype" in | |
++ tunefs=tune2fs | |
++ '[' ext3 = ext4 ']' | |
+++ tune2fs -l /dev/mapper/vg01-lvcachemgr | |
+++ grep UUID | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ uuid=b13a40a0-def7-4790-b738-50563a7868b9 | |
+++ e2label /dev/mapper/vg01-lvcachemgr | |
++ label= | |
+++ tune2fs -l /dev/mapper/vg01-lvcachemgr | |
+++ grep 'Block size' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ blocksize=4096 | |
+++ tune2fs -l /dev/mapper/vg01-lvcachemgr | |
+++ grep 'Maximum mount count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ max_mounts=-1 | |
+++ tune2fs -l /dev/mapper/vg01-lvcachemgr | |
+++ grep 'Check interval' | |
+++ cut -d '(' -f 1 | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ check_interval=0 | |
+++ tune2fs -l /dev/mapper/vg01-lvcachemgr | |
+++ grep 'Reserved block count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ reserved_blocks=131072 | |
++ let check_interval=0/86400 | |
++ echo -n 'uuid=b13a40a0-def7-4790-b738-50563a7868b9 label=' | |
++ echo -n ' blocksize=4096 reserved_blocks=131072' | |
++ echo -n ' max_mounts=-1 check_interval=0d' | |
++ options='rw)' | |
++ options=rw | |
++ echo -n ' options=rw' | |
++ echo | |
++ read device on mountpoint type fstype options junk | |
++ '[' dev/mapper/vg00-lvtmp = /dev/mapper/vg00-lvtmp ']' | |
++ '[' '!' -b /dev/mapper/vg00-lvtmp ']' | |
++ echo -n 'fs /dev/mapper/vg00-lvtmp /tmp ext2 ' | |
++ case "$fstype" in | |
++ tunefs=tune2fs | |
++ '[' ext2 = ext4 ']' | |
+++ tune2fs -l /dev/mapper/vg00-lvtmp | |
+++ grep UUID | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ uuid=2acb2f79-6cd0-4887-b203-8f8f07034a97 | |
+++ e2label /dev/mapper/vg00-lvtmp | |
++ label= | |
+++ tune2fs -l /dev/mapper/vg00-lvtmp | |
+++ grep 'Block size' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ blocksize=4096 | |
+++ tune2fs -l /dev/mapper/vg00-lvtmp | |
+++ grep 'Maximum mount count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ max_mounts=38 | |
+++ tune2fs -l /dev/mapper/vg00-lvtmp | |
+++ grep 'Check interval' | |
+++ cut -d '(' -f 1 | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ check_interval=15552000 | |
+++ tune2fs -l /dev/mapper/vg00-lvtmp | |
+++ grep 'Reserved block count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ reserved_blocks=131072 | |
++ let check_interval=15552000/86400 | |
++ echo -n 'uuid=2acb2f79-6cd0-4887-b203-8f8f07034a97 label=' | |
++ echo -n ' blocksize=4096 reserved_blocks=131072' | |
++ echo -n ' max_mounts=38 check_interval=180d' | |
++ options='rw)' | |
++ options=rw | |
++ echo -n ' options=rw' | |
++ echo | |
++ read device on mountpoint type fstype options junk | |
++ '[' dev/mapper/vg00-lvvar = /dev/mapper/vg00-lvvar ']' | |
++ '[' '!' -b /dev/mapper/vg00-lvvar ']' | |
++ echo -n 'fs /dev/mapper/vg00-lvvar /var ext3 ' | |
++ case "$fstype" in | |
++ tunefs=tune2fs | |
++ '[' ext3 = ext4 ']' | |
+++ tune2fs -l /dev/mapper/vg00-lvvar | |
+++ grep UUID | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ uuid=618af560-9869-4b70-bb07-2ee800ad4db9 | |
+++ e2label /dev/mapper/vg00-lvvar | |
++ label= | |
+++ tune2fs -l /dev/mapper/vg00-lvvar | |
+++ grep 'Block size' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ blocksize=4096 | |
+++ tune2fs -l /dev/mapper/vg00-lvvar | |
+++ grep 'Maximum mount count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ max_mounts=-1 | |
+++ tune2fs -l /dev/mapper/vg00-lvvar | |
+++ grep 'Check interval' | |
+++ cut -d '(' -f 1 | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ check_interval=0 | |
+++ tune2fs -l /dev/mapper/vg00-lvvar | |
+++ grep 'Reserved block count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ reserved_blocks=131072 | |
++ let check_interval=0/86400 | |
++ echo -n 'uuid=618af560-9869-4b70-bb07-2ee800ad4db9 label=' | |
++ echo -n ' blocksize=4096 reserved_blocks=131072' | |
++ echo -n ' max_mounts=-1 check_interval=0d' | |
++ options='rw)' | |
++ options=rw | |
++ echo -n ' options=rw' | |
++ echo | |
++ read device on mountpoint type fstype options junk | |
++ '[' dev/md0 = /dev/md0 ']' | |
++ '[' '!' -b /dev/md0 ']' | |
++ echo -n 'fs /dev/md0 /boot ext3 ' | |
++ case "$fstype" in | |
++ tunefs=tune2fs | |
++ '[' ext3 = ext4 ']' | |
+++ tune2fs -l /dev/md0 | |
+++ grep UUID | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ uuid=ae2aa583-39a6-430c-865b-66ba707d29fd | |
+++ e2label /dev/md0 | |
++ label= | |
+++ tune2fs -l /dev/md0 | |
+++ grep 'Block size' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ blocksize=1024 | |
+++ tune2fs -l /dev/md0 | |
+++ grep 'Maximum mount count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ max_mounts=-1 | |
+++ tune2fs -l /dev/md0 | |
+++ grep 'Check interval' | |
+++ cut -d '(' -f 1 | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ check_interval=0 | |
+++ tune2fs -l /dev/md0 | |
+++ grep 'Reserved block count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ reserved_blocks=10035 | |
++ let check_interval=0/86400 | |
++ echo -n 'uuid=ae2aa583-39a6-430c-865b-66ba707d29fd label=' | |
++ echo -n ' blocksize=1024 reserved_blocks=10035' | |
++ echo -n ' max_mounts=-1 check_interval=0d' | |
++ options='rw)' | |
++ options=rw | |
++ echo -n ' options=rw' | |
++ echo | |
++ read device on mountpoint type fstype options junk | |
++ '[' dev/mapper/vg01-lvmysql = /dev/mapper/vg01-lvmysql ']' | |
++ '[' '!' -b /dev/mapper/vg01-lvmysql ']' | |
++ echo -n 'fs /dev/mapper/vg01-lvmysql /var/lib/mysql ext3 ' | |
++ case "$fstype" in | |
++ tunefs=tune2fs | |
++ '[' ext3 = ext4 ']' | |
+++ tune2fs -l /dev/mapper/vg01-lvmysql | |
+++ grep UUID | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ uuid=ea34b450-bd3d-45e7-8a4a-f3048de90a81 | |
+++ e2label /dev/mapper/vg01-lvmysql | |
++ label= | |
+++ tune2fs -l /dev/mapper/vg01-lvmysql | |
+++ grep 'Block size' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ blocksize=4096 | |
+++ tune2fs -l /dev/mapper/vg01-lvmysql | |
+++ grep 'Maximum mount count' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ max_mounts=-1 | |
+++ tr -d ' ' | |
++ check_interval=0 | |
+++ tr -d ' ' | |
++ reserved_blocks=131072 | |
++ let check_interval=0/86400 | |
++ echo -n 'uuid=ea34b450-bd3d-45e7-8a4a-f3048de90a81 label=' | |
++ echo -n ' blocksize=4096 reserved_blocks=131072' | |
++ echo -n ' max_mounts=-1 check_interval=0d' | |
++ options='rw)' | |
++ options=rw | |
++ echo -n ' options=rw' | |
++ echo | |
++ read device on mountpoint type fstype options junk | |
++ '[' tmpfs = tmpfs ']' | |
++ continue | |
++ read device on mountpoint type fstype options junk | |
++ '[' none = none ']' | |
++ continue | |
++ read device on mountpoint type fstype options junk | |
++ '[' sunrpc = sunrpc ']' | |
++ continue | |
++ read device on mountpoint type fstype options junk | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:36 Including layout/save/GNU/Linux/24_swaps_layout.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/24_swaps_layout.sh | |
++ Log 'Saving Swap information.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2012-11-08 12:57:36 Saving Swap information.' | |
2012-11-08 12:57:36 Saving Swap information. | |
++ read filename type junk | |
+++ cat /proc/swaps | |
++ '[' Filename = Filename ']' | |
++ continue | |
++ read filename type junk | |
++ '[' /dev/md1 = Filename ']' | |
++ '[' partition = file ']' | |
+++ ls /dev/mapper/control /dev/mapper/vg00-lv00 /dev/mapper/vg00-lvopt /dev/mapper/vg00-lvtmp /dev/mapper/vg00-lvusr /dev/mapper/vg00-lvvar /dev/mapper/vg01-lvcachemgr /dev/mapper/vg01-lvdstpol /dev/mapper/vg01-lvmysql | |
++ for dlink in '$(ls /dev/mapper/*)' | |
+++ readlink -f /dev/mapper/control | |
++ target=/dev/mapper/control | |
++ '[' /dev/mapper/control = /dev/md1 ']' | |
++ for dlink in '$(ls /dev/mapper/*)' | |
+++ readlink -f /dev/mapper/vg00-lv00 | |
++ target=/dev/mapper/vg00-lv00 | |
++ '[' /dev/mapper/vg00-lv00 = /dev/md1 ']' | |
++ for dlink in '$(ls /dev/mapper/*)' | |
+++ readlink -f /dev/mapper/vg00-lvopt | |
++ target=/dev/mapper/vg00-lvopt | |
++ '[' /dev/mapper/vg00-lvopt = /dev/md1 ']' | |
++ for dlink in '$(ls /dev/mapper/*)' | |
+++ readlink -f /dev/mapper/vg00-lvtmp | |
++ target=/dev/mapper/vg00-lvtmp | |
++ '[' /dev/mapper/vg00-lvtmp = /dev/md1 ']' | |
++ for dlink in '$(ls /dev/mapper/*)' | |
+++ readlink -f /dev/mapper/vg00-lvusr | |
++ target=/dev/mapper/vg00-lvusr | |
++ '[' /dev/mapper/vg00-lvusr = /dev/md1 ']' | |
++ for dlink in '$(ls /dev/mapper/*)' | |
+++ readlink -f /dev/mapper/vg00-lvvar | |
++ target=/dev/mapper/vg00-lvvar | |
++ '[' /dev/mapper/vg00-lvvar = /dev/md1 ']' | |
++ for dlink in '$(ls /dev/mapper/*)' | |
+++ readlink -f /dev/mapper/vg01-lvcachemgr | |
++ target=/dev/mapper/vg01-lvcachemgr | |
++ '[' /dev/mapper/vg01-lvcachemgr = /dev/md1 ']' | |
++ for dlink in '$(ls /dev/mapper/*)' | |
+++ readlink -f /dev/mapper/vg01-lvdstpol | |
++ target=/dev/mapper/vg01-lvdstpol | |
++ '[' /dev/mapper/vg01-lvdstpol = /dev/md1 ']' | |
++ for dlink in '$(ls /dev/mapper/*)' | |
+++ readlink -f /dev/mapper/vg01-lvmysql | |
++ target=/dev/mapper/vg01-lvmysql | |
++ '[' /dev/mapper/vg01-lvmysql = /dev/md1 ']' | |
++ has_binary swaplabel | |
++ for bin in '$@' | |
++ type swaplabel | |
++ return 1 | |
++ echo 'swap /dev/md1 uuid= label=' | |
++ read filename type junk | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:36 Including layout/save/GNU/Linux/25_drbd_layout.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/25_drbd_layout.sh | |
++ '[' -e /proc/drbd ']' | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:36 Including layout/save/GNU/Linux/26_crypt_layout.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/26_crypt_layout.sh | |
++ has_binary cryptsetup | |
++ for bin in '$@' | |
++ type cryptsetup | |
++ return 0 | |
++ Log 'Saving Encrypted volumes.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2012-11-08 12:57:36 Saving Encrypted volumes.' | |
2012-11-08 12:57:36 Saving Encrypted volumes. | |
++ REQUIRED_PROGS=("${REQUIRED_PROGS[@]}" cryptsetup) | |
++ read dm_name junk | |
+++ dmsetup ls --target crypt | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:36 Including layout/save/GNU/Linux/27_hpraid_layout.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/27_hpraid_layout.sh | |
++ has_binary hpacucli | |
++ for bin in '$@' | |
++ type hpacucli | |
++ return 0 | |
++ PROGS=("${PROGS[@]}" hpacucli) | |
++++ get_path hpacucli | |
++++ type -p hpacucli | |
+++ grep ON_DIR= /usr/sbin/hpacucli | |
++ eval HPACUCLI_BIN_INSTALLATION_DIR=/opt/compaq/hpacucli/bld/ | |
+++ HPACUCLI_BIN_INSTALLATION_DIR=/opt/compaq/hpacucli/bld/ | |
++ COPY_AS_IS=("${COPY_AS_IS[@]}" "$HPACUCLI_BIN_INSTALLATION_DIR") | |
++ Log 'Saving HP SmartArray configuration.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2012-11-08 12:57:36 Saving HP SmartArray configuration.' | |
2012-11-08 12:57:36 Saving HP SmartArray configuration. | |
++ hpacucli ctrl all show detail | |
++ grep 'Controller Status:' /tmp/rear.yFIcNoexNlK8305/tmp/hpraid-detail.tmp | |
++ grep -v 'Controller Status: OK' | |
++ (( 1 != 1 )) | |
++ hpacucli ctrl all show config | |
++ controllers=() | |
++ drives= | |
++ spares= | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
+++ echo 'Smart Array P212 in Slot 3 (sn: PACCP9SY22MI )' | |
+++ sed -r 's/.*Slot ([0-9]).*/\1/' | |
++ nextslotnr=3 | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
+++ echo 'Smart Array P410 in Slot 2 (sn: PACCR9SXZPYD )' | |
+++ sed -r 's/.*Slot ([0-9]).*/\1/' | |
++ nextslotnr=2 | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
+++ echo 'array A (SAS, Unused Space: 0 MB)' | |
+++ sed -r 's/.*array ([A-Z]).*/\1/' | |
++ nextarrayname=A | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
++ write_logicaldrive | |
++ '[' -n '' ']' | |
++ drives= | |
++ spares= | |
++ slotnr=2 | |
++ arrayname=A | |
+++ echo 'logicaldrive 1 (190.0 GB, RAID 5, OK)' | |
+++ sed -r 's/.*logicaldrive ([^ ]+) .*RAID ([^ ,]+)[ ,]+.*/\1 \2/' | |
++ drivedetails='1 5' | |
++ raidlevel=5 | |
++ ldname=1 | |
++ tmpfile=/tmp/rear.yFIcNoexNlK8305/tmp/ctrl2-1.tmp | |
++ hpacucli ctrl slot=2 ld 1 show detail | |
+++ grep -i stripe /tmp/rear.yFIcNoexNlK8305/tmp/ctrl2-1.tmp | |
+++ sed -r 's/[^0-9]+([0-9]+).*/\1/' | |
++ stripesize= | |
+++ grep -i sectors /tmp/rear.yFIcNoexNlK8305/tmp/ctrl2-1.tmp | |
+++ sed -r 's/[^0-9]+([0-9]+).*/\1/' | |
++ sectors=32 | |
+++ grep -i name /tmp/rear.yFIcNoexNlK8305/tmp/ctrl2-1.tmp | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ devname=/dev/cciss/c2d0 | |
++ read line | |
++ case $line in | |
++ write_logicaldrive | |
++ '[' -n '' ']' | |
++ drives= | |
++ spares= | |
++ slotnr=2 | |
++ arrayname=A | |
+++ echo 'logicaldrive 2 (368.7 GB, RAID 5, OK)' | |
+++ sed -r 's/.*logicaldrive ([^ ]+) .*RAID ([^ ,]+)[ ,]+.*/\1 \2/' | |
++ drivedetails='2 5' | |
++ raidlevel=5 | |
++ ldname=2 | |
++ tmpfile=/tmp/rear.yFIcNoexNlK8305/tmp/ctrl2-2.tmp | |
++ hpacucli ctrl slot=2 ld 2 show detail | |
+++ grep -i stripe /tmp/rear.yFIcNoexNlK8305/tmp/ctrl2-2.tmp | |
+++ sed -r 's/[^0-9]+([0-9]+).*/\1/' | |
++ stripesize= | |
+++ grep -i sectors /tmp/rear.yFIcNoexNlK8305/tmp/ctrl2-2.tmp | |
+++ sed -r 's/[^0-9]+([0-9]+).*/\1/' | |
++ sectors=32 | |
+++ grep -i name /tmp/rear.yFIcNoexNlK8305/tmp/ctrl2-2.tmp | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ devname=/dev/cciss/c2d1 | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
++ '[' -n A ']' | |
+++ echo 'physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)' | |
+++ sed -r 's/.*physicaldrive ([^ ]+) .*/\1/' | |
++ pdname=1I:1:1 | |
++ echo 'physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)' | |
++ grep -q spare | |
++ drives=1I:1:1, | |
++ read line | |
++ case $line in | |
++ '[' -n A ']' | |
+++ echo 'physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)' | |
+++ sed -r 's/.*physicaldrive ([^ ]+) .*/\1/' | |
++ pdname=1I:1:2 | |
++ echo 'physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)' | |
++ grep -q spare | |
++ drives=1I:1:1,1I:1:2, | |
++ read line | |
++ case $line in | |
++ '[' -n A ']' | |
+++ echo 'physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 300 GB, OK)' | |
+++ sed -r 's/.*physicaldrive ([^ ]+) .*/\1/' | |
++ pdname=1I:1:3 | |
++ echo 'physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 300 GB, OK)' | |
++ grep -q spare | |
++ drives=1I:1:1,1I:1:2,1I:1:3, | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
+++ echo 'Smart Array P410i in Slot 0 (Embedded) (sn: 5001438006574860)' | |
+++ sed -r 's/.*Slot ([0-9]).*/\1/' | |
++ nextslotnr=0 | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
+++ echo 'array A (SAS, Unused Space: 0 MB)' | |
+++ sed -r 's/.*array ([A-Z]).*/\1/' | |
++ nextarrayname=A | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
++ write_logicaldrive | |
++ '[' -n 1I:1:1,1I:1:2,1I:1:3, ']' | |
++ echo 'logicaldrive /dev/cciss/c2d1 2|A|2 raid=5 drives=1I:1:1,1I:1:2,1I:1:3, spares= sectors=32 stripesize=' | |
++ IsInArray 2 | |
++ local needle=2 | |
++ shift | |
++ [[ 2 == '' ]] | |
++ shift | |
++ return 1 | |
++ controllers=("${controllers[@]}" "$slotnr") | |
++ drives= | |
++ spares= | |
++ slotnr=0 | |
++ arrayname=A | |
+++ echo 'logicaldrive 1 (190.0 GB, RAID 5, OK)' | |
+++ sed -r 's/.*logicaldrive ([^ ]+) .*RAID ([^ ,]+)[ ,]+.*/\1 \2/' | |
++ drivedetails='1 5' | |
++ raidlevel=5 | |
++ ldname=1 | |
++ tmpfile=/tmp/rear.yFIcNoexNlK8305/tmp/ctrl0-1.tmp | |
++ hpacucli ctrl slot=0 ld 1 show detail | |
+++ grep -i stripe /tmp/rear.yFIcNoexNlK8305/tmp/ctrl0-1.tmp | |
+++ sed -r 's/[^0-9]+([0-9]+).*/\1/' | |
++ stripesize= | |
+++ grep -i sectors /tmp/rear.yFIcNoexNlK8305/tmp/ctrl0-1.tmp | |
+++ sed -r 's/[^0-9]+([0-9]+).*/\1/' | |
++ sectors=32 | |
+++ grep -i name /tmp/rear.yFIcNoexNlK8305/tmp/ctrl0-1.tmp | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ devname=/dev/cciss/c0d0 | |
++ read line | |
++ case $line in | |
++ write_logicaldrive | |
++ '[' -n '' ']' | |
++ drives= | |
++ spares= | |
++ slotnr=0 | |
++ arrayname=A | |
+++ echo 'logicaldrive 2 (368.7 GB, RAID 5, OK)' | |
+++ sed -r 's/.*logicaldrive ([^ ]+) .*RAID ([^ ,]+)[ ,]+.*/\1 \2/' | |
++ drivedetails='2 5' | |
++ raidlevel=5 | |
++ ldname=2 | |
++ tmpfile=/tmp/rear.yFIcNoexNlK8305/tmp/ctrl0-2.tmp | |
++ hpacucli ctrl slot=0 ld 2 show detail | |
+++ grep -i stripe /tmp/rear.yFIcNoexNlK8305/tmp/ctrl0-2.tmp | |
+++ sed -r 's/[^0-9]+([0-9]+).*/\1/' | |
++ stripesize= | |
+++ grep -i sectors /tmp/rear.yFIcNoexNlK8305/tmp/ctrl0-2.tmp | |
+++ sed -r 's/[^0-9]+([0-9]+).*/\1/' | |
++ sectors=32 | |
+++ grep -i name /tmp/rear.yFIcNoexNlK8305/tmp/ctrl0-2.tmp | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ devname=/dev/cciss/c0d1 | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
++ '[' -n A ']' | |
+++ echo 'physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)' | |
+++ sed -r 's/.*physicaldrive ([^ ]+) .*/\1/' | |
++ pdname=1I:1:1 | |
++ echo 'physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)' | |
++ grep -q spare | |
++ drives=1I:1:1, | |
++ read line | |
++ case $line in | |
++ '[' -n A ']' | |
+++ echo 'physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)' | |
+++ sed -r 's/.*physicaldrive ([^ ]+) .*/\1/' | |
++ pdname=1I:1:2 | |
++ echo 'physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)' | |
++ grep -q spare | |
++ drives=1I:1:1,1I:1:2, | |
++ read line | |
++ case $line in | |
++ '[' -n A ']' | |
+++ echo 'physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 300 GB, OK)' | |
+++ sed -r 's/.*physicaldrive ([^ ]+) .*/\1/' | |
++ pdname=1I:1:3 | |
++ echo 'physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 300 GB, OK)' | |
++ grep -q spare | |
++ drives=1I:1:1,1I:1:2,1I:1:3, | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
++ read line | |
++ case $line in | |
++ read line | |
++ write_logicaldrive | |
++ '[' -n 1I:1:1,1I:1:2,1I:1:3, ']' | |
++ echo 'logicaldrive /dev/cciss/c0d1 0|A|2 raid=5 drives=1I:1:1,1I:1:2,1I:1:3, spares= sectors=32 stripesize=' | |
++ IsInArray 0 2 | |
++ local needle=0 | |
++ shift | |
++ [[ 0 == \2 ]] | |
++ shift | |
++ [[ 0 == '' ]] | |
++ shift | |
++ return 1 | |
++ controllers=("${controllers[@]}" "$slotnr") | |
++ drives= | |
++ spares= | |
++ for controller in '"${controllers[@]}"' | |
++ echo 'smartarray 2' | |
++ for controller in '"${controllers[@]}"' | |
++ echo 'smartarray 0' | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:47 Including layout/save/GNU/Linux/28_multipath_layout.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/28_multipath_layout.sh | |
+++ dmsetup ls --target multipath | |
++ read dm_name junk | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:47 Including layout/save/default/30_list_dependencies.sh | |
+ . /usr/share/rear/layout/save/default/30_list_dependencies.sh | |
++ generate_layout_dependencies | |
++ : | |
++ : | |
++ local type dev remainder name disk disks vgrp dm_vgrp part mp fs bd nmp temp_nm | |
++ read type remainder | |
+++ cat /var/lib/rear/layout/disklayout.conf | |
++ case $type in | |
+++ echo '/dev/cciss/c0d0 204007833600 msdos' | |
+++ cut -d ' ' -f 1 | |
++ name=/dev/cciss/c0d0 | |
++ add_component /dev/cciss/c0d0 disk | |
++ echo 'todo /dev/cciss/c0d0 disk' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/cciss/c0d1 395924748288 msdos' | |
+++ cut -d ' ' -f 1 | |
++ name=/dev/cciss/c0d1 | |
++ add_component /dev/cciss/c0d1 disk | |
++ echo 'todo /dev/cciss/c0d1 disk' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/cciss/c1d0 0' | |
+++ cut -d ' ' -f 1 | |
++ name=/dev/cciss/c1d0 | |
++ add_component /dev/cciss/c1d0 disk | |
++ echo 'todo /dev/cciss/c1d0 disk' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/cciss/c2d0 204007833600 msdos' | |
+++ cut -d ' ' -f 1 | |
++ name=/dev/cciss/c2d0 | |
++ add_component /dev/cciss/c2d0 disk | |
++ echo 'todo /dev/cciss/c2d0 disk' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/cciss/c2d1 395924748288 msdos' | |
+++ cut -d ' ' -f 1 | |
++ name=/dev/cciss/c2d1 | |
++ add_component /dev/cciss/c2d1 disk | |
++ echo 'todo /dev/cciss/c2d1 disk' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/cciss/c0d0 205599744 32256 primary boot,raid /dev/cciss/c0d0p1' | |
+++ cut -d ' ' -f 1 | |
++ disk=/dev/cciss/c0d0 | |
+++ echo '/dev/cciss/c0d0 205599744 32256 primary boot,raid /dev/cciss/c0d0p1' | |
+++ cut -d ' ' -f 6 | |
++ name=/dev/cciss/c0d0p1 | |
++ add_dependency /dev/cciss/c0d0p1 /dev/cciss/c0d0 | |
++ echo '/dev/cciss/c0d0p1 /dev/cciss/c0d0' | |
++ add_component /dev/cciss/c0d0p1 part | |
++ echo 'todo /dev/cciss/c0d0p1 part' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/cciss/c0d0 195202344960 205632000 primary raid /dev/cciss/c0d0p2' | |
+++ cut -d ' ' -f 1 | |
++ disk=/dev/cciss/c0d0 | |
+++ echo '/dev/cciss/c0d0 195202344960 205632000 primary raid /dev/cciss/c0d0p2' | |
+++ cut -d ' ' -f 6 | |
++ name=/dev/cciss/c0d0p2 | |
++ add_dependency /dev/cciss/c0d0p2 /dev/cciss/c0d0 | |
++ echo '/dev/cciss/c0d0p2 /dev/cciss/c0d0' | |
++ add_component /dev/cciss/c0d0p2 part | |
++ echo 'todo /dev/cciss/c0d0p2 part' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/cciss/c0d0 8587192320 195407976960 primary raid /dev/cciss/c0d0p3' | |
+++ cut -d ' ' -f 1 | |
++ disk=/dev/cciss/c0d0 | |
+++ echo '/dev/cciss/c0d0 8587192320 195407976960 primary raid /dev/cciss/c0d0p3' | |
+++ cut -d ' ' -f 6 | |
++ name=/dev/cciss/c0d0p3 | |
++ add_dependency /dev/cciss/c0d0p3 /dev/cciss/c0d0 | |
++ echo '/dev/cciss/c0d0p3 /dev/cciss/c0d0' | |
++ add_component /dev/cciss/c0d0p3 part | |
++ echo 'todo /dev/cciss/c0d0p3 part' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/cciss/c0d1 395923820544 32256 primary boot,raid /dev/cciss/c0d1p1' | |
+++ cut -d ' ' -f 1 | |
++ disk=/dev/cciss/c0d1 | |
+++ echo '/dev/cciss/c0d1 395923820544 32256 primary boot,raid /dev/cciss/c0d1p1' | |
+++ cut -d ' ' -f 6 | |
++ name=/dev/cciss/c0d1p1 | |
++ add_dependency /dev/cciss/c0d1p1 /dev/cciss/c0d1 | |
++ echo '/dev/cciss/c0d1p1 /dev/cciss/c0d1' | |
++ add_component /dev/cciss/c0d1p1 part | |
++ echo 'todo /dev/cciss/c0d1p1 part' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/cciss/c2d0 205599744 32256 primary boot,raid /dev/cciss/c2d0p1' | |
+++ cut -d ' ' -f 1 | |
++ disk=/dev/cciss/c2d0 | |
+++ echo '/dev/cciss/c2d0 205599744 32256 primary boot,raid /dev/cciss/c2d0p1' | |
+++ cut -d ' ' -f 6 | |
++ name=/dev/cciss/c2d0p1 | |
++ add_dependency /dev/cciss/c2d0p1 /dev/cciss/c2d0 | |
++ echo '/dev/cciss/c2d0p1 /dev/cciss/c2d0' | |
++ add_component /dev/cciss/c2d0p1 part | |
++ echo 'todo /dev/cciss/c2d0p1 part' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/cciss/c2d0 195202344960 205632000 primary raid /dev/cciss/c2d0p2' | |
+++ cut -d ' ' -f 1 | |
++ disk=/dev/cciss/c2d0 | |
+++ echo '/dev/cciss/c2d0 195202344960 205632000 primary raid /dev/cciss/c2d0p2' | |
+++ cut -d ' ' -f 6 | |
++ name=/dev/cciss/c2d0p2 | |
++ add_dependency /dev/cciss/c2d0p2 /dev/cciss/c2d0 | |
++ echo '/dev/cciss/c2d0p2 /dev/cciss/c2d0' | |
++ add_component /dev/cciss/c2d0p2 part | |
++ echo 'todo /dev/cciss/c2d0p2 part' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/cciss/c2d0 8587192320 195407976960 primary raid /dev/cciss/c2d0p3' | |
+++ cut -d ' ' -f 1 | |
++ disk=/dev/cciss/c2d0 | |
+++ echo '/dev/cciss/c2d0 8587192320 195407976960 primary raid /dev/cciss/c2d0p3' | |
+++ cut -d ' ' -f 6 | |
++ name=/dev/cciss/c2d0p3 | |
++ add_dependency /dev/cciss/c2d0p3 /dev/cciss/c2d0 | |
++ echo '/dev/cciss/c2d0p3 /dev/cciss/c2d0' | |
++ add_component /dev/cciss/c2d0p3 part | |
++ echo 'todo /dev/cciss/c2d0p3 part' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/cciss/c2d1 395923820544 32256 primary boot,raid /dev/cciss/c2d1p1' | |
+++ cut -d ' ' -f 1 | |
++ disk=/dev/cciss/c2d1 | |
+++ echo '/dev/cciss/c2d1 395923820544 32256 primary boot,raid /dev/cciss/c2d1p1' | |
+++ cut -d ' ' -f 6 | |
++ name=/dev/cciss/c2d1p1 | |
++ add_dependency /dev/cciss/c2d1p1 /dev/cciss/c2d1 | |
++ echo '/dev/cciss/c2d1p1 /dev/cciss/c2d1' | |
++ add_component /dev/cciss/c2d1p1 part | |
++ echo 'todo /dev/cciss/c2d1p1 part' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/md2 level=raid1 raid-devices=2 uuid=576f3b42:f4f78ec1:47c9a0e6:ed256805 devices=/dev/cciss/c0d0p2,/dev/cciss/c2d0p2' | |
+++ cut -d ' ' -f 1 | |
++ name=/dev/md2 | |
++ disks=($(echo "$remainder" | sed -r "s/.*devices=([^ ]+).*/\1/" | tr ',' ' ')) | |
+++ echo '/dev/md2 level=raid1 raid-devices=2 uuid=576f3b42:f4f78ec1:47c9a0e6:ed256805 devices=/dev/cciss/c0d0p2,/dev/cciss/c2d0p2' | |
+++ sed -r 's/.*devices=([^ ]+).*/\1/' | |
+++ tr , ' ' | |
++ for disk in '"${disks[@]}"' | |
++ add_dependency /dev/md2 /dev/cciss/c0d0p2 | |
++ echo '/dev/md2 /dev/cciss/c0d0p2' | |
++ for disk in '"${disks[@]}"' | |
++ add_dependency /dev/md2 /dev/cciss/c2d0p2 | |
++ echo '/dev/md2 /dev/cciss/c2d0p2' | |
++ add_component /dev/md2 raid | |
++ echo 'todo /dev/md2 raid' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/md3 level=raid1 raid-devices=2 uuid=3a598773:44c93d17:6a53c825:ddd60cae devices=/dev/cciss/c0d1p1,/dev/cciss/c2d1p1' | |
+++ cut -d ' ' -f 1 | |
++ name=/dev/md3 | |
++ disks=($(echo "$remainder" | sed -r "s/.*devices=([^ ]+).*/\1/" | tr ',' ' ')) | |
+++ echo '/dev/md3 level=raid1 raid-devices=2 uuid=3a598773:44c93d17:6a53c825:ddd60cae devices=/dev/cciss/c0d1p1,/dev/cciss/c2d1p1' | |
+++ sed -r 's/.*devices=([^ ]+).*/\1/' | |
+++ tr , ' ' | |
++ for disk in '"${disks[@]}"' | |
++ add_dependency /dev/md3 /dev/cciss/c0d1p1 | |
++ echo '/dev/md3 /dev/cciss/c0d1p1' | |
++ for disk in '"${disks[@]}"' | |
++ add_dependency /dev/md3 /dev/cciss/c2d1p1 | |
++ echo '/dev/md3 /dev/cciss/c2d1p1' | |
++ add_component /dev/md3 raid | |
++ echo 'todo /dev/md3 raid' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/md1 level=raid1 raid-devices=2 uuid=9ec4b0c5:32eed648:c9794eaf:977398e0 devices=/dev/cciss/c0d0p3,/dev/cciss/c2d0p3' | |
+++ cut -d ' ' -f 1 | |
++ name=/dev/md1 | |
++ disks=($(echo "$remainder" | sed -r "s/.*devices=([^ ]+).*/\1/" | tr ',' ' ')) | |
+++ echo '/dev/md1 level=raid1 raid-devices=2 uuid=9ec4b0c5:32eed648:c9794eaf:977398e0 devices=/dev/cciss/c0d0p3,/dev/cciss/c2d0p3' | |
+++ sed -r 's/.*devices=([^ ]+).*/\1/' | |
+++ tr , ' ' | |
++ for disk in '"${disks[@]}"' | |
++ add_dependency /dev/md1 /dev/cciss/c0d0p3 | |
++ echo '/dev/md1 /dev/cciss/c0d0p3' | |
++ for disk in '"${disks[@]}"' | |
++ add_dependency /dev/md1 /dev/cciss/c2d0p3 | |
++ echo '/dev/md1 /dev/cciss/c2d0p3' | |
++ add_component /dev/md1 raid | |
++ echo 'todo /dev/md1 raid' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/md0 level=raid1 raid-devices=2 uuid=822bb87e:217d3fc3:a1889996:6747669b devices=/dev/cciss/c0d0p1,/dev/cciss/c2d0p1' | |
+++ cut -d ' ' -f 1 | |
++ name=/dev/md0 | |
++ disks=($(echo "$remainder" | sed -r "s/.*devices=([^ ]+).*/\1/" | tr ',' ' ')) | |
+++ echo '/dev/md0 level=raid1 raid-devices=2 uuid=822bb87e:217d3fc3:a1889996:6747669b devices=/dev/cciss/c0d0p1,/dev/cciss/c2d0p1' | |
+++ sed -r 's/.*devices=([^ ]+).*/\1/' | |
+++ tr , ' ' | |
++ for disk in '"${disks[@]}"' | |
++ add_dependency /dev/md0 /dev/cciss/c0d0p1 | |
++ echo '/dev/md0 /dev/cciss/c0d0p1' | |
++ for disk in '"${disks[@]}"' | |
++ add_dependency /dev/md0 /dev/cciss/c2d0p1 | |
++ echo '/dev/md0 /dev/cciss/c2d0p1' | |
++ add_component /dev/md0 raid | |
++ echo 'todo /dev/md0 raid' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/vg01 /dev/md3 96gR3x-8Rcl-zu92-qalr-9bc5-nixQ-iykOSs 773288576' | |
+++ cut -d ' ' -f 1 | |
++ vgrp=/dev/vg01 | |
+++ echo '/dev/vg01 /dev/md3 96gR3x-8Rcl-zu92-qalr-9bc5-nixQ-iykOSs 773288576' | |
+++ cut -d ' ' -f 2 | |
++ part=/dev/md3 | |
++ add_dependency /dev/vg01 pv:/dev/md3 | |
++ echo '/dev/vg01 pv:/dev/md3' | |
++ add_dependency pv:/dev/md3 /dev/md3 | |
++ echo 'pv:/dev/md3 /dev/md3' | |
++ add_component pv:/dev/md3 lvmdev | |
++ echo 'todo pv:/dev/md3 lvmdev' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/vg00 /dev/md2 2IDAWJ-cG8l-Q8yP-D9fR-fiPW-GoU9-icEY20 381254400' | |
+++ cut -d ' ' -f 1 | |
++ vgrp=/dev/vg00 | |
+++ echo '/dev/vg00 /dev/md2 2IDAWJ-cG8l-Q8yP-D9fR-fiPW-GoU9-icEY20 381254400' | |
+++ cut -d ' ' -f 2 | |
++ part=/dev/md2 | |
++ add_dependency /dev/vg00 pv:/dev/md2 | |
++ echo '/dev/vg00 pv:/dev/md2' | |
++ add_dependency pv:/dev/md2 /dev/md2 | |
++ echo 'pv:/dev/md2 /dev/md2' | |
++ add_component pv:/dev/md2 lvmdev | |
++ echo 'todo pv:/dev/md2 lvmdev' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/vg01 32768 11799 386629632' | |
+++ cut -d ' ' -f 1 | |
++ name=/dev/vg01 | |
++ add_component /dev/vg01 lvmgrp | |
++ echo 'todo /dev/vg01 lvmgrp' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/vg00 32768 5817 190611456' | |
+++ cut -d ' ' -f 1 | |
++ name=/dev/vg00 | |
++ add_component /dev/vg00 lvmgrp | |
++ echo 'todo /dev/vg00 lvmgrp' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/vg01 lvdstpol 1600 104857600' | |
+++ cut -d ' ' -f 1 | |
++ vgrp=/dev/vg01 | |
+++ echo '/dev/vg01 lvdstpol 1600 104857600' | |
+++ cut -d ' ' -f 2 | |
++ name=lvdstpol | |
++ dm_vgrp=/dev/vg01 | |
++ add_dependency /dev/mapper/vg01-lvdstpol /dev/vg01 | |
++ echo '/dev/mapper/vg01-lvdstpol /dev/vg01' | |
++ add_component /dev/mapper/vg01-lvdstpol lvmvol | |
++ echo 'todo /dev/mapper/vg01-lvdstpol lvmvol' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/vg01 lvcachemgr 320 20971520' | |
+++ cut -d ' ' -f 1 | |
++ vgrp=/dev/vg01 | |
+++ echo '/dev/vg01 lvcachemgr 320 20971520' | |
+++ cut -d ' ' -f 2 | |
++ name=lvcachemgr | |
++ dm_vgrp=/dev/vg01 | |
++ add_dependency /dev/mapper/vg01-lvcachemgr /dev/vg01 | |
++ echo '/dev/mapper/vg01-lvcachemgr /dev/vg01' | |
++ add_component /dev/mapper/vg01-lvcachemgr lvmvol | |
++ echo 'todo /dev/mapper/vg01-lvcachemgr lvmvol' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/vg01 lvmysql 320 20971520' | |
+++ cut -d ' ' -f 1 | |
++ vgrp=/dev/vg01 | |
+++ echo '/dev/vg01 lvmysql 320 20971520' | |
+++ cut -d ' ' -f 2 | |
++ name=lvmysql | |
++ dm_vgrp=/dev/vg01 | |
++ add_dependency /dev/mapper/vg01-lvmysql /dev/vg01 | |
++ echo '/dev/mapper/vg01-lvmysql /dev/vg01' | |
++ add_component /dev/mapper/vg01-lvmysql lvmvol | |
++ echo 'todo /dev/mapper/vg01-lvmysql lvmvol' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/vg00 lv00 32 2097152' | |
+++ cut -d ' ' -f 1 | |
++ vgrp=/dev/vg00 | |
+++ echo '/dev/vg00 lv00 32 2097152' | |
+++ cut -d ' ' -f 2 | |
++ name=lv00 | |
++ dm_vgrp=/dev/vg00 | |
++ add_dependency /dev/mapper/vg00-lv00 /dev/vg00 | |
++ echo '/dev/mapper/vg00-lv00 /dev/vg00' | |
++ add_component /dev/mapper/vg00-lv00 lvmvol | |
++ echo 'todo /dev/mapper/vg00-lv00 lvmvol' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/vg00 lvusr 160 10485760' | |
+++ cut -d ' ' -f 1 | |
++ vgrp=/dev/vg00 | |
+++ echo '/dev/vg00 lvusr 160 10485760' | |
+++ cut -d ' ' -f 2 | |
++ name=lvusr | |
++ dm_vgrp=/dev/vg00 | |
++ add_dependency /dev/mapper/vg00-lvusr /dev/vg00 | |
++ echo '/dev/mapper/vg00-lvusr /dev/vg00' | |
++ add_component /dev/mapper/vg00-lvusr lvmvol | |
++ echo 'todo /dev/mapper/vg00-lvusr lvmvol' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/vg00 lvopt 32 2097152' | |
+++ cut -d ' ' -f 1 | |
++ vgrp=/dev/vg00 | |
+++ echo '/dev/vg00 lvopt 32 2097152' | |
+++ cut -d ' ' -f 2 | |
++ name=lvopt | |
++ dm_vgrp=/dev/vg00 | |
++ add_dependency /dev/mapper/vg00-lvopt /dev/vg00 | |
++ echo '/dev/mapper/vg00-lvopt /dev/vg00' | |
++ add_component /dev/mapper/vg00-lvopt lvmvol | |
++ echo 'todo /dev/mapper/vg00-lvopt lvmvol' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/vg00 lvtmp 320 20971520' | |
+++ cut -d ' ' -f 1 | |
++ vgrp=/dev/vg00 | |
+++ echo '/dev/vg00 lvtmp 320 20971520' | |
+++ cut -d ' ' -f 2 | |
++ name=lvtmp | |
++ dm_vgrp=/dev/vg00 | |
++ add_dependency /dev/mapper/vg00-lvtmp /dev/vg00 | |
++ echo '/dev/mapper/vg00-lvtmp /dev/vg00' | |
++ add_component /dev/mapper/vg00-lvtmp lvmvol | |
++ echo 'todo /dev/mapper/vg00-lvtmp lvmvol' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/vg00 lvvar 320 20971520' | |
+++ cut -d ' ' -f 1 | |
++ vgrp=/dev/vg00 | |
+++ echo '/dev/vg00 lvvar 320 20971520' | |
+++ cut -d ' ' -f 2 | |
++ name=lvvar | |
++ dm_vgrp=/dev/vg00 | |
++ add_dependency /dev/mapper/vg00-lvvar /dev/vg00 | |
++ echo '/dev/mapper/vg00-lvvar /dev/vg00' | |
++ add_component /dev/mapper/vg00-lvvar lvmvol | |
++ echo 'todo /dev/mapper/vg00-lvvar lvmvol' | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/mapper/vg00-lv00 / ext3 uuid=3802093d-713b-475c-ad0e-e1c9c3496af4 label= blocksize=4096 reserved_blocks=13107 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 1 | |
++ dev=/dev/mapper/vg00-lv00 | |
+++ echo '/dev/mapper/vg00-lv00 / ext3 uuid=3802093d-713b-475c-ad0e-e1c9c3496af4 label= blocksize=4096 reserved_blocks=13107 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 2 | |
++ mp=/ | |
++ add_dependency fs:/ /dev/mapper/vg00-lv00 | |
++ echo 'fs:/ /dev/mapper/vg00-lv00' | |
++ add_component fs:/ fs | |
++ echo 'todo fs:/ fs' | |
++ read fs bd nmp junk | |
+++ grep '^fs' /var/lib/rear/layout/disklayout.conf | |
++ '[' / '!=' / ']' | |
++ temp_nmp=/ | |
++ '[' '' '!=' / ']' | |
++ '[' / '!=' / ']' | |
++ read fs bd nmp junk | |
++ '[' /usr '!=' / ']' | |
++ temp_nmp=/usr/ | |
++ '[' / '!=' / ']' | |
++ read fs bd nmp junk | |
++ '[' /dstpol '!=' / ']' | |
++ temp_nmp=/dstpol/ | |
++ '[' / '!=' / ']' | |
++ read fs bd nmp junk | |
++ '[' /opt '!=' / ']' | |
++ temp_nmp=/opt/ | |
++ '[' / '!=' / ']' | |
++ read fs bd nmp junk | |
++ '[' /opt/cache '!=' / ']' | |
++ temp_nmp=/opt/cache/ | |
++ '[' / '!=' / ']' | |
++ read fs bd nmp junk | |
++ '[' /tmp '!=' / ']' | |
++ temp_nmp=/tmp/ | |
++ '[' / '!=' / ']' | |
++ read fs bd nmp junk | |
++ '[' /var '!=' / ']' | |
++ temp_nmp=/var/ | |
++ '[' / '!=' / ']' | |
++ read fs bd nmp junk | |
++ '[' /boot '!=' / ']' | |
++ temp_nmp=/boot/ | |
++ '[' / '!=' / ']' | |
++ read fs bd nmp junk | |
++ '[' /var/lib/mysql '!=' / ']' | |
++ temp_nmp=/var/lib/mysql/ | |
++ '[' / '!=' / ']' | |
++ read fs bd nmp junk | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/mapper/vg00-lvusr /usr ext3 uuid=a151e9a2-5189-4e35-b6f0-57458d7bb416 label= blocksize=4096 reserved_blocks=65536 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 1 | |
++ dev=/dev/mapper/vg00-lvusr | |
+++ echo '/dev/mapper/vg00-lvusr /usr ext3 uuid=a151e9a2-5189-4e35-b6f0-57458d7bb416 label= blocksize=4096 reserved_blocks=65536 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 2 | |
++ mp=/usr | |
++ add_dependency fs:/usr /dev/mapper/vg00-lvusr | |
++ echo 'fs:/usr /dev/mapper/vg00-lvusr' | |
++ add_component fs:/usr fs | |
++ echo 'todo fs:/usr fs' | |
++ read fs bd nmp junk | |
+++ grep '^fs' /var/lib/rear/layout/disklayout.conf | |
++ '[' / '!=' / ']' | |
++ temp_nmp=/ | |
++ '[' usr '!=' /usr ']' | |
++ '[' /usr '!=' / ']' | |
++ add_dependency fs:/usr fs:/ | |
++ echo 'fs:/usr fs:/' | |
++ read fs bd nmp junk | |
++ '[' /usr '!=' / ']' | |
++ temp_nmp=/usr/ | |
++ '[' /usr '!=' /usr ']' | |
++ read fs bd nmp junk | |
++ '[' /dstpol '!=' / ']' | |
++ temp_nmp=/dstpol/ | |
++ '[' /usr '!=' /usr ']' | |
++ read fs bd nmp junk | |
++ '[' /opt '!=' / ']' | |
++ temp_nmp=/opt/ | |
++ '[' /usr '!=' /usr ']' | |
++ read fs bd nmp junk | |
++ '[' /opt/cache '!=' / ']' | |
++ temp_nmp=/opt/cache/ | |
++ '[' /usr '!=' /usr ']' | |
++ read fs bd nmp junk | |
++ '[' /tmp '!=' / ']' | |
++ temp_nmp=/tmp/ | |
++ '[' /usr '!=' /usr ']' | |
++ read fs bd nmp junk | |
++ '[' /var '!=' / ']' | |
++ temp_nmp=/var/ | |
++ '[' /usr '!=' /usr ']' | |
++ read fs bd nmp junk | |
++ '[' /boot '!=' / ']' | |
++ temp_nmp=/boot/ | |
++ '[' /usr '!=' /usr ']' | |
++ read fs bd nmp junk | |
++ '[' /var/lib/mysql '!=' / ']' | |
++ temp_nmp=/var/lib/mysql/ | |
++ '[' /usr '!=' /usr ']' | |
++ read fs bd nmp junk | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/mapper/vg01-lvdstpol /dstpol ext3 uuid=ada54c98-e383-4706-910d-d2f80d8662c4 label= blocksize=4096 reserved_blocks=655360 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 1 | |
++ dev=/dev/mapper/vg01-lvdstpol | |
+++ echo '/dev/mapper/vg01-lvdstpol /dstpol ext3 uuid=ada54c98-e383-4706-910d-d2f80d8662c4 label= blocksize=4096 reserved_blocks=655360 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 2 | |
++ mp=/dstpol | |
++ add_dependency fs:/dstpol /dev/mapper/vg01-lvdstpol | |
++ echo 'fs:/dstpol /dev/mapper/vg01-lvdstpol' | |
++ add_component fs:/dstpol fs | |
++ echo 'todo fs:/dstpol fs' | |
++ read fs bd nmp junk | |
+++ grep '^fs' /var/lib/rear/layout/disklayout.conf | |
++ '[' / '!=' / ']' | |
++ temp_nmp=/ | |
++ '[' dstpol '!=' /dstpol ']' | |
++ '[' /dstpol '!=' / ']' | |
++ add_dependency fs:/dstpol fs:/ | |
++ echo 'fs:/dstpol fs:/' | |
++ read fs bd nmp junk | |
++ '[' /usr '!=' / ']' | |
++ temp_nmp=/usr/ | |
++ '[' /dstpol '!=' /dstpol ']' | |
++ read fs bd nmp junk | |
++ '[' /dstpol '!=' / ']' | |
++ temp_nmp=/dstpol/ | |
++ '[' /dstpol '!=' /dstpol ']' | |
++ read fs bd nmp junk | |
++ '[' /opt '!=' / ']' | |
++ temp_nmp=/opt/ | |
++ '[' /dstpol '!=' /dstpol ']' | |
++ read fs bd nmp junk | |
++ '[' /opt/cache '!=' / ']' | |
++ temp_nmp=/opt/cache/ | |
++ '[' /dstpol '!=' /dstpol ']' | |
++ read fs bd nmp junk | |
++ '[' /tmp '!=' / ']' | |
++ temp_nmp=/tmp/ | |
++ '[' /dstpol '!=' /dstpol ']' | |
++ read fs bd nmp junk | |
++ '[' /var '!=' / ']' | |
++ temp_nmp=/var/ | |
++ '[' /dstpol '!=' /dstpol ']' | |
++ read fs bd nmp junk | |
++ '[' /boot '!=' / ']' | |
++ temp_nmp=/boot/ | |
++ '[' /dstpol '!=' /dstpol ']' | |
++ read fs bd nmp junk | |
++ '[' /var/lib/mysql '!=' / ']' | |
++ temp_nmp=/var/lib/mysql/ | |
++ '[' /dstpol '!=' /dstpol ']' | |
++ read fs bd nmp junk | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/mapper/vg00-lvopt /opt ext3 uuid=7304ab2a-204d-4dd1-a461-e64c4ba17bfb label= blocksize=4096 reserved_blocks=13107 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 1 | |
++ dev=/dev/mapper/vg00-lvopt | |
+++ echo '/dev/mapper/vg00-lvopt /opt ext3 uuid=7304ab2a-204d-4dd1-a461-e64c4ba17bfb label= blocksize=4096 reserved_blocks=13107 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 2 | |
++ mp=/opt | |
++ add_dependency fs:/opt /dev/mapper/vg00-lvopt | |
++ echo 'fs:/opt /dev/mapper/vg00-lvopt' | |
++ add_component fs:/opt fs | |
++ echo 'todo fs:/opt fs' | |
+++ grep '^fs' /var/lib/rear/layout/disklayout.conf | |
++ read fs bd nmp junk | |
++ '[' / '!=' / ']' | |
++ temp_nmp=/ | |
++ '[' opt '!=' /opt ']' | |
++ '[' /opt '!=' / ']' | |
++ add_dependency fs:/opt fs:/ | |
++ echo 'fs:/opt fs:/' | |
++ read fs bd nmp junk | |
++ '[' /usr '!=' / ']' | |
++ temp_nmp=/usr/ | |
++ '[' /opt '!=' /opt ']' | |
++ read fs bd nmp junk | |
++ '[' /dstpol '!=' / ']' | |
++ temp_nmp=/dstpol/ | |
++ '[' /opt '!=' /opt ']' | |
++ read fs bd nmp junk | |
++ '[' /opt '!=' / ']' | |
++ temp_nmp=/opt/ | |
++ '[' /opt '!=' /opt ']' | |
++ read fs bd nmp junk | |
++ '[' /opt/cache '!=' / ']' | |
++ temp_nmp=/opt/cache/ | |
++ '[' /opt '!=' /opt ']' | |
++ read fs bd nmp junk | |
++ '[' /tmp '!=' / ']' | |
++ temp_nmp=/tmp/ | |
++ '[' /opt '!=' /opt ']' | |
++ read fs bd nmp junk | |
++ '[' /var '!=' / ']' | |
++ temp_nmp=/var/ | |
++ '[' /opt '!=' /opt ']' | |
++ read fs bd nmp junk | |
++ '[' /boot '!=' / ']' | |
++ temp_nmp=/boot/ | |
++ '[' /opt '!=' /opt ']' | |
++ read fs bd nmp junk | |
++ '[' /var/lib/mysql '!=' / ']' | |
++ temp_nmp=/var/lib/mysql/ | |
++ '[' /opt '!=' /opt ']' | |
++ read fs bd nmp junk | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/mapper/vg01-lvcachemgr /opt/cache ext3 uuid=b13a40a0-def7-4790-b738-50563a7868b9 label= blocksize=4096 reserved_blocks=131072 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 1 | |
++ dev=/dev/mapper/vg01-lvcachemgr | |
+++ echo '/dev/mapper/vg01-lvcachemgr /opt/cache ext3 uuid=b13a40a0-def7-4790-b738-50563a7868b9 label= blocksize=4096 reserved_blocks=131072 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 2 | |
++ mp=/opt/cache | |
++ add_dependency fs:/opt/cache /dev/mapper/vg01-lvcachemgr | |
++ echo 'fs:/opt/cache /dev/mapper/vg01-lvcachemgr' | |
++ add_component fs:/opt/cache fs | |
++ echo 'todo fs:/opt/cache fs' | |
++ read fs bd nmp junk | |
+++ grep '^fs' /var/lib/rear/layout/disklayout.conf | |
++ '[' / '!=' / ']' | |
++ temp_nmp=/ | |
++ '[' opt/cache '!=' /opt/cache ']' | |
++ '[' /opt/cache '!=' / ']' | |
++ add_dependency fs:/opt/cache fs:/ | |
++ echo 'fs:/opt/cache fs:/' | |
++ read fs bd nmp junk | |
++ '[' /usr '!=' / ']' | |
++ temp_nmp=/usr/ | |
++ '[' /opt/cache '!=' /opt/cache ']' | |
++ read fs bd nmp junk | |
++ '[' /dstpol '!=' / ']' | |
++ temp_nmp=/dstpol/ | |
++ '[' /opt/cache '!=' /opt/cache ']' | |
++ read fs bd nmp junk | |
++ '[' /opt '!=' / ']' | |
++ temp_nmp=/opt/ | |
++ '[' cache '!=' /opt/cache ']' | |
++ '[' /opt/cache '!=' /opt ']' | |
++ add_dependency fs:/opt/cache fs:/opt | |
++ echo 'fs:/opt/cache fs:/opt' | |
++ read fs bd nmp junk | |
++ '[' /opt/cache '!=' / ']' | |
++ temp_nmp=/opt/cache/ | |
++ '[' /opt/cache '!=' /opt/cache ']' | |
++ read fs bd nmp junk | |
++ '[' /tmp '!=' / ']' | |
++ temp_nmp=/tmp/ | |
++ '[' /opt/cache '!=' /opt/cache ']' | |
++ read fs bd nmp junk | |
++ '[' /var '!=' / ']' | |
++ temp_nmp=/var/ | |
++ '[' /opt/cache '!=' /opt/cache ']' | |
++ read fs bd nmp junk | |
++ '[' /boot '!=' / ']' | |
++ temp_nmp=/boot/ | |
++ '[' /opt/cache '!=' /opt/cache ']' | |
++ read fs bd nmp junk | |
++ '[' /var/lib/mysql '!=' / ']' | |
++ temp_nmp=/var/lib/mysql/ | |
++ '[' /opt/cache '!=' /opt/cache ']' | |
++ read fs bd nmp junk | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/mapper/vg00-lvtmp /tmp ext2 uuid=2acb2f79-6cd0-4887-b203-8f8f07034a97 label= blocksize=4096 reserved_blocks=131072 max_mounts=38 check_interval=180d options=rw' | |
+++ cut -d ' ' -f 1 | |
++ dev=/dev/mapper/vg00-lvtmp | |
+++ echo '/dev/mapper/vg00-lvtmp /tmp ext2 uuid=2acb2f79-6cd0-4887-b203-8f8f07034a97 label= blocksize=4096 reserved_blocks=131072 max_mounts=38 check_interval=180d options=rw' | |
+++ cut -d ' ' -f 2 | |
++ mp=/tmp | |
++ add_dependency fs:/tmp /dev/mapper/vg00-lvtmp | |
++ echo 'fs:/tmp /dev/mapper/vg00-lvtmp' | |
++ add_component fs:/tmp fs | |
++ echo 'todo fs:/tmp fs' | |
++ read fs bd nmp junk | |
+++ grep '^fs' /var/lib/rear/layout/disklayout.conf | |
++ '[' / '!=' / ']' | |
++ temp_nmp=/ | |
++ '[' tmp '!=' /tmp ']' | |
++ '[' /tmp '!=' / ']' | |
++ add_dependency fs:/tmp fs:/ | |
++ echo 'fs:/tmp fs:/' | |
++ read fs bd nmp junk | |
++ '[' /usr '!=' / ']' | |
++ temp_nmp=/usr/ | |
++ '[' /tmp '!=' /tmp ']' | |
++ read fs bd nmp junk | |
++ '[' /dstpol '!=' / ']' | |
++ temp_nmp=/dstpol/ | |
++ '[' /tmp '!=' /tmp ']' | |
++ read fs bd nmp junk | |
++ '[' /opt '!=' / ']' | |
++ temp_nmp=/opt/ | |
++ '[' /tmp '!=' /tmp ']' | |
++ read fs bd nmp junk | |
++ '[' /opt/cache '!=' / ']' | |
++ temp_nmp=/opt/cache/ | |
++ '[' /tmp '!=' /tmp ']' | |
++ read fs bd nmp junk | |
++ '[' /tmp '!=' / ']' | |
++ temp_nmp=/tmp/ | |
++ '[' /tmp '!=' /tmp ']' | |
++ read fs bd nmp junk | |
++ '[' /var '!=' / ']' | |
++ temp_nmp=/var/ | |
++ '[' /tmp '!=' /tmp ']' | |
++ read fs bd nmp junk | |
++ '[' /boot '!=' / ']' | |
++ temp_nmp=/boot/ | |
++ '[' /tmp '!=' /tmp ']' | |
++ read fs bd nmp junk | |
++ '[' /var/lib/mysql '!=' / ']' | |
++ temp_nmp=/var/lib/mysql/ | |
++ '[' /tmp '!=' /tmp ']' | |
++ read fs bd nmp junk | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/mapper/vg00-lvvar /var ext3 uuid=618af560-9869-4b70-bb07-2ee800ad4db9 label= blocksize=4096 reserved_blocks=131072 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 1 | |
++ dev=/dev/mapper/vg00-lvvar | |
+++ echo '/dev/mapper/vg00-lvvar /var ext3 uuid=618af560-9869-4b70-bb07-2ee800ad4db9 label= blocksize=4096 reserved_blocks=131072 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 2 | |
++ mp=/var | |
++ add_dependency fs:/var /dev/mapper/vg00-lvvar | |
++ echo 'fs:/var /dev/mapper/vg00-lvvar' | |
++ add_component fs:/var fs | |
++ echo 'todo fs:/var fs' | |
++ read fs bd nmp junk | |
+++ grep '^fs' /var/lib/rear/layout/disklayout.conf | |
++ '[' / '!=' / ']' | |
++ temp_nmp=/ | |
++ '[' var '!=' /var ']' | |
++ '[' /var '!=' / ']' | |
++ add_dependency fs:/var fs:/ | |
++ echo 'fs:/var fs:/' | |
++ read fs bd nmp junk | |
++ '[' /usr '!=' / ']' | |
++ temp_nmp=/usr/ | |
++ '[' /var '!=' /var ']' | |
++ read fs bd nmp junk | |
++ '[' /dstpol '!=' / ']' | |
++ temp_nmp=/dstpol/ | |
++ '[' /var '!=' /var ']' | |
++ read fs bd nmp junk | |
++ '[' /opt '!=' / ']' | |
++ temp_nmp=/opt/ | |
++ '[' /var '!=' /var ']' | |
++ read fs bd nmp junk | |
++ '[' /opt/cache '!=' / ']' | |
++ temp_nmp=/opt/cache/ | |
++ '[' /var '!=' /var ']' | |
++ read fs bd nmp junk | |
++ '[' /tmp '!=' / ']' | |
++ temp_nmp=/tmp/ | |
++ '[' /var '!=' /var ']' | |
++ read fs bd nmp junk | |
++ '[' /var '!=' / ']' | |
++ temp_nmp=/var/ | |
++ '[' /var '!=' /var ']' | |
++ read fs bd nmp junk | |
++ '[' /boot '!=' / ']' | |
++ temp_nmp=/boot/ | |
++ '[' /var '!=' /var ']' | |
++ read fs bd nmp junk | |
++ '[' /var/lib/mysql '!=' / ']' | |
++ temp_nmp=/var/lib/mysql/ | |
++ '[' /var '!=' /var ']' | |
++ read fs bd nmp junk | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/md0 /boot ext3 uuid=ae2aa583-39a6-430c-865b-66ba707d29fd label= blocksize=1024 reserved_blocks=10035 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 1 | |
++ dev=/dev/md0 | |
+++ echo '/dev/md0 /boot ext3 uuid=ae2aa583-39a6-430c-865b-66ba707d29fd label= blocksize=1024 reserved_blocks=10035 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 2 | |
++ mp=/boot | |
++ add_dependency fs:/boot /dev/md0 | |
++ echo 'fs:/boot /dev/md0' | |
++ add_component fs:/boot fs | |
++ echo 'todo fs:/boot fs' | |
++ read fs bd nmp junk | |
+++ grep '^fs' /var/lib/rear/layout/disklayout.conf | |
++ '[' / '!=' / ']' | |
++ temp_nmp=/ | |
++ '[' boot '!=' /boot ']' | |
++ '[' /boot '!=' / ']' | |
++ add_dependency fs:/boot fs:/ | |
++ echo 'fs:/boot fs:/' | |
++ read fs bd nmp junk | |
++ '[' /usr '!=' / ']' | |
++ temp_nmp=/usr/ | |
++ '[' /boot '!=' /boot ']' | |
++ read fs bd nmp junk | |
++ '[' /dstpol '!=' / ']' | |
++ temp_nmp=/dstpol/ | |
++ '[' /boot '!=' /boot ']' | |
++ read fs bd nmp junk | |
++ '[' /opt '!=' / ']' | |
++ temp_nmp=/opt/ | |
++ '[' /boot '!=' /boot ']' | |
++ read fs bd nmp junk | |
++ '[' /opt/cache '!=' / ']' | |
++ temp_nmp=/opt/cache/ | |
++ '[' /boot '!=' /boot ']' | |
++ read fs bd nmp junk | |
++ '[' /tmp '!=' / ']' | |
++ temp_nmp=/tmp/ | |
++ '[' /boot '!=' /boot ']' | |
++ read fs bd nmp junk | |
++ '[' /var '!=' / ']' | |
++ temp_nmp=/var/ | |
++ '[' /boot '!=' /boot ']' | |
++ read fs bd nmp junk | |
++ '[' /boot '!=' / ']' | |
++ temp_nmp=/boot/ | |
++ '[' /boot '!=' /boot ']' | |
++ read fs bd nmp junk | |
++ '[' /var/lib/mysql '!=' / ']' | |
++ temp_nmp=/var/lib/mysql/ | |
++ '[' /boot '!=' /boot ']' | |
++ read fs bd nmp junk | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/mapper/vg01-lvmysql /var/lib/mysql ext3 uuid=ea34b450-bd3d-45e7-8a4a-f3048de90a81 label= blocksize=4096 reserved_blocks=131072 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 1 | |
++ dev=/dev/mapper/vg01-lvmysql | |
+++ echo '/dev/mapper/vg01-lvmysql /var/lib/mysql ext3 uuid=ea34b450-bd3d-45e7-8a4a-f3048de90a81 label= blocksize=4096 reserved_blocks=131072 max_mounts=-1 check_interval=0d options=rw' | |
+++ cut -d ' ' -f 2 | |
++ mp=/var/lib/mysql | |
++ add_dependency fs:/var/lib/mysql /dev/mapper/vg01-lvmysql | |
++ echo 'fs:/var/lib/mysql /dev/mapper/vg01-lvmysql' | |
++ add_component fs:/var/lib/mysql fs | |
++ echo 'todo fs:/var/lib/mysql fs' | |
+++ grep '^fs' /var/lib/rear/layout/disklayout.conf | |
++ read fs bd nmp junk | |
++ '[' / '!=' / ']' | |
++ temp_nmp=/ | |
++ '[' var/lib/mysql '!=' /var/lib/mysql ']' | |
++ '[' /var/lib/mysql '!=' / ']' | |
++ add_dependency fs:/var/lib/mysql fs:/ | |
++ echo 'fs:/var/lib/mysql fs:/' | |
++ read fs bd nmp junk | |
++ '[' /usr '!=' / ']' | |
++ temp_nmp=/usr/ | |
++ '[' /var/lib/mysql '!=' /var/lib/mysql ']' | |
++ read fs bd nmp junk | |
++ '[' /dstpol '!=' / ']' | |
++ temp_nmp=/dstpol/ | |
++ '[' /var/lib/mysql '!=' /var/lib/mysql ']' | |
++ read fs bd nmp junk | |
++ '[' /opt '!=' / ']' | |
++ temp_nmp=/opt/ | |
++ '[' /var/lib/mysql '!=' /var/lib/mysql ']' | |
++ read fs bd nmp junk | |
++ '[' /opt/cache '!=' / ']' | |
++ temp_nmp=/opt/cache/ | |
++ '[' /var/lib/mysql '!=' /var/lib/mysql ']' | |
++ read fs bd nmp junk | |
++ '[' /tmp '!=' / ']' | |
++ temp_nmp=/tmp/ | |
++ '[' /var/lib/mysql '!=' /var/lib/mysql ']' | |
++ read fs bd nmp junk | |
++ '[' /var '!=' / ']' | |
++ temp_nmp=/var/ | |
++ '[' lib/mysql '!=' /var/lib/mysql ']' | |
++ '[' /var/lib/mysql '!=' /var ']' | |
++ add_dependency fs:/var/lib/mysql fs:/var | |
++ echo 'fs:/var/lib/mysql fs:/var' | |
++ read fs bd nmp junk | |
++ '[' /boot '!=' / ']' | |
++ temp_nmp=/boot/ | |
++ '[' /var/lib/mysql '!=' /var/lib/mysql ']' | |
++ read fs bd nmp junk | |
++ '[' /var/lib/mysql '!=' / ']' | |
++ temp_nmp=/var/lib/mysql/ | |
++ '[' /var/lib/mysql '!=' /var/lib/mysql ']' | |
++ read fs bd nmp junk | |
++ read type remainder | |
++ case $type in | |
+++ echo '/dev/md1 uuid= label=' | |
+++ cut -d ' ' -f 1 | |
++ dev=/dev/md1 | |
++ add_dependency swap:/dev/md1 /dev/md1 | |
++ echo 'swap:/dev/md1 /dev/md1' | |
++ add_component swap:/dev/md1 swap | |
++ echo 'todo swap:/dev/md1 swap' | |
++ read type remainder | |
++ case $type in | |
++ read type remainder | |
++ case $type in | |
++ read type remainder | |
++ case $type in | |
++ read type remainder | |
++ case $type in | |
++ read type remainder | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:47 Including layout/save/default/31_include_exclude.sh | |
+ . /usr/share/rear/layout/save/default/31_include_exclude.sh | |
++ '[' 0 -gt 0 ']' | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:47 Including layout/save/default/32_autoexclude.sh | |
+ . /usr/share/rear/layout/save/default/32_autoexclude.sh | |
++ '[' -n y ']' | |
++ read multipath device devices junk | |
+++ grep '^multipath' /var/lib/rear/layout/disklayout.conf | |
+++ grep '^disk' /var/lib/rear/layout/disklayout.conf | |
+++ get_sysfs_name /dev/cciss/c0d0 | |
+++ local name=cciss/c0d0 | |
+++ name=cciss/c0d0 | |
+++ '[' -e '/sys/block/cciss!c0d0' ']' | |
+++ echo 'cciss!c0d0' | |
+++ return 0 | |
++ sysfs_name='cciss!c0d0' | |
++ '[' -r '/sys/block/cciss!c0d0/removable' ']' | |
++ '[' 0 = 1 ']' | |
++ read disk device junk | |
+++ get_sysfs_name /dev/cciss/c0d1 | |
+++ local name=cciss/c0d1 | |
+++ name=cciss/c0d1 | |
+++ '[' -e '/sys/block/cciss!c0d1' ']' | |
+++ echo 'cciss!c0d1' | |
+++ return 0 | |
++ sysfs_name='cciss!c0d1' | |
++ '[' -r '/sys/block/cciss!c0d1/removable' ']' | |
++ '[' 0 = 1 ']' | |
++ read disk device junk | |
+++ get_sysfs_name /dev/cciss/c1d0 | |
+++ local name=cciss/c1d0 | |
+++ name=cciss/c1d0 | |
+++ '[' -e '/sys/block/cciss!c1d0' ']' | |
+++ echo 'cciss!c1d0' | |
+++ return 0 | |
++ sysfs_name='cciss!c1d0' | |
++ '[' -r '/sys/block/cciss!c1d0/removable' ']' | |
++ '[' 0 = 1 ']' | |
++ read disk device junk | |
+++ get_sysfs_name /dev/cciss/c2d0 | |
+++ local name=cciss/c2d0 | |
+++ name=cciss/c2d0 | |
+++ '[' -e '/sys/block/cciss!c2d0' ']' | |
+++ echo 'cciss!c2d0' | |
+++ return 0 | |
++ sysfs_name='cciss!c2d0' | |
++ '[' -r '/sys/block/cciss!c2d0/removable' ']' | |
++ '[' 0 = 1 ']' | |
++ read disk device junk | |
+++ get_sysfs_name /dev/cciss/c2d1 | |
+++ local name=cciss/c2d1 | |
+++ name=cciss/c2d1 | |
+++ '[' -e '/sys/block/cciss!c2d1' ']' | |
+++ echo 'cciss!c2d1' | |
+++ return 0 | |
++ sysfs_name='cciss!c2d1' | |
++ '[' -r '/sys/block/cciss!c2d1/removable' ']' | |
++ '[' 0 = 1 ']' | |
++ read disk device junk | |
++ '[' -n y ']' | |
++ used_disks=() | |
++ read fs device mountpoint junk | |
+++ grep '^fs' /var/lib/rear/layout/disklayout.conf | |
++ IsInArray / | |
++ local needle=/ | |
++ shift | |
++ [[ / == '' ]] | |
++ shift | |
++ return 1 | |
++ grep -q '^done fs:/ ' /var/lib/rear/layout/disktodo.conf | |
+++ find_disk fs:/ | |
+++ sort | |
++++ get_parent_components fs:/ disk | |
++++ local component type | |
+++ uniq | |
+++++ get_parent_component fs:/ | |
+++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/mapper/vg00-lv00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lv00 | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lv00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lv00 | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
+++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
+++ echo '/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ disks='/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c0d0 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ used_disks=("${used_disks[@]}" "$disk") | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c2d0 /dev/cciss/c0d0 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ used_disks=("${used_disks[@]}" "$disk") | |
++ read fs device mountpoint junk | |
++ IsInArray /usr | |
++ local needle=/usr | |
++ shift | |
++ [[ /usr == '' ]] | |
++ shift | |
++ return 1 | |
++ grep -q '^done fs:/usr ' /var/lib/rear/layout/disktodo.conf | |
+++ find_disk fs:/usr | |
+++ sort | |
++++ get_parent_components fs:/usr disk | |
++++ local component type | |
+++ uniq | |
+++++ get_parent_component fs:/usr | |
+++++ grep '^fs:/usr ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/mapper/vg00-lvusr | |
fs:/' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lvusr | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lvusr ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lvusr disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lvusr | |
+++++ grep '^/dev/mapper/vg00-lvusr ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type fs:/ | |
+++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=fs | |
++++ '[' fs = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components fs:/ disk | |
++++ local component type | |
+++++ get_parent_component fs:/ | |
+++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/mapper/vg00-lv00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lv00 | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lv00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lv00 | |
+++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
+++ echo '/dev/cciss/c0d0 | |
/dev/cciss/c2d0 | |
/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ disks='/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c0d0 /dev/cciss/c0d0 /dev/cciss/c2d0 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ return 0 | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c2d0 /dev/cciss/c0d0 /dev/cciss/c2d0 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ return 0 | |
++ read fs device mountpoint junk | |
++ IsInArray /dstpol | |
++ local needle=/dstpol | |
++ shift | |
++ [[ /dstpol == '' ]] | |
++ shift | |
++ return 1 | |
++ grep -q '^done fs:/dstpol ' /var/lib/rear/layout/disktodo.conf | |
+++ find_disk fs:/dstpol | |
+++ sort | |
++++ get_parent_components fs:/dstpol disk | |
++++ local component type | |
+++ uniq | |
+++++ get_parent_component fs:/dstpol | |
+++++ grep '^fs:/dstpol ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/mapper/vg01-lvdstpol | |
fs:/' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg01-lvdstpol | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg01-lvdstpol ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg01-lvdstpol disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg01-lvdstpol | |
+++++ grep '^/dev/mapper/vg01-lvdstpol ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg01 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg01 | |
+++++ grep -E '^[^ ]+ /dev/vg01 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg01 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg01 | |
+++++ grep '^/dev/vg01 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md3 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md3 | |
+++++ grep -E '^[^ ]+ pv:/dev/md3 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md3 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md3 | |
+++++ grep '^pv:/dev/md3 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md3 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md3 | |
+++++ grep -E '^[^ ]+ /dev/md3 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md3 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md3 | |
+++++ grep '^/dev/md3 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d1p1 | |
/dev/cciss/c2d1p1' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d1p1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d1p1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d1p1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d1p1 | |
+++++ grep '^/dev/cciss/c0d1p1 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d1 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d1 | |
++++ get_parent_components /dev/cciss/c0d1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d1 | |
+++++ grep '^/dev/cciss/c0d1 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d1p1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d1p1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d1p1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d1p1 | |
+++++ grep '^/dev/cciss/c2d1p1 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d1 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d1 | |
++++ get_parent_components /dev/cciss/c2d1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d1 | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
+++++ grep '^/dev/cciss/c2d1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type fs:/ | |
+++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=fs | |
++++ '[' fs = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components fs:/ disk | |
++++ local component type | |
+++++ get_parent_component fs:/ | |
+++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/mapper/vg00-lv00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lv00 | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lv00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lv00 | |
+++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
+++ echo '/dev/cciss/c0d1 | |
/dev/cciss/c2d1 | |
/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ disks='/dev/cciss/c0d0 | |
/dev/cciss/c0d1 | |
/dev/cciss/c2d0 | |
/dev/cciss/c2d1' | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c0d0 /dev/cciss/c0d0 /dev/cciss/c2d0 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ return 0 | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c0d1 /dev/cciss/c0d0 /dev/cciss/c2d0 | |
++ local needle=/dev/cciss/c0d1 | |
++ shift | |
++ [[ /dev/cciss/c0d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c0d1 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c0d1 == '' ]] | |
++ shift | |
++ return 1 | |
++ used_disks=("${used_disks[@]}" "$disk") | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c2d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ return 0 | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c2d1 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 | |
++ local needle=/dev/cciss/c2d1 | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\1 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d1 == '' ]] | |
++ shift | |
++ return 1 | |
++ used_disks=("${used_disks[@]}" "$disk") | |
++ read fs device mountpoint junk | |
++ IsInArray /opt | |
++ local needle=/opt | |
++ shift | |
++ [[ /opt == '' ]] | |
++ shift | |
++ return 1 | |
++ grep -q '^done fs:/opt ' /var/lib/rear/layout/disktodo.conf | |
+++ find_disk fs:/opt | |
++++ get_parent_components fs:/opt disk | |
++++ local component type | |
+++ sort | |
+++ uniq | |
+++++ get_parent_component fs:/opt | |
+++++ grep '^fs:/opt ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/mapper/vg00-lvopt | |
fs:/' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lvopt | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lvopt ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lvopt disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lvopt | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
+++++ grep '^/dev/mapper/vg00-lvopt ' /var/lib/rear/layout/diskdeps.conf | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type fs:/ | |
+++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=fs | |
++++ '[' fs = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components fs:/ disk | |
++++ local component type | |
+++++ get_parent_component fs:/ | |
+++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/mapper/vg00-lv00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lv00 | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lv00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lv00 | |
+++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
+++ echo '/dev/cciss/c0d0 | |
/dev/cciss/c2d0 | |
/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ disks='/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c0d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ return 0 | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c2d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ return 0 | |
++ read fs device mountpoint junk | |
++ IsInArray /opt/cache | |
++ local needle=/opt/cache | |
++ shift | |
++ [[ /opt/cache == '' ]] | |
++ shift | |
++ return 1 | |
++ grep -q '^done fs:/opt/cache ' /var/lib/rear/layout/disktodo.conf | |
+++ find_disk fs:/opt/cache | |
+++ sort | |
++++ get_parent_components fs:/opt/cache disk | |
++++ local component type | |
+++ uniq | |
+++++ get_parent_component fs:/opt/cache | |
+++++ grep '^fs:/opt/cache ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/mapper/vg01-lvcachemgr | |
fs:/ | |
fs:/opt' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg01-lvcachemgr | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg01-lvcachemgr ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg01-lvcachemgr disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg01-lvcachemgr | |
+++++ grep '^/dev/mapper/vg01-lvcachemgr ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg01 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg01 | |
+++++ grep -E '^[^ ]+ /dev/vg01 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg01 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg01 | |
+++++ grep '^/dev/vg01 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md3 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md3 | |
+++++ grep -E '^[^ ]+ pv:/dev/md3 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md3 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md3 | |
+++++ grep '^pv:/dev/md3 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md3 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md3 | |
+++++ grep -E '^[^ ]+ /dev/md3 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md3 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md3 | |
+++++ grep '^/dev/md3 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d1p1 | |
/dev/cciss/c2d1p1' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d1p1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d1p1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d1p1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d1p1 | |
+++++ grep '^/dev/cciss/c0d1p1 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d1 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d1 | |
++++ get_parent_components /dev/cciss/c0d1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d1 | |
+++++ grep '^/dev/cciss/c0d1 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d1p1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d1p1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d1p1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d1p1 | |
+++++ grep '^/dev/cciss/c2d1p1 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d1 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d1 | |
++++ get_parent_components /dev/cciss/c2d1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d1 | |
+++++ grep '^/dev/cciss/c2d1 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type fs:/ | |
+++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=fs | |
++++ '[' fs = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components fs:/ disk | |
++++ local component type | |
+++++ get_parent_component fs:/ | |
+++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/mapper/vg00-lv00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lv00 | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lv00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lv00 | |
+++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type fs:/opt | |
+++++ grep -E '^[^ ]+ fs:/opt ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=fs | |
++++ '[' fs = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components fs:/opt disk | |
++++ local component type | |
+++++ get_parent_component fs:/opt | |
+++++ grep '^fs:/opt ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/mapper/vg00-lvopt | |
fs:/' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lvopt | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lvopt ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lvopt disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lvopt | |
+++++ grep '^/dev/mapper/vg00-lvopt ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type fs:/ | |
+++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=fs | |
++++ '[' fs = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components fs:/ disk | |
++++ local component type | |
+++++ get_parent_component fs:/ | |
+++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/mapper/vg00-lv00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lv00 | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lv00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lv00 | |
+++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
+++ echo '/dev/cciss/c0d1 | |
/dev/cciss/c2d1 | |
/dev/cciss/c0d0 | |
/dev/cciss/c2d0 | |
/dev/cciss/c0d0 | |
/dev/cciss/c2d0 | |
/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ disks='/dev/cciss/c0d0 | |
/dev/cciss/c0d1 | |
/dev/cciss/c2d0 | |
/dev/cciss/c2d1' | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c0d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ return 0 | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c0d1 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c0d1 | |
++ shift | |
++ [[ /dev/cciss/c0d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c0d1 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c0d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\1 ]] | |
++ return 0 | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c2d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ return 0 | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c2d1 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c2d1 | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\1 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\1 ]] | |
++ return 0 | |
++ read fs device mountpoint junk | |
++ IsInArray /tmp | |
++ local needle=/tmp | |
++ shift | |
++ [[ /tmp == '' ]] | |
++ shift | |
++ return 1 | |
++ grep -q '^done fs:/tmp ' /var/lib/rear/layout/disktodo.conf | |
+++ find_disk fs:/tmp | |
+++ sort | |
++++ get_parent_components fs:/tmp disk | |
++++ local component type | |
+++ uniq | |
+++++ get_parent_component fs:/tmp | |
+++++ grep '^fs:/tmp ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/mapper/vg00-lvtmp | |
fs:/' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lvtmp | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lvtmp ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lvtmp disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lvtmp | |
+++++ grep '^/dev/mapper/vg00-lvtmp ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ uniq | |
+++++ sort | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type fs:/ | |
+++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=fs | |
++++ '[' fs = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components fs:/ disk | |
++++ local component type | |
+++++ get_parent_component fs:/ | |
+++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/mapper/vg00-lv00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lv00 | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lv00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lv00 | |
+++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
+++ echo '/dev/cciss/c0d0 | |
/dev/cciss/c2d0 | |
/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ disks='/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c0d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ return 0 | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c2d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ return 0 | |
++ read fs device mountpoint junk | |
++ IsInArray /var | |
++ local needle=/var | |
++ shift | |
++ [[ /var == '' ]] | |
++ shift | |
++ return 1 | |
++ grep -q '^done fs:/var ' /var/lib/rear/layout/disktodo.conf | |
+++ find_disk fs:/var | |
++++ get_parent_components fs:/var disk | |
++++ local component type | |
+++++ get_parent_component fs:/var | |
+++ sort | |
+++++ grep '^fs:/var ' /var/lib/rear/layout/diskdeps.conf | |
+++ uniq | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/mapper/vg00-lvvar | |
fs:/' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lvvar | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lvvar ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lvvar disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lvvar | |
+++++ grep '^/dev/mapper/vg00-lvvar ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type fs:/ | |
+++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=fs | |
++++ '[' fs = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components fs:/ disk | |
++++ local component type | |
+++++ get_parent_component fs:/ | |
+++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/mapper/vg00-lv00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lv00 | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lv00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lv00 | |
+++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
+++ echo '/dev/cciss/c0d0 | |
/dev/cciss/c2d0 | |
/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ disks='/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c0d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ return 0 | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c2d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ return 0 | |
++ read fs device mountpoint junk | |
++ IsInArray /boot | |
++ local needle=/boot | |
++ shift | |
++ [[ /boot == '' ]] | |
++ shift | |
++ return 1 | |
++ grep -q '^done fs:/boot ' /var/lib/rear/layout/disktodo.conf | |
+++ find_disk fs:/boot | |
++++ get_parent_components fs:/boot disk | |
++++ local component type | |
+++ sort | |
+++ uniq | |
+++++ get_parent_component fs:/boot | |
+++++ grep '^fs:/boot ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/md0 | |
fs:/' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md0 | |
+++++ grep -E '^[^ ]+ /dev/md0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md0 | |
+++++ grep '^/dev/md0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p1 | |
/dev/cciss/c2d0p1' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p1 | |
+++++ grep '^/dev/cciss/c0d0p1 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p1 | |
+++++ grep '^/dev/cciss/c2d0p1 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type fs:/ | |
+++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=fs | |
++++ '[' fs = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components fs:/ disk | |
++++ local component type | |
+++++ get_parent_component fs:/ | |
+++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/mapper/vg00-lv00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lv00 | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lv00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lv00 | |
+++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ sort | |
+++++ uniq | |
+++++ cut -d ' ' -f 2 | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
+++ echo '/dev/cciss/c0d0 | |
/dev/cciss/c2d0 | |
/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ disks='/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c0d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ return 0 | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c2d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ return 0 | |
++ read fs device mountpoint junk | |
++ IsInArray /var/lib/mysql | |
++ local needle=/var/lib/mysql | |
++ shift | |
++ [[ /var/lib/mysql == '' ]] | |
++ shift | |
++ return 1 | |
++ grep -q '^done fs:/var/lib/mysql ' /var/lib/rear/layout/disktodo.conf | |
+++ find_disk fs:/var/lib/mysql | |
+++ sort | |
+++ uniq | |
++++ get_parent_components fs:/var/lib/mysql disk | |
++++ local component type | |
+++++ get_parent_component fs:/var/lib/mysql | |
+++++ grep '^fs:/var/lib/mysql ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/mapper/vg01-lvmysql | |
fs:/ | |
fs:/var' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg01-lvmysql | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg01-lvmysql ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg01-lvmysql disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg01-lvmysql | |
+++++ grep '^/dev/mapper/vg01-lvmysql ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg01 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg01 | |
+++++ grep -E '^[^ ]+ /dev/vg01 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg01 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg01 | |
+++++ grep '^/dev/vg01 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md3 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md3 | |
+++++ grep -E '^[^ ]+ pv:/dev/md3 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md3 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md3 | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
+++++ grep '^pv:/dev/md3 ' /var/lib/rear/layout/diskdeps.conf | |
++++ local components=/dev/md3 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md3 | |
+++++ grep -E '^[^ ]+ /dev/md3 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md3 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md3 | |
+++++ grep '^/dev/md3 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d1p1 | |
/dev/cciss/c2d1p1' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d1p1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d1p1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d1p1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d1p1 | |
+++++ grep '^/dev/cciss/c0d1p1 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d1 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d1 | |
++++ get_parent_components /dev/cciss/c0d1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d1 | |
+++++ grep '^/dev/cciss/c0d1 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d1p1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d1p1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d1p1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d1p1 | |
+++++ grep '^/dev/cciss/c2d1p1 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d1 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d1 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d1 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d1 | |
++++ get_parent_components /dev/cciss/c2d1 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d1 | |
+++++ grep '^/dev/cciss/c2d1 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type fs:/ | |
+++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=fs | |
++++ '[' fs = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components fs:/ disk | |
++++ local component type | |
+++++ get_parent_component fs:/ | |
+++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/mapper/vg00-lv00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lv00 | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lv00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lv00 | |
+++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type fs:/var | |
+++++ grep -E '^[^ ]+ fs:/var ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=fs | |
++++ '[' fs = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components fs:/var disk | |
++++ local component type | |
+++++ get_parent_component fs:/var | |
+++++ grep '^fs:/var ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/mapper/vg00-lvvar | |
fs:/' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lvvar | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lvvar ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lvvar disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lvvar | |
+++++ grep '^/dev/mapper/vg00-lvvar ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type fs:/ | |
+++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=fs | |
++++ '[' fs = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components fs:/ disk | |
++++ local component type | |
+++++ get_parent_component fs:/ | |
+++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/mapper/vg00-lv00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/mapper/vg00-lv00 | |
+++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmvol | |
++++ '[' lvmvol = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/mapper/vg00-lv00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/mapper/vg00-lv00 | |
+++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/vg00 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/vg00 | |
+++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmgrp | |
++++ '[' lvmgrp = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/vg00 disk | |
++++ local component type | |
+++++ get_parent_component /dev/vg00 | |
+++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=pv:/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type pv:/dev/md2 | |
+++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=lvmdev | |
++++ '[' lvmdev = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components pv:/dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component pv:/dev/md2 | |
+++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/md2 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/md2 | |
+++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=raid | |
++++ '[' raid = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/md2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/md2 | |
+++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c0d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0p2 | |
+++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c0d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c0d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c0d0 | |
++++ get_parent_components /dev/cciss/c0d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c0d0 | |
+++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0p2 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=part | |
++++ '[' part = disk ']' | |
++++ '[' -z disk ']' | |
++++ get_parent_components /dev/cciss/c2d0p2 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0p2 | |
+++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components=/dev/cciss/c2d0 | |
++++ for component in '$components' | |
+++++ get_component_type /dev/cciss/c2d0 | |
+++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
+++++ cut -d ' ' -f 3 | |
++++ type=disk | |
++++ '[' disk = disk ']' | |
++++ echo /dev/cciss/c2d0 | |
++++ get_parent_components /dev/cciss/c2d0 disk | |
++++ local component type | |
+++++ get_parent_component /dev/cciss/c2d0 | |
+++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++++ cut -d ' ' -f 2 | |
+++++ sort | |
+++++ uniq | |
++++ local components= | |
+++ echo '/dev/cciss/c0d1 | |
/dev/cciss/c2d1 | |
/dev/cciss/c0d0 | |
/dev/cciss/c2d0 | |
/dev/cciss/c0d0 | |
/dev/cciss/c2d0 | |
/dev/cciss/c0d0 | |
/dev/cciss/c2d0' | |
++ disks='/dev/cciss/c0d0 | |
/dev/cciss/c0d1 | |
/dev/cciss/c2d0 | |
/dev/cciss/c2d1' | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c0d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ return 0 | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c0d1 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c0d1 | |
++ shift | |
++ [[ /dev/cciss/c0d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c0d1 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c0d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\1 ]] | |
++ return 0 | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c2d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ return 0 | |
++ for disk in '$disks' | |
++ IsInArray /dev/cciss/c2d1 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c2d1 | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\1 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\1 ]] | |
++ return 0 | |
++ read fs device mountpoint junk | |
++ read disk name junk | |
+++ grep '^disk' /var/lib/rear/layout/disklayout.conf | |
++ IsInArray /dev/cciss/c0d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ return 0 | |
++ read disk name junk | |
++ IsInArray /dev/cciss/c0d1 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c0d1 | |
++ shift | |
++ [[ /dev/cciss/c0d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c0d1 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c0d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\1 ]] | |
++ return 0 | |
++ read disk name junk | |
++ IsInArray /dev/cciss/c1d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c1d0 | |
++ shift | |
++ [[ /dev/cciss/c1d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c1d0 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c1d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\1 ]] | |
++ shift | |
++ [[ /dev/cciss/c1d0 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\1 ]] | |
++ shift | |
++ [[ /dev/cciss/c1d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ Log 'Disk /dev/cciss/c1d0 is not used by any mounted filesystem. Excluding.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2012-11-08 12:57:48 Disk /dev/cciss/c1d0 is not used by any mounted filesystem. Excluding.' | |
2012-11-08 12:57:48 Disk /dev/cciss/c1d0 is not used by any mounted filesystem. Excluding. | |
++ mark_as_done /dev/cciss/c1d0 | |
++ Log 'Marking /dev/cciss/c1d0 as done.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2012-11-08 12:57:48 Marking /dev/cciss/c1d0 as done.' | |
2012-11-08 12:57:48 Marking /dev/cciss/c1d0 as done. | |
++ sed -i 's;todo\ /dev/cciss/c1d0\ ;done\ /dev/cciss/c1d0\ ;' /var/lib/rear/layout/disktodo.conf | |
++ mark_tree_as_done /dev/cciss/c1d0 | |
+++ get_child_components /dev/cciss/c1d0 | |
+++ local devlist testdev dev on type | |
+++ devlist='/dev/cciss/c1d0 ' | |
+++ '[' -n '/dev/cciss/c1d0 ' ']' | |
++++ echo '/dev/cciss/c1d0 ' | |
++++ cut -d ' ' -f 1 | |
+++ testdev=/dev/cciss/c1d0 | |
+++ read dev on junk | |
++++ cat /var/lib/rear/layout/diskdeps.conf | |
+++ '[' /dev/cciss/c0d0 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c0d0 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c0d0 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c0d1 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c2d0 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c2d0 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c2d0 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c2d1 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c0d0p2 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c2d0p2 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c0d1p1 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c2d1p1 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c0d0p3 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c2d0p3 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c0d0p1 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/cciss/c2d0p1 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' pv:/dev/md3 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/md3 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' pv:/dev/md2 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/md2 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/vg01 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/vg01 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/vg01 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/vg00 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/vg00 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/vg00 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/vg00 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/vg00 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/mapper/vg00-lv00 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/mapper/vg00-lvusr = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' fs:/ = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/mapper/vg01-lvdstpol = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' fs:/ = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/mapper/vg00-lvopt = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' fs:/ = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/mapper/vg01-lvcachemgr = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' fs:/ = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' fs:/opt = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/mapper/vg00-lvtmp = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' fs:/ = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/mapper/vg00-lvvar = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' fs:/ = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/md0 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' fs:/ = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/mapper/vg01-lvmysql = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' fs:/ = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' fs:/var = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
+++ '[' /dev/md1 = /dev/cciss/c1d0 ']' | |
+++ read dev on junk | |
++++ echo '/dev/cciss/c1d0 ' | |
++++ sed -r 's;^/dev/cciss/c1d0 ;;' | |
+++ devlist= | |
+++ '[' -n '' ']' | |
++ read disk name junk | |
++ IsInArray /dev/cciss/c2d0 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d0 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ return 0 | |
++ read disk name junk | |
++ IsInArray /dev/cciss/c2d1 /dev/cciss/c0d0 /dev/cciss/c2d0 /dev/cciss/c0d1 /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c2d1 | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\0 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\0\d\1 ]] | |
++ shift | |
++ [[ /dev/cciss/c2d1 == \/\d\e\v\/\c\c\i\s\s\/\c\2\d\1 ]] | |
++ return 0 | |
++ read disk name junk | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:48 Including layout/save/default/33_remove_exclusions.sh | |
+ . /usr/share/rear/layout/save/default/33_remove_exclusions.sh | |
++ '[' -s /var/lib/rear/layout/disktodo.conf ']' | |
+++ grep '^done' /var/lib/rear/layout/disktodo.conf | |
++ read done name type junk | |
++ case $type in | |
++ remove_component disk /dev/cciss/c1d0 | |
++ sed -i 's|^disk /dev/cciss/c1d0 |\# disk /dev/cciss/c1d0 |' /var/lib/rear/layout/disklayout.conf | |
++ read done name type junk | |
++ read status name junk | |
+++ grep -E '^done [^ ]+ lvmgrp' /var/lib/rear/layout/disktodo.conf | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:48 Including layout/save/default/34_generate_mountpoint_device.sh | |
+ . /usr/share/rear/layout/save/default/34_generate_mountpoint_device.sh | |
++ '[' -z y ']' | |
++ excluded_mountpoints=() | |
++ read fs device mountpoint junk | |
+++ grep '^fs' /var/lib/rear/layout/disklayout.conf | |
+++ get_parent_components fs:/ | |
+++ local component type | |
+++ sort -u | |
++++ get_parent_component fs:/ | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
+++ local components=/dev/mapper/vg00-lv00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lv00 | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lv00 | |
+++ get_parent_components /dev/mapper/vg00-lv00 | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lv00 | |
++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ cut -d ' ' -f 3 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0p2 | |
++ local needle=/dev/cciss/c0d0p2 | |
++ shift | |
++ [[ /dev/cciss/c0d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0p2 | |
++ local needle=/dev/cciss/c2d0p2 | |
++ shift | |
++ [[ /dev/cciss/c2d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lv00 | |
++ local needle=/dev/mapper/vg00-lv00 | |
++ shift | |
++ [[ /dev/mapper/vg00-lv00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/md2 | |
++ local needle=/dev/md2 | |
++ shift | |
++ [[ /dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/vg00 | |
++ local needle=/dev/vg00 | |
++ shift | |
++ [[ /dev/vg00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray pv:/dev/md2 | |
++ local needle=pv:/dev/md2 | |
++ shift | |
++ [[ pv:/dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ read fs device mountpoint junk | |
+++ get_parent_components fs:/usr | |
+++ local component type | |
+++ sort -u | |
++++ get_parent_component fs:/usr | |
++++ grep '^fs:/usr ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/mapper/vg00-lvusr | |
fs:/' | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lvusr | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lvusr ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lvusr | |
+++ get_parent_components /dev/mapper/vg00-lvusr | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lvusr | |
++++ grep '^/dev/mapper/vg00-lvusr ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type fs:/ | |
++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=fs | |
+++ '[' fs = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo fs:/ | |
+++ get_parent_components fs:/ | |
+++ local component type | |
++++ get_parent_component fs:/ | |
++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/mapper/vg00-lv00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lv00 | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lv00 | |
+++ get_parent_components /dev/mapper/vg00-lv00 | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lv00 | |
++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0p2 | |
++ local needle=/dev/cciss/c0d0p2 | |
++ shift | |
++ [[ /dev/cciss/c0d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0p2 | |
++ local needle=/dev/cciss/c2d0p2 | |
++ shift | |
++ [[ /dev/cciss/c2d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lv00 | |
++ local needle=/dev/mapper/vg00-lv00 | |
++ shift | |
++ [[ /dev/mapper/vg00-lv00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lvusr | |
++ local needle=/dev/mapper/vg00-lvusr | |
++ shift | |
++ [[ /dev/mapper/vg00-lvusr == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/md2 | |
++ local needle=/dev/md2 | |
++ shift | |
++ [[ /dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/vg00 | |
++ local needle=/dev/vg00 | |
++ shift | |
++ [[ /dev/vg00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray fs:/ | |
++ local needle=fs:/ | |
++ shift | |
++ [[ fs:/ == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray pv:/dev/md2 | |
++ local needle=pv:/dev/md2 | |
++ shift | |
++ [[ pv:/dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ read fs device mountpoint junk | |
+++ get_parent_components fs:/dstpol | |
+++ local component type | |
+++ sort -u | |
++++ get_parent_component fs:/dstpol | |
++++ grep '^fs:/dstpol ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/mapper/vg01-lvdstpol | |
fs:/' | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg01-lvdstpol | |
++++ grep -E '^[^ ]+ /dev/mapper/vg01-lvdstpol ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg01-lvdstpol | |
+++ get_parent_components /dev/mapper/vg01-lvdstpol | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg01-lvdstpol | |
++++ grep '^/dev/mapper/vg01-lvdstpol ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg01 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg01 | |
++++ cut -d ' ' -f 3 | |
++++ grep -E '^[^ ]+ /dev/vg01 ' /var/lib/rear/layout/disktodo.conf | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg01 | |
+++ get_parent_components /dev/vg01 | |
+++ local component type | |
++++ get_parent_component /dev/vg01 | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
++++ grep '^/dev/vg01 ' /var/lib/rear/layout/diskdeps.conf | |
+++ local components=pv:/dev/md3 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md3 | |
++++ grep -E '^[^ ]+ pv:/dev/md3 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md3 | |
+++ get_parent_components pv:/dev/md3 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md3 | |
++++ grep '^pv:/dev/md3 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md3 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md3 | |
++++ grep -E '^[^ ]+ /dev/md3 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md3 | |
+++ get_parent_components /dev/md3 | |
+++ local component type | |
++++ get_parent_component /dev/md3 | |
++++ grep '^/dev/md3 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d1p1 | |
/dev/cciss/c2d1p1' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d1p1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d1p1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d1p1 | |
+++ get_parent_components /dev/cciss/c0d1p1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d1p1 | |
++++ grep '^/dev/cciss/c0d1p1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d1 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d1 | |
+++ get_parent_components /dev/cciss/c0d1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d1 | |
++++ grep '^/dev/cciss/c0d1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d1p1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d1p1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d1p1 | |
+++ get_parent_components /dev/cciss/c2d1p1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d1p1 | |
++++ grep '^/dev/cciss/c2d1p1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d1 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d1 | |
+++ get_parent_components /dev/cciss/c2d1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d1 | |
++++ grep '^/dev/cciss/c2d1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type fs:/ | |
++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=fs | |
+++ '[' fs = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo fs:/ | |
+++ get_parent_components fs:/ | |
+++ local component type | |
++++ get_parent_component fs:/ | |
++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/mapper/vg00-lv00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lv00 | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lv00 | |
+++ get_parent_components /dev/mapper/vg00-lv00 | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lv00 | |
++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0p2 | |
++ local needle=/dev/cciss/c0d0p2 | |
++ shift | |
++ [[ /dev/cciss/c0d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d1 | |
++ local needle=/dev/cciss/c0d1 | |
++ shift | |
++ [[ /dev/cciss/c0d1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d1p1 | |
++ local needle=/dev/cciss/c0d1p1 | |
++ shift | |
++ [[ /dev/cciss/c0d1p1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0p2 | |
++ local needle=/dev/cciss/c2d0p2 | |
++ shift | |
++ [[ /dev/cciss/c2d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c2d1 | |
++ shift | |
++ [[ /dev/cciss/c2d1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d1p1 | |
++ local needle=/dev/cciss/c2d1p1 | |
++ shift | |
++ [[ /dev/cciss/c2d1p1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lv00 | |
++ local needle=/dev/mapper/vg00-lv00 | |
++ shift | |
++ [[ /dev/mapper/vg00-lv00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg01-lvdstpol | |
++ local needle=/dev/mapper/vg01-lvdstpol | |
++ shift | |
++ [[ /dev/mapper/vg01-lvdstpol == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/md2 | |
++ local needle=/dev/md2 | |
++ shift | |
++ [[ /dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/md3 | |
++ local needle=/dev/md3 | |
++ shift | |
++ [[ /dev/md3 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/vg00 | |
++ local needle=/dev/vg00 | |
++ shift | |
++ [[ /dev/vg00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/vg01 | |
++ local needle=/dev/vg01 | |
++ shift | |
++ [[ /dev/vg01 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray fs:/ | |
++ local needle=fs:/ | |
++ shift | |
++ [[ fs:/ == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray pv:/dev/md2 | |
++ local needle=pv:/dev/md2 | |
++ shift | |
++ [[ pv:/dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray pv:/dev/md3 | |
++ local needle=pv:/dev/md3 | |
++ shift | |
++ [[ pv:/dev/md3 == '' ]] | |
++ shift | |
++ return 1 | |
++ read fs device mountpoint junk | |
+++ get_parent_components fs:/opt | |
+++ local component type | |
++++ get_parent_component fs:/opt | |
++++ grep '^fs:/opt ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
+++ sort -u | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/mapper/vg00-lvopt | |
fs:/' | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lvopt | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lvopt ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lvopt | |
+++ get_parent_components /dev/mapper/vg00-lvopt | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lvopt | |
++++ grep '^/dev/mapper/vg00-lvopt ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ cut -d ' ' -f 3 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type fs:/ | |
++++ cut -d ' ' -f 3 | |
++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
+++ type=fs | |
+++ '[' fs = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo fs:/ | |
+++ get_parent_components fs:/ | |
+++ local component type | |
++++ get_parent_component fs:/ | |
++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/mapper/vg00-lv00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lv00 | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lv00 | |
+++ get_parent_components /dev/mapper/vg00-lv00 | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lv00 | |
++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0p2 | |
++ local needle=/dev/cciss/c0d0p2 | |
++ shift | |
++ [[ /dev/cciss/c0d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0p2 | |
++ local needle=/dev/cciss/c2d0p2 | |
++ shift | |
++ [[ /dev/cciss/c2d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lv00 | |
++ local needle=/dev/mapper/vg00-lv00 | |
++ shift | |
++ [[ /dev/mapper/vg00-lv00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lvopt | |
++ local needle=/dev/mapper/vg00-lvopt | |
++ shift | |
++ [[ /dev/mapper/vg00-lvopt == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/md2 | |
++ local needle=/dev/md2 | |
++ shift | |
++ [[ /dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/vg00 | |
++ local needle=/dev/vg00 | |
++ shift | |
++ [[ /dev/vg00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray fs:/ | |
++ local needle=fs:/ | |
++ shift | |
++ [[ fs:/ == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray pv:/dev/md2 | |
++ local needle=pv:/dev/md2 | |
++ shift | |
++ [[ pv:/dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ read fs device mountpoint junk | |
+++ get_parent_components fs:/opt/cache | |
+++ local component type | |
+++ sort -u | |
++++ get_parent_component fs:/opt/cache | |
++++ grep '^fs:/opt/cache ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/mapper/vg01-lvcachemgr | |
fs:/ | |
fs:/opt' | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg01-lvcachemgr | |
++++ grep -E '^[^ ]+ /dev/mapper/vg01-lvcachemgr ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg01-lvcachemgr | |
+++ get_parent_components /dev/mapper/vg01-lvcachemgr | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg01-lvcachemgr | |
++++ grep '^/dev/mapper/vg01-lvcachemgr ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg01 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg01 | |
++++ grep -E '^[^ ]+ /dev/vg01 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg01 | |
+++ get_parent_components /dev/vg01 | |
+++ local component type | |
++++ get_parent_component /dev/vg01 | |
++++ grep '^/dev/vg01 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md3 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md3 | |
++++ grep -E '^[^ ]+ pv:/dev/md3 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md3 | |
+++ get_parent_components pv:/dev/md3 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md3 | |
++++ grep '^pv:/dev/md3 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md3 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md3 | |
++++ grep -E '^[^ ]+ /dev/md3 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md3 | |
+++ get_parent_components /dev/md3 | |
+++ local component type | |
++++ get_parent_component /dev/md3 | |
++++ grep '^/dev/md3 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d1p1 | |
/dev/cciss/c2d1p1' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d1p1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d1p1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d1p1 | |
+++ get_parent_components /dev/cciss/c0d1p1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d1p1 | |
++++ grep '^/dev/cciss/c0d1p1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d1 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d1 | |
+++ get_parent_components /dev/cciss/c0d1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d1 | |
++++ grep '^/dev/cciss/c0d1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d1p1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d1p1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d1p1 | |
+++ get_parent_components /dev/cciss/c2d1p1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d1p1 | |
++++ grep '^/dev/cciss/c2d1p1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d1 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d1 | |
+++ get_parent_components /dev/cciss/c2d1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d1 | |
++++ grep '^/dev/cciss/c2d1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type fs:/ | |
++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=fs | |
+++ '[' fs = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo fs:/ | |
+++ get_parent_components fs:/ | |
+++ local component type | |
++++ get_parent_component fs:/ | |
++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/mapper/vg00-lv00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lv00 | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lv00 | |
+++ get_parent_components /dev/mapper/vg00-lv00 | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lv00 | |
++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ cut -d ' ' -f 3 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type fs:/opt | |
++++ grep -E '^[^ ]+ fs:/opt ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=fs | |
+++ '[' fs = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo fs:/opt | |
+++ get_parent_components fs:/opt | |
+++ local component type | |
++++ get_parent_component fs:/opt | |
++++ grep '^fs:/opt ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/mapper/vg00-lvopt | |
fs:/' | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lvopt | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lvopt ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lvopt | |
+++ get_parent_components /dev/mapper/vg00-lvopt | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lvopt | |
++++ grep '^/dev/mapper/vg00-lvopt ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ cut -d ' ' -f 3 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type fs:/ | |
++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=fs | |
+++ '[' fs = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo fs:/ | |
+++ get_parent_components fs:/ | |
+++ local component type | |
++++ get_parent_component fs:/ | |
++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/mapper/vg00-lv00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lv00 | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lv00 | |
+++ get_parent_components /dev/mapper/vg00-lv00 | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lv00 | |
++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0p2 | |
++ local needle=/dev/cciss/c0d0p2 | |
++ shift | |
++ [[ /dev/cciss/c0d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d1 | |
++ local needle=/dev/cciss/c0d1 | |
++ shift | |
++ [[ /dev/cciss/c0d1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d1p1 | |
++ local needle=/dev/cciss/c0d1p1 | |
++ shift | |
++ [[ /dev/cciss/c0d1p1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0p2 | |
++ local needle=/dev/cciss/c2d0p2 | |
++ shift | |
++ [[ /dev/cciss/c2d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c2d1 | |
++ shift | |
++ [[ /dev/cciss/c2d1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d1p1 | |
++ local needle=/dev/cciss/c2d1p1 | |
++ shift | |
++ [[ /dev/cciss/c2d1p1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lv00 | |
++ local needle=/dev/mapper/vg00-lv00 | |
++ shift | |
++ [[ /dev/mapper/vg00-lv00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lvopt | |
++ local needle=/dev/mapper/vg00-lvopt | |
++ shift | |
++ [[ /dev/mapper/vg00-lvopt == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg01-lvcachemgr | |
++ local needle=/dev/mapper/vg01-lvcachemgr | |
++ shift | |
++ [[ /dev/mapper/vg01-lvcachemgr == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/md2 | |
++ local needle=/dev/md2 | |
++ shift | |
++ [[ /dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/md3 | |
++ local needle=/dev/md3 | |
++ shift | |
++ [[ /dev/md3 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/vg00 | |
++ local needle=/dev/vg00 | |
++ shift | |
++ [[ /dev/vg00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/vg01 | |
++ local needle=/dev/vg01 | |
++ shift | |
++ [[ /dev/vg01 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray fs:/ | |
++ local needle=fs:/ | |
++ shift | |
++ [[ fs:/ == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray fs:/opt | |
++ local needle=fs:/opt | |
++ shift | |
++ [[ fs:/opt == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray pv:/dev/md2 | |
++ local needle=pv:/dev/md2 | |
++ shift | |
++ [[ pv:/dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray pv:/dev/md3 | |
++ local needle=pv:/dev/md3 | |
++ shift | |
++ [[ pv:/dev/md3 == '' ]] | |
++ shift | |
++ return 1 | |
++ read fs device mountpoint junk | |
+++ get_parent_components fs:/tmp | |
+++ local component type | |
+++ sort -u | |
++++ get_parent_component fs:/tmp | |
++++ grep '^fs:/tmp ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/mapper/vg00-lvtmp | |
fs:/' | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lvtmp | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lvtmp ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lvtmp | |
+++ get_parent_components /dev/mapper/vg00-lvtmp | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lvtmp | |
++++ grep '^/dev/mapper/vg00-lvtmp ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type fs:/ | |
++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=fs | |
+++ '[' fs = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo fs:/ | |
+++ get_parent_components fs:/ | |
+++ local component type | |
++++ get_parent_component fs:/ | |
++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/mapper/vg00-lv00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lv00 | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lv00 | |
+++ get_parent_components /dev/mapper/vg00-lv00 | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lv00 | |
++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0p2 | |
++ local needle=/dev/cciss/c0d0p2 | |
++ shift | |
++ [[ /dev/cciss/c0d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0p2 | |
++ local needle=/dev/cciss/c2d0p2 | |
++ shift | |
++ [[ /dev/cciss/c2d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lv00 | |
++ local needle=/dev/mapper/vg00-lv00 | |
++ shift | |
++ [[ /dev/mapper/vg00-lv00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lvtmp | |
++ local needle=/dev/mapper/vg00-lvtmp | |
++ shift | |
++ [[ /dev/mapper/vg00-lvtmp == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/md2 | |
++ local needle=/dev/md2 | |
++ shift | |
++ [[ /dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/vg00 | |
++ local needle=/dev/vg00 | |
++ shift | |
++ [[ /dev/vg00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray fs:/ | |
++ local needle=fs:/ | |
++ shift | |
++ [[ fs:/ == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray pv:/dev/md2 | |
++ local needle=pv:/dev/md2 | |
++ shift | |
++ [[ pv:/dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ read fs device mountpoint junk | |
+++ get_parent_components fs:/var | |
+++ sort -u | |
+++ local component type | |
++++ get_parent_component fs:/var | |
++++ grep '^fs:/var ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/mapper/vg00-lvvar | |
fs:/' | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lvvar | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lvvar ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lvvar | |
+++ get_parent_components /dev/mapper/vg00-lvvar | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lvvar | |
++++ grep '^/dev/mapper/vg00-lvvar ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ cut -d ' ' -f 2 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type fs:/ | |
++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=fs | |
+++ '[' fs = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo fs:/ | |
+++ get_parent_components fs:/ | |
+++ local component type | |
++++ get_parent_component fs:/ | |
++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/mapper/vg00-lv00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lv00 | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lv00 | |
+++ get_parent_components /dev/mapper/vg00-lv00 | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lv00 | |
++++ cut -d ' ' -f 2 | |
++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ cut -d ' ' -f 3 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0p2 | |
++ local needle=/dev/cciss/c0d0p2 | |
++ shift | |
++ [[ /dev/cciss/c0d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0p2 | |
++ local needle=/dev/cciss/c2d0p2 | |
++ shift | |
++ [[ /dev/cciss/c2d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lv00 | |
++ local needle=/dev/mapper/vg00-lv00 | |
++ shift | |
++ [[ /dev/mapper/vg00-lv00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lvvar | |
++ local needle=/dev/mapper/vg00-lvvar | |
++ shift | |
++ [[ /dev/mapper/vg00-lvvar == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/md2 | |
++ local needle=/dev/md2 | |
++ shift | |
++ [[ /dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/vg00 | |
++ local needle=/dev/vg00 | |
++ shift | |
++ [[ /dev/vg00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray fs:/ | |
++ local needle=fs:/ | |
++ shift | |
++ [[ fs:/ == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray pv:/dev/md2 | |
++ local needle=pv:/dev/md2 | |
++ shift | |
++ [[ pv:/dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ read fs device mountpoint junk | |
+++ get_parent_components fs:/boot | |
+++ local component type | |
+++ sort -u | |
++++ get_parent_component fs:/boot | |
++++ grep '^fs:/boot ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/md0 | |
fs:/' | |
+++ for component in '$components' | |
++++ get_component_type /dev/md0 | |
++++ grep -E '^[^ ]+ /dev/md0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md0 | |
+++ get_parent_components /dev/md0 | |
+++ local component type | |
++++ get_parent_component /dev/md0 | |
++++ grep '^/dev/md0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p1 | |
/dev/cciss/c2d0p1' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p1 | |
+++ get_parent_components /dev/cciss/c0d0p1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p1 | |
++++ cut -d ' ' -f 2 | |
++++ grep '^/dev/cciss/c0d0p1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p1 | |
+++ get_parent_components /dev/cciss/c2d0p1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p1 | |
++++ grep '^/dev/cciss/c2d0p1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type fs:/ | |
++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=fs | |
+++ '[' fs = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo fs:/ | |
+++ get_parent_components fs:/ | |
+++ local component type | |
++++ get_parent_component fs:/ | |
++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/mapper/vg00-lv00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lv00 | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lv00 | |
+++ get_parent_components /dev/mapper/vg00-lv00 | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lv00 | |
++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0p1 | |
++ local needle=/dev/cciss/c0d0p1 | |
++ shift | |
++ [[ /dev/cciss/c0d0p1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0p2 | |
++ local needle=/dev/cciss/c0d0p2 | |
++ shift | |
++ [[ /dev/cciss/c0d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0p1 | |
++ local needle=/dev/cciss/c2d0p1 | |
++ shift | |
++ [[ /dev/cciss/c2d0p1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0p2 | |
++ local needle=/dev/cciss/c2d0p2 | |
++ shift | |
++ [[ /dev/cciss/c2d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lv00 | |
++ local needle=/dev/mapper/vg00-lv00 | |
++ shift | |
++ [[ /dev/mapper/vg00-lv00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/md0 | |
++ local needle=/dev/md0 | |
++ shift | |
++ [[ /dev/md0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/md2 | |
++ local needle=/dev/md2 | |
++ shift | |
++ [[ /dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/vg00 | |
++ local needle=/dev/vg00 | |
++ shift | |
++ [[ /dev/vg00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray fs:/ | |
++ local needle=fs:/ | |
++ shift | |
++ [[ fs:/ == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray pv:/dev/md2 | |
++ local needle=pv:/dev/md2 | |
++ shift | |
++ [[ pv:/dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ read fs device mountpoint junk | |
+++ get_parent_components fs:/var/lib/mysql | |
+++ local component type | |
+++ sort -u | |
++++ get_parent_component fs:/var/lib/mysql | |
++++ grep '^fs:/var/lib/mysql ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/mapper/vg01-lvmysql | |
fs:/ | |
fs:/var' | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg01-lvmysql | |
++++ grep -E '^[^ ]+ /dev/mapper/vg01-lvmysql ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg01-lvmysql | |
+++ get_parent_components /dev/mapper/vg01-lvmysql | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg01-lvmysql | |
++++ grep '^/dev/mapper/vg01-lvmysql ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg01 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg01 | |
++++ grep -E '^[^ ]+ /dev/vg01 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg01 | |
+++ get_parent_components /dev/vg01 | |
+++ local component type | |
++++ get_parent_component /dev/vg01 | |
++++ grep '^/dev/vg01 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md3 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md3 | |
++++ grep -E '^[^ ]+ pv:/dev/md3 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md3 | |
+++ get_parent_components pv:/dev/md3 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md3 | |
++++ grep '^pv:/dev/md3 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md3 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md3 | |
++++ grep -E '^[^ ]+ /dev/md3 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md3 | |
+++ get_parent_components /dev/md3 | |
+++ local component type | |
++++ get_parent_component /dev/md3 | |
++++ grep '^/dev/md3 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d1p1 | |
/dev/cciss/c2d1p1' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d1p1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d1p1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d1p1 | |
+++ get_parent_components /dev/cciss/c0d1p1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d1p1 | |
++++ grep '^/dev/cciss/c0d1p1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d1 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d1 | |
+++ get_parent_components /dev/cciss/c0d1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d1 | |
++++ grep '^/dev/cciss/c0d1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d1p1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d1p1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d1p1 | |
+++ get_parent_components /dev/cciss/c2d1p1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d1p1 | |
++++ grep '^/dev/cciss/c2d1p1 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d1 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d1 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d1 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d1 | |
+++ get_parent_components /dev/cciss/c2d1 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d1 | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
++++ grep '^/dev/cciss/c2d1 ' /var/lib/rear/layout/diskdeps.conf | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type fs:/ | |
++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=fs | |
+++ '[' fs = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo fs:/ | |
+++ get_parent_components fs:/ | |
+++ local component type | |
++++ get_parent_component fs:/ | |
++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/mapper/vg00-lv00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lv00 | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lv00 | |
+++ get_parent_components /dev/mapper/vg00-lv00 | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lv00 | |
++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ cut -d ' ' -f 3 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type fs:/var | |
++++ grep -E '^[^ ]+ fs:/var ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=fs | |
+++ '[' fs = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo fs:/var | |
+++ get_parent_components fs:/var | |
+++ local component type | |
++++ get_parent_component fs:/var | |
++++ grep '^fs:/var ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/mapper/vg00-lvvar | |
fs:/' | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lvvar | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lvvar ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lvvar | |
+++ get_parent_components /dev/mapper/vg00-lvvar | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lvvar | |
++++ grep '^/dev/mapper/vg00-lvvar ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type fs:/ | |
++++ grep -E '^[^ ]+ fs:/ ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=fs | |
+++ '[' fs = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo fs:/ | |
+++ get_parent_components fs:/ | |
+++ local component type | |
++++ get_parent_component fs:/ | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
++++ grep '^fs:/ ' /var/lib/rear/layout/diskdeps.conf | |
+++ local components=/dev/mapper/vg00-lv00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/mapper/vg00-lv00 | |
++++ grep -E '^[^ ]+ /dev/mapper/vg00-lv00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmvol | |
+++ '[' lvmvol = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/mapper/vg00-lv00 | |
+++ get_parent_components /dev/mapper/vg00-lv00 | |
+++ local component type | |
++++ get_parent_component /dev/mapper/vg00-lv00 | |
++++ grep '^/dev/mapper/vg00-lv00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/vg00 | |
+++ for component in '$components' | |
++++ get_component_type /dev/vg00 | |
++++ grep -E '^[^ ]+ /dev/vg00 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmgrp | |
+++ '[' lvmgrp = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/vg00 | |
+++ get_parent_components /dev/vg00 | |
+++ local component type | |
++++ get_parent_component /dev/vg00 | |
++++ grep '^/dev/vg00 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=pv:/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type pv:/dev/md2 | |
++++ grep -E '^[^ ]+ pv:/dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=lvmdev | |
+++ '[' lvmdev = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo pv:/dev/md2 | |
+++ get_parent_components pv:/dev/md2 | |
+++ local component type | |
++++ get_parent_component pv:/dev/md2 | |
++++ grep '^pv:/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/md2 | |
+++ for component in '$components' | |
++++ get_component_type /dev/md2 | |
++++ grep -E '^[^ ]+ /dev/md2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=raid | |
+++ '[' raid = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/md2 | |
+++ get_parent_components /dev/md2 | |
+++ local component type | |
++++ get_parent_component /dev/md2 | |
++++ grep '^/dev/md2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local 'components=/dev/cciss/c0d0p2 | |
/dev/cciss/c2d0p2' | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0p2 | |
+++ get_parent_components /dev/cciss/c0d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0p2 | |
++++ grep '^/dev/cciss/c0d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c0d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c0d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c0d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c0d0 | |
+++ get_parent_components /dev/cciss/c0d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c0d0 | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
++++ grep '^/dev/cciss/c0d0 ' /var/lib/rear/layout/diskdeps.conf | |
+++ local components= | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0p2 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0p2 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=part | |
+++ '[' part = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0p2 | |
+++ get_parent_components /dev/cciss/c2d0p2 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0p2 | |
++++ grep '^/dev/cciss/c2d0p2 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components=/dev/cciss/c2d0 | |
+++ for component in '$components' | |
++++ get_component_type /dev/cciss/c2d0 | |
++++ grep -E '^[^ ]+ /dev/cciss/c2d0 ' /var/lib/rear/layout/disktodo.conf | |
++++ cut -d ' ' -f 3 | |
+++ type=disk | |
+++ '[' disk = '' ']' | |
+++ '[' -z '' ']' | |
+++ echo /dev/cciss/c2d0 | |
+++ get_parent_components /dev/cciss/c2d0 | |
+++ local component type | |
++++ get_parent_component /dev/cciss/c2d0 | |
++++ grep '^/dev/cciss/c2d0 ' /var/lib/rear/layout/diskdeps.conf | |
++++ cut -d ' ' -f 2 | |
++++ sort | |
++++ uniq | |
+++ local components= | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0 | |
++ local needle=/dev/cciss/c0d0 | |
++ shift | |
++ [[ /dev/cciss/c0d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d0p2 | |
++ local needle=/dev/cciss/c0d0p2 | |
++ shift | |
++ [[ /dev/cciss/c0d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d1 | |
++ local needle=/dev/cciss/c0d1 | |
++ shift | |
++ [[ /dev/cciss/c0d1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c0d1p1 | |
++ local needle=/dev/cciss/c0d1p1 | |
++ shift | |
++ [[ /dev/cciss/c0d1p1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0 | |
++ local needle=/dev/cciss/c2d0 | |
++ shift | |
++ [[ /dev/cciss/c2d0 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d0p2 | |
++ local needle=/dev/cciss/c2d0p2 | |
++ shift | |
++ [[ /dev/cciss/c2d0p2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d1 | |
++ local needle=/dev/cciss/c2d1 | |
++ shift | |
++ [[ /dev/cciss/c2d1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/cciss/c2d1p1 | |
++ local needle=/dev/cciss/c2d1p1 | |
++ shift | |
++ [[ /dev/cciss/c2d1p1 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lv00 | |
++ local needle=/dev/mapper/vg00-lv00 | |
++ shift | |
++ [[ /dev/mapper/vg00-lv00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg00-lvvar | |
++ local needle=/dev/mapper/vg00-lvvar | |
++ shift | |
++ [[ /dev/mapper/vg00-lvvar == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/mapper/vg01-lvmysql | |
++ local needle=/dev/mapper/vg01-lvmysql | |
++ shift | |
++ [[ /dev/mapper/vg01-lvmysql == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/md2 | |
++ local needle=/dev/md2 | |
++ shift | |
++ [[ /dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/md3 | |
++ local needle=/dev/md3 | |
++ shift | |
++ [[ /dev/md3 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/vg00 | |
++ local needle=/dev/vg00 | |
++ shift | |
++ [[ /dev/vg00 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray /dev/vg01 | |
++ local needle=/dev/vg01 | |
++ shift | |
++ [[ /dev/vg01 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray fs:/ | |
++ local needle=fs:/ | |
++ shift | |
++ [[ fs:/ == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray fs:/var | |
++ local needle=fs:/var | |
++ shift | |
++ [[ fs:/var == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray pv:/dev/md2 | |
++ local needle=pv:/dev/md2 | |
++ shift | |
++ [[ pv:/dev/md2 == '' ]] | |
++ shift | |
++ return 1 | |
++ for component in '$(get_parent_components "fs:$mountpoint" | sort -u)' | |
++ IsInArray pv:/dev/md3 | |
++ local needle=pv:/dev/md3 | |
++ shift | |
++ [[ pv:/dev/md3 == '' ]] | |
++ shift | |
++ return 1 | |
++ read fs device mountpoint junk | |
+++ grep '^fs' /var/lib/rear/layout/disklayout.conf | |
++ read fs device mountpoint junk | |
++ IsInArray / | |
++ local needle=/ | |
++ shift | |
++ [[ / == '' ]] | |
++ shift | |
++ return 1 | |
++ echo '/ /dev/mapper/vg00-lv00' | |
++ read fs device mountpoint junk | |
++ IsInArray /usr | |
++ local needle=/usr | |
++ shift | |
++ [[ /usr == '' ]] | |
++ shift | |
++ return 1 | |
++ echo '/usr /dev/mapper/vg00-lvusr' | |
++ read fs device mountpoint junk | |
++ IsInArray /dstpol | |
++ local needle=/dstpol | |
++ shift | |
++ [[ /dstpol == '' ]] | |
++ shift | |
++ return 1 | |
++ echo '/dstpol /dev/mapper/vg01-lvdstpol' | |
++ read fs device mountpoint junk | |
++ IsInArray /opt | |
++ local needle=/opt | |
++ shift | |
++ [[ /opt == '' ]] | |
++ shift | |
++ return 1 | |
++ echo '/opt /dev/mapper/vg00-lvopt' | |
++ read fs device mountpoint junk | |
++ IsInArray /opt/cache | |
++ local needle=/opt/cache | |
++ shift | |
++ [[ /opt/cache == '' ]] | |
++ shift | |
++ return 1 | |
++ echo '/opt/cache /dev/mapper/vg01-lvcachemgr' | |
++ read fs device mountpoint junk | |
++ IsInArray /tmp | |
++ local needle=/tmp | |
++ shift | |
++ [[ /tmp == '' ]] | |
++ shift | |
++ return 1 | |
++ echo '/tmp /dev/mapper/vg00-lvtmp' | |
++ read fs device mountpoint junk | |
++ IsInArray /var | |
++ local needle=/var | |
++ shift | |
++ [[ /var == '' ]] | |
++ shift | |
++ return 1 | |
++ echo '/var /dev/mapper/vg00-lvvar' | |
++ read fs device mountpoint junk | |
++ IsInArray /boot | |
++ local needle=/boot | |
++ shift | |
++ [[ /boot == '' ]] | |
++ shift | |
++ return 1 | |
++ echo '/boot /dev/md0' | |
++ read fs device mountpoint junk | |
++ IsInArray /var/lib/mysql | |
++ local needle=/var/lib/mysql | |
++ shift | |
++ [[ /var/lib/mysql == '' ]] | |
++ shift | |
++ return 1 | |
++ echo '/var/lib/mysql /dev/mapper/vg01-lvmysql' | |
++ read fs device mountpoint junk | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:50 Including layout/save/GNU/Linux/35_copy_drbdtab.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/35_copy_drbdtab.sh | |
++ '[' -e /etc/drbdtab ']' | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:50 Including layout/save/GNU/Linux/50_extract_vgcfg.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/50_extract_vgcfg.sh | |
++ has_binary lvm | |
++ for bin in '$@' | |
++ type lvm | |
++ return 0 | |
++ mkdir -p -v /var/lib/rear/layout/lvm | |
++ lvm vgcfgbackup -f /var/lib/rear/layout/lvm/%s.cfg | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:50 Including layout/save/GNU/Linux/51_current_disk_usage.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/51_current_disk_usage.sh | |
++ df -h | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:50 Including layout/save/default/60_snapshot_files.sh | |
+ . /usr/share/rear/layout/save/default/60_snapshot_files.sh | |
++ '[' savelayout = checklayout ']' | |
++ config_files=() | |
++ for obj in '"${CHECK_CONFIG_FILES[@]}"' | |
++ '[' -d /etc/drbd/ ']' | |
++ '[' -e /etc/drbd/ ']' | |
++ for obj in '"${CHECK_CONFIG_FILES[@]}"' | |
++ '[' -d /etc/drbd.conf ']' | |
++ '[' -e /etc/drbd.conf ']' | |
++ for obj in '"${CHECK_CONFIG_FILES[@]}"' | |
++ '[' -d /etc/lvm/lvm.conf ']' | |
++ '[' -e /etc/lvm/lvm.conf ']' | |
++ config_files=("${config_files[@]}" "$obj") | |
++ for obj in '"${CHECK_CONFIG_FILES[@]}"' | |
++ '[' -d /etc/multipath.conf ']' | |
++ '[' -e /etc/multipath.conf ']' | |
++ config_files=("${config_files[@]}" "$obj") | |
++ for obj in '"${CHECK_CONFIG_FILES[@]}"' | |
++ '[' -d /etc/rear/ ']' | |
++ config_files=("${config_files[@]}" $(find "$obj" -type f)) | |
+++ find /etc/rear/ -type f | |
++ for obj in '"${CHECK_CONFIG_FILES[@]}"' | |
++ '[' -d /etc/udev/udev.conf ']' | |
++ '[' -e /etc/udev/udev.conf ']' | |
++ config_files=("${config_files[@]}" "$obj") | |
++ md5sum /etc/lvm/lvm.conf /etc/multipath.conf /etc/rear/templates/RESULT_usage_USB.txt /etc/rear/templates/rear.help /etc/rear/templates/RESULT_usage_PXE.txt /etc/rear/templates/RESULT_mailbody.txt /etc/rear/templates/EFI_readme.txt /etc/rear/templates/PXE_pxelinux.cfg /etc/rear/templates/RESULT_usage_ISO.txt /etc/rear/mappings/disk_devices.example /etc/rear/mappings/ip_addresses.example /etc/rear/mappings/mac.example /etc/rear/mappings/routes.example /etc/rear/local.conf /etc/udev/udev.conf | |
+ test 1 | |
+ set +x | |
2012-11-08 12:57:50 Finished running 'layout/save' stage in 17 seconds | |
2012-11-08 12:57:50 Finished running savelayout workflow | |
2012-11-08 12:57:50 Running exit tasks. | |
2012-11-08 12:57:50 Finished in 17 seconds | |
2012-11-08 12:57:50 Removing build area /tmp/rear.yFIcNoexNlK8305 | |
2012-11-08 12:57:50 End of program reached |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment